我在调用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) "<-"))))