]> git.eshelyaron.com Git - emacs.git/commitdiff
Use `abort-minibuffers' in delsel
authorMiha Rihtaršič <miha@kamnitnik.top>
Wed, 4 Aug 2021 07:15:25 +0000 (09:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 4 Aug 2021 07:15:25 +0000 (09:15 +0200)
* 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

index 3c99dd2344cffc2da877275ceabdf2ac987ec8ae..93fdc6a88633e7c8f70af7ebda5908d11cf5f41d 100644 (file)
@@ -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)