标记不会指向Align-RegexP(EMACS)的任何位置



我在调用 align-regexp时遇到麻烦。不知何故,这不起作用,并给出错误" Marker does not point anywhere"。

该函数的想法是它搜索了一个新段落,标记了它,然后在其上执行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) "<-"))))

您传递的正则是align-regexp所期望的。

请参阅我的答案。

我的猜测是您正在击中一个错误,并且此错误已固定在Emacs的后备箱中。

最新更新