emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 ba57b78064: Fix execute-extended-command-for-buffer in fundamen


From: Lars Ingebrigtsen
Subject: emacs-28 ba57b78064: Fix execute-extended-command-for-buffer in fundamental-mode
Date: Thu, 20 Jan 2022 05:05:10 -0500 (EST)

branch: emacs-28
commit ba57b78064830caaa253e56decf9686a48fade78
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix execute-extended-command-for-buffer in fundamental-mode
    
    * lisp/simple.el (execute-extended-command-for-buffer): Protect
    against the current local map being nil (bug#52907).
---
 lisp/simple.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/simple.el b/lisp/simple.el
index 355ebd690f..9c17f0ea6d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2296,8 +2296,8 @@ maps."
    (let* ((execute-extended-command--last-typed nil)
           (keymaps
            ;; The major mode's keymap and any active minor modes.
-           (cons
-            (current-local-map)
+           (nconc
+            (and (current-local-map) (list (current-local-map)))
             (mapcar
              #'cdr
              (seq-filter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]