From 8dd605a419f90406f7f6cc9cee5b9ce9e8b60dce Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 19 Oct 2024 16:32:39 +0200 Subject: [PATCH] Kill *Completions* buffer on M-: minibuffer exit --- lisp/simple.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index f05d865f6b7..c5bbb7d6e89 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -2045,6 +2045,8 @@ function `read-from-minibuffer'." (set-syntax-table emacs-lisp-mode-syntax-table) (add-hook 'completion-at-point-functions #'elisp-completion-at-point nil t) + (add-hook 'minibuffer-exit-hook + #'minibuffer-kill-completions-buffer nil t) (run-hooks 'eval-expression-minibuffer-setup-hook)) (read-from-minibuffer prompt initial-contents read--expression-map t -- 2.39.5