aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-01 03:53:40 +0000
committerRichard M. Stallman1994-10-01 03:53:40 +0000
commit7470b9b6022250f803c953a01aa9b2e5857c041d (patch)
tree5f58bc6825b6af8ced974c1b0af43f18f9b90a7e
parentfaa4bf12608ebd9c22bef7740029782e38c5c91c (diff)
downloademacs-7470b9b6022250f803c953a01aa9b2e5857c041d.tar.gz
emacs-7470b9b6022250f803c953a01aa9b2e5857c041d.zip
(edmacro-format-keys): Cope if local keymap is nil.
-rw-r--r--lisp/edmacro.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/edmacro.el b/lisp/edmacro.el
index ebf67b61854..5753ae216dd 100644
--- a/lisp/edmacro.el
+++ b/lisp/edmacro.el
@@ -379,7 +379,9 @@ doubt, use whitespace."
379(defun edmacro-format-keys (macro &optional verbose) 379(defun edmacro-format-keys (macro &optional verbose)
380 (setq macro (edmacro-fix-menu-commands macro)) 380 (setq macro (edmacro-fix-menu-commands macro))
381 (let* ((maps (append (current-minor-mode-maps) 381 (let* ((maps (append (current-minor-mode-maps)
382 (list (current-local-map) (current-global-map)))) 382 (if (current-local-map)
383 (list (current-local-map)))
384 (list (current-global-map))))
383 (pkeys '(end-macro ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?- ?\C-u 385 (pkeys '(end-macro ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?- ?\C-u
384 ?\M-- ?\M-0 ?\M-1 ?\M-2 ?\M-3 ?\M-4 ?\M-5 ?\M-6 386 ?\M-- ?\M-0 ?\M-1 ?\M-2 ?\M-3 ?\M-4 ?\M-5 ?\M-6
385 ?\M-7 ?\M-8 ?\M-9)) 387 ?\M-7 ?\M-8 ?\M-9))