From: Stefan Monnier Date: Wed, 19 May 2010 03:06:48 +0000 (-0400) Subject: * indent.el (indent-region): Deactivate region (bug#6200). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~205^2~58 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a96c2a765972b1b9b0a07d109f00396923d510b;p=emacs.git * indent.el (indent-region): Deactivate region (bug#6200). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8626457166a..a945b6251df 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-05-19 Stefan Monnier + + * indent.el (indent-region): Deactivate region (bug#6200). + 2010-05-19 Glenn Morris * vc-dir.el (vc-dir): Don't pop-up-windows. (Bug#6204) diff --git a/lisp/indent.el b/lisp/indent.el index adecbfaeb12..c1da4a46b9c 100644 --- a/lisp/indent.el +++ b/lisp/indent.el @@ -431,7 +431,11 @@ column to indent to; if it is nil, use one of the three methods above." (or (eolp) (indent-to column 0)) (forward-line 1)) - (move-marker end nil)))) + (move-marker end nil))) + ;; In most cases, reindenting modifies the buffer, but it may also + ;; leave it unmodified, in which case we have to deactivate the mark + ;; by hand. + (deactivate-mark)) (defun indent-relative-maybe () "Indent a new line like previous nonblank line.