2013-03-20 103 views

回答

7

没有内置的功能,你想要做什么,但这个片段会做的伎俩。

(defun lower-and-concat (b e) 
    (interactive "r") 
    (save-restriction 
    (narrow-to-region b e) 
    (goto-char (point-min)) 
    (downcase-region b e) 
    (while (re-search-forward "[ \t]+" nil t) 
     (replace-match "_")))) 
相关问题