GNU bug report logs - #49821
[PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers

Previous Next

Package: emacs;

Reported by: Miha Rihtaršič <miha <at> kamnitnik.top>

Date: Mon, 2 Aug 2021 11:14:02 UTC

Severity: normal

Tags: patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Miha Rihtaršič <miha <at> kamnitnik.top>
To: 49821 <at> debbugs.gnu.org
Cc: Miha Rihtaršič <miha <at> kamnitnik.top>
Subject: bug#49821: [PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers
Date: Mon,  2 Aug 2021 13:16:01 +0200
---
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 3c99dd2344..93fdc6a886 100644
--- a/lisp/delsel.el
+++ b/lisp/delsel.el
@@ -300,7 +300,7 @@ minibuffer-keyboard-quit
   (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)
 
-- 
2.32.0





This bug report was last modified 4 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.