を呼び出す際にマーカーに問題があります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) "<-"))))