Marker doesn't point anywhere from align-regexp (Emacs)

I am having problems with the marker when align-regexp called. Somehow this does not work and gives the error " Marker does not point anywhere ".

The idea of ​​the function is that it searches for a new paragraph, marks it, and then performs alignment-regexp on it. Why is this not working?

 (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) "<-")))) 
+1
source share
2 answers

The repeated expression you passed does not match the expected align-regexp .

See my answer here .

+3
source

I assume that you got into an error, and this error was fixed in the Emacs trunk some time ago.

0
source

All Articles