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:
parent
ef0c1d4c2c
commit
ba57b78064
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue