changeset 9199:712e13833ad8

(edmacro-format-keys): Cope if local keymap is nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 01 Oct 1994 03:53:40 +0000
parents af7bd3312376
children e48652e64736
files lisp/edmacro.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/edmacro.el	Fri Sep 30 21:26:44 1994 +0000
+++ b/lisp/edmacro.el	Sat Oct 01 03:53:40 1994 +0000
@@ -379,7 +379,9 @@
 (defun edmacro-format-keys (macro &optional verbose)
   (setq macro (edmacro-fix-menu-commands macro))
   (let* ((maps (append (current-minor-mode-maps)
-		       (list (current-local-map) (current-global-map))))
+		       (if (current-local-map)
+			   (list (current-local-map)))
+		       (list (current-global-map))))
 	 (pkeys '(end-macro ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?- ?\C-u
 		  ?\M-- ?\M-0 ?\M-1 ?\M-2 ?\M-3 ?\M-4 ?\M-5 ?\M-6
 		  ?\M-7 ?\M-8 ?\M-9))