]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug with deactivation of mark in 'cua-cancel'
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sun, 7 Jun 2020 08:20:19 +0000 (09:20 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Jun 2020 07:41:56 +0000 (10:41 +0300)
* lisp/emulation/cua-base.el (cua-cancel): Use 'deactivate-mark'
instead of setting 'mark-active' directly.

Copyright-paperwork-exempt: yes

lisp/emulation/cua-base.el

index 26a1a8955f4f6f60fb53175cb634f8d10ad406fe..c4dcb76446efc6946be672ef5be906d0d52277cb 100644 (file)
@@ -860,7 +860,7 @@ With numeric prefix arg, copy to register 0-9 instead."
 (defun cua-cancel ()
   "Cancel the active region, rectangle, or global mark."
   (interactive)
-  (setq mark-active nil)
+  (deactivate-mark)
   (if (fboundp 'cua--cancel-rectangle)
       (cua--cancel-rectangle)))