diff options
| author | Stefan Monnier | 2007-05-25 16:43:24 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-05-25 16:43:24 +0000 |
| commit | 6db93fd915892fe3da1b8910a33120378b094240 (patch) | |
| tree | 5ca040c7eff309c79c5e50652d74fa5c0d253f9d | |
| parent | 4a1074247d6aabc2892125c682f805562713292b (diff) | |
| download | emacs-6db93fd915892fe3da1b8910a33120378b094240.tar.gz emacs-6db93fd915892fe3da1b8910a33120378b094240.zip | |
(edmacro-format-keys): Use current-active-maps.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/edmacro.el | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e00e3593e46..22b03a99290 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2007-05-25 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2007-05-25 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * edmacro.el (edmacro-format-keys): Use current-active-maps. | ||
| 4 | |||
| 3 | * ediff-init.el (ediff-defvar-local, ediff-with-current-buffer): | 5 | * ediff-init.el (ediff-defvar-local, ediff-with-current-buffer): |
| 4 | Add indentation and debugging info. Fix up comment convention. | 6 | Add indentation and debugging info. Fix up comment convention. |
| 5 | 7 | ||
diff --git a/lisp/edmacro.el b/lisp/edmacro.el index 0842d63836f..6dd1bcfa252 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el | |||
| @@ -430,10 +430,7 @@ doubt, use whitespace." | |||
| 430 | 430 | ||
| 431 | (defun edmacro-format-keys (macro &optional verbose) | 431 | (defun edmacro-format-keys (macro &optional verbose) |
| 432 | (setq macro (edmacro-fix-menu-commands macro)) | 432 | (setq macro (edmacro-fix-menu-commands macro)) |
| 433 | (let* ((maps (append (current-minor-mode-maps) | 433 | (let* ((maps (current-active-maps)) |
| 434 | (if (current-local-map) | ||
| 435 | (list (current-local-map))) | ||
| 436 | (list (current-global-map)))) | ||
| 437 | (pkeys '(end-macro ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?- ?\C-u | 434 | (pkeys '(end-macro ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9 ?- ?\C-u |
| 438 | ?\M-- ?\M-0 ?\M-1 ?\M-2 ?\M-3 ?\M-4 ?\M-5 ?\M-6 | 435 | ?\M-- ?\M-0 ?\M-1 ?\M-2 ?\M-3 ?\M-4 ?\M-5 ?\M-6 |
| 439 | ?\M-7 ?\M-8 ?\M-9)) | 436 | ?\M-7 ?\M-8 ?\M-9)) |