emacs-diffs
[Top][All Lists]
Advanced

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

master b4f3e6c: Use `abort-minibuffers' in delsel


From: Lars Ingebrigtsen
Subject: master b4f3e6c: Use `abort-minibuffers' in delsel
Date: Wed, 4 Aug 2021 03:16:03 -0400 (EDT)

branch: master
commit b4f3e6cabafb3e04292a650874d977c692dbad22
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Use `abort-minibuffers' in delsel
    
    * lisp/delsel.el (minibuffer-keyboard-quit): Use
    `abort-minibuffers' (bug#49821).
    
    Previously, C-g was bound to abort-recursive-edit, now it is bound to
    abort-minibuffers.  However, after requiring delsel, it gets bound to
    minibuffer-keyboard-quit, which still uses abort-recursive-edit.  Use
    the new function instead.
---
 lisp/delsel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/delsel.el b/lisp/delsel.el
index 3c99dd2..93fdc6a 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -300,7 +300,7 @@ then it takes a second \\[keyboard-quit] to abort the 
minibuffer."
   (interactive)
   (if (and delete-selection-mode (region-active-p))
       (setq deactivate-mark t)
-    (abort-recursive-edit)))
+    (abort-minibuffers)))
 
 (define-key minibuffer-local-map "\C-g" 'minibuffer-keyboard-quit)
 



reply via email to

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