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)
(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