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) "<-"))))
PascalVKooten
source share