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).
This commit is contained in:
Lars Ingebrigtsen 2022-01-20 11:00:26 +01:00
parent ef0c1d4c2c
commit ba57b78064

View file

@ -2296,8 +2296,8 @@ maps."
(let* ((execute-extended-command--last-typed nil) (let* ((execute-extended-command--last-typed nil)
(keymaps (keymaps
;; The major mode's keymap and any active minor modes. ;; The major mode's keymap and any active minor modes.
(cons (nconc
(current-local-map) (and (current-local-map) (list (current-local-map)))
(mapcar (mapcar
#'cdr #'cdr
(seq-filter (seq-filter