标记不指向align regexp(Emacs)的任何位置
我在调用标记不指向align regexp(Emacs)的任何位置,regex,r,emacs,alignment,Regex,R,Emacs,Alignment,我在调用align regexp时遇到标记问题。不知何故,这不起作用,并给出错误“标记不指向任何地方” 该函数的思想是搜索新段落,对其进行标记,然后对其执行align regexp。为什么不起作用 (defun cleanR-align-smallerthan-dash () (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "[\n][\n]" nil
align regexp
时遇到标记问题。不知何故,这不起作用,并给出错误“标记不指向任何地方”
该函数的思想是搜索新段落,对其进行标记,然后对其执行align regexp。为什么不起作用
(defun cleanR-align-smallerthan-dash ()
(interactive)
(save-excursion
(goto-char (point-min))
(while (search-forward-regexp "[\n][\n]" nil t) ; confirmed to work
(mark-paragraph) ; the error is probably in here
(align-regexp (region-beginning) (region-end) "<-"))))
(将清洁器与划线()对齐)
(互动)
(省去远足
(转到字符(最小点))
(while(向前搜索regexp“[\n][\n]”nil t);已确认有效
(标记段落);错误可能在这里
(align regexp(region-start)(region-end)“我猜您遇到了一个bug,而这个bug不久前在Emacs的主干中已经修复。您传递的regexp不是align regexp
所期望的
看看我的答案