开发者

emacs lisp skip-syntax-forward help

开发者 https://www.devze.com 2022-12-19 22:33 出处:网络
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

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

精彩评论

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