2009-04-19 77 views

回答

7

使用re-search-forwardmatch-string

(when (re-search-forward "\\(\\S-\\)" nil t) 
    (match-string 1)) 

如果你不想點動,把它包在一個save-excursion

(save-excursion 
    (when ...