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 "^-")
精彩评论