【发布时间】:2012-10-30 04:27:14
【问题描述】:
我在调用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) "<-"))))
【问题讨论】: