# HG changeset patch # User Eli Zaretskii # Date 1134218104 0 # Node ID b34c1d612bd4c03f43e360764b6be1a80129139a # Parent 677f6aabed5d071ba8a3ab8ea966046f814873f7 (align-regexp, align-highlight-rule): Use region-beginning and region-end instead of point and mark, so that repetition (with `repeat-complex-command') recomputes the region bounds. diff -r 677f6aabed5d -r b34c1d612bd4 lisp/align.el --- a/lisp/align.el Sat Dec 10 12:21:44 2005 +0000 +++ b/lisp/align.el Sat Dec 10 12:35:04 2005 +0000 @@ -931,8 +931,7 @@ region, call `align-regexp' and type in that regular expression." (interactive (append - (list (min (point) (mark)) - (max (point) (mark))) + (list (region-beginning) (region-end)) (if current-prefix-arg (list (read-string "Complex align using regexp: " "\\(\\s-*\\)") @@ -988,8 +987,7 @@ default alignment rules that would have been used to identify the text to be colored." (interactive - (list (min (mark) (point)) - (max (mark) (point)) + (list (region-beginning) (region-end) (completing-read "Title of rule to highlight: " (mapcar