开发者

emacs lisp skip-syntax-forward help

I am trying to implement function which moves to the next blank/whitespace character. I have read manual, and it seems I can use skip-syntax functions. However, I cannot figure o开发者_JAVA百科ut how to use them correctly. Here is what I have:

(skip-syntax-forward " ")

However, this does not seem to work. If I use "^ " it works, but if point is one blank character already, points does not move forward.

What is the correct usage?


(when (= 0 (skip-syntax-forward "^ ")) 
  (skip-syntax-forward " ") 
  (skip-syntax-forward "^ "))


(skip-syntax-forward "^-")
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜