]> code.delx.au - gnu-emacs/commitdiff
* simple.el (kill-region): Deactivate mark even for empty regions. (tiny change)
authorKelly Dean <kellydeanch@yahoo.com>
Fri, 21 Dec 2012 03:49:28 +0000 (11:49 +0800)
committerChong Yidong <cyd@gnu.org>
Fri, 21 Dec 2012 03:49:28 +0000 (11:49 +0800)
Fixes: debbugs:13169
lisp/ChangeLog
lisp/simple.el

index 90086b27a5eef858c0715edcb6a57125f05beefc..e89602c8e4563142b6092e03bb6a065304838375 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-21  Kelly Dean  <kellydeanch@yahoo.com>  (tiny change)
+
+       * simple.el (kill-region): Deactivate mark even for empty regions
+       (Bug#13169).
+
 2012-12-21  Chong Yidong  <cyd@gnu.org>
 
        * help-fns.el (describe-variable): Make sure we get the right
index 78b765795847e8c9c5c386fbfecd406e1f0baabf..8c7e88d04bc03e145c63546ab990820cca14c623 100644 (file)
@@ -3370,6 +3370,7 @@ to make one entry in the kill ring."
            (kill-new string nil yank-handler)))
        (when (or string (eq last-command 'kill-region))
          (setq this-command 'kill-region))
+       (setq deactivate-mark t)
        nil)
     ((buffer-read-only text-read-only)
      ;; The code above failed because the buffer, or some of the characters