From: Philip Kaludercic Date: Thu, 9 Dec 2021 16:36:14 +0000 (+0100) Subject: Delete completion window on quitting X-Git-Tag: emacs-29.0.90~3520 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1668ef23c19a34a0e99506f7751c33c05f99179;p=emacs.git Delete completion window on quitting * lisp/simple.el (completion-list-mode-map): Rebind delete-completion-window over keyboard-quit. --- diff --git a/lisp/simple.el b/lisp/simple.el index e2d140af891..eb21814a3d4 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -8982,6 +8982,7 @@ makes it easier to edit it." (define-key map [down-mouse-2] nil) (define-key map "\C-m" 'choose-completion) (define-key map "\e\e\e" 'delete-completion-window) + (define-key map [remap keyboard-quit] #'delete-completion-window) (define-key map [left] 'previous-completion) (define-key map [right] 'next-completion) (define-key map [?\t] 'next-completion)