本文介绍了标记不指向来自align-regexp(Emacs)的任何地方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在调用 align-regexp
时遇到问题。不知怎的,这不工作,并给出错误标记不指向任何地方
。
I am having trouble with the marker in calling an align-regexp
. Somehow this doesn't work and gives the error "Marker does not point anywhere
".
功能的想法是搜索一个新的段落,标记它,然后对其执行align-regexp。为什么不起作用?
The idea of the function is that it searches for a new paragraph, marks it and then performs the align-regexp on it. Why doesn't it work?
(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) "<-"))))
推荐答案
您传递的regexp不是什么 align-regexp
The regexp you passed is not what align-regexp
is expecting.
看到我的回答。
这篇关于标记不指向来自align-regexp(Emacs)的任何地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!