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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user