unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49821: [PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers
@ 2021-08-02 11:16 Miha Rihtaršič via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-08-04  7:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Miha Rihtaršič via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-08-02 11:16 UTC (permalink / raw)
  To: 49821; +Cc: Miha Rihtaršič

---
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






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#49821: [PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers
  2021-08-02 11:16 bug#49821: [PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers Miha Rihtaršič via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-08-04  7:15 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-08-04  7:15 UTC (permalink / raw)
  To: Miha Rihtaršič; +Cc: 49821

Miha Rihtaršič <miha@kamnitnik.top> writes:

> 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.

Makes sense to me; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-04  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02 11:16 bug#49821: [PATCH] * lisp/delsel.el (minibuffer-keyboard-quit): Use abort-minibuffers Miha Rihtaršič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-04  7:15 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).