changeset 108696:144e6ea330f0

* indent.el (indent-region): Deactivate region (bug#6200).
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 18 May 2010 23:06:48 -0400
parents 136a119bc981
children ba70090bc778
files lisp/ChangeLog lisp/indent.el
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue May 18 20:01:24 2010 -0700
+++ b/lisp/ChangeLog	Tue May 18 23:06:48 2010 -0400
@@ -1,3 +1,7 @@
+2010-05-19  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* indent.el (indent-region): Deactivate region (bug#6200).
+
 2010-05-19  Glenn Morris  <rgm@gnu.org>
 
 	* vc-dir.el (vc-dir): Don't pop-up-windows.  (Bug#6204)
--- a/lisp/indent.el	Tue May 18 20:01:24 2010 -0700
+++ b/lisp/indent.el	Tue May 18 23:06:48 2010 -0400
@@ -431,7 +431,11 @@
 	(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.