aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-12-10 12:35:04 +0000
committerEli Zaretskii2005-12-10 12:35:04 +0000
commitcbf08c3901c6b2b86c982996417730aee9d1481f (patch)
tree6b06aacaca62173b916d2ccd0193ad9e753ee2ba
parent614b38a99518cb219f3b24016ca8aa638f0581be (diff)
downloademacs-cbf08c3901c6b2b86c982996417730aee9d1481f.tar.gz
emacs-cbf08c3901c6b2b86c982996417730aee9d1481f.zip
(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.
-rw-r--r--lisp/align.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/align.el b/lisp/align.el
index 2cbc43e38d3..122ce2f0f88 100644
--- a/lisp/align.el
+++ b/lisp/align.el
@@ -931,8 +931,7 @@ using a REGEXP like \"(\". All you would have to do is to mark the
931region, call `align-regexp' and type in that regular expression." 931region, call `align-regexp' and type in that regular expression."
932 (interactive 932 (interactive
933 (append 933 (append
934 (list (min (point) (mark)) 934 (list (region-beginning) (region-end))
935 (max (point) (mark)))
936 (if current-prefix-arg 935 (if current-prefix-arg
937 (list (read-string "Complex align using regexp: " 936 (list (read-string "Complex align using regexp: "
938 "\\(\\s-*\\)") 937 "\\(\\s-*\\)")
@@ -988,8 +987,7 @@ list of rules (see `align-rules-list'), it can be used to override the
988default alignment rules that would have been used to identify the text 987default alignment rules that would have been used to identify the text
989to be colored." 988to be colored."
990 (interactive 989 (interactive
991 (list (min (mark) (point)) 990 (list (region-beginning) (region-end)
992 (max (mark) (point))
993 (completing-read 991 (completing-read
994 "Title of rule to highlight: " 992 "Title of rule to highlight: "
995 (mapcar 993 (mapcar