]> git.eshelyaron.com Git - emacs.git/commitdiff
* indent.el (indent-region): Deactivate region (bug#6200).
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2010 03:06:48 +0000 (23:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 19 May 2010 03:06:48 +0000 (23:06 -0400)
lisp/ChangeLog
lisp/indent.el

index 8626457166ad91b52701aa7e23c7cd2223d2fe72..a945b6251dfd238c255d4dcc50731fba0e2f3f6a 100644 (file)
@@ -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)
index adecbfaeb1238db9f6674a779fd1a2c6b6c81b85..c1da4a46b9c8f7dd01de3645b0518d7c8134e520 100644 (file)
@@ -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.