emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 2fec4c7: Fix bug with deactivation of mark in 'cua-cancel'


From: Eli Zaretskii
Subject: master 2fec4c7: Fix bug with deactivation of mark in 'cua-cancel'
Date: Sat, 20 Jun 2020 03:44:19 -0400 (EDT)

branch: master
commit 2fec4c733cfb078de24a9d2dea51b1ff0bc717ca
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix bug with deactivation of mark in 'cua-cancel'
    
    * 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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 26a1a89..c4dcb76 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -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)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]