diff lisp/edmacro.el @ 81078:f8e9adbebabb

(edmacro-format-keys): Use current-active-maps.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 25 May 2007 16:43:24 +0000
parents e3694f1cb928
children b98604865ea0 4c726a40604c 03ec96a627ba
line wrap: on
line diff
--- a/lisp/edmacro.el	Fri May 25 16:42:10 2007 +0000
+++ b/lisp/edmacro.el	Fri May 25 16:43:24 2007 +0000
@@ -430,10 +430,7 @@
 
 (defun edmacro-format-keys (macro &optional verbose)
   (setq macro (edmacro-fix-menu-commands macro))
-  (let* ((maps (append (current-minor-mode-maps)
-		       (if (current-local-map)
-			   (list (current-local-map)))
-		       (list (current-global-map))))
+  (let* ((maps (current-active-maps))
 	 (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))