]> git.eshelyaron.com Git - emacs.git/commitdiff
Kill *Completions* buffer on M-: minibuffer exit
authorEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 14:32:39 +0000 (16:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 19 Oct 2024 14:32:39 +0000 (16:32 +0200)
lisp/simple.el

index f05d865f6b78d3173256b8dae63c966e4bf184a6..c5bbb7d6e89d17d31666752bf3b42800c3039f0c 100644 (file)
@@ -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