diff options
| author | Stefan Monnier | 2003-05-04 00:34:16 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-05-04 00:34:16 +0000 |
| commit | 0d7a020af5fc9ad3ad1797cd668464dccd0b14d0 (patch) | |
| tree | 6532ca89d3b6e2035fcbd5203271affbcf7cde21 | |
| parent | 24c22ecf5ad24f291978473fe562f40f564e836a (diff) | |
| download | emacs-0d7a020af5fc9ad3ad1797cd668464dccd0b14d0.tar.gz emacs-0d7a020af5fc9ad3ad1797cd668464dccd0b14d0.zip | |
(cl-map-keymap): Be careful with aliases.
| -rw-r--r-- | lisp/emacs-lisp/lucid.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/lucid.el b/lisp/emacs-lisp/lucid.el index 1ec500326ff..ac27faba032 100644 --- a/lisp/emacs-lisp/lucid.el +++ b/lisp/emacs-lisp/lucid.el | |||
| @@ -31,6 +31,9 @@ | |||
| 31 | 31 | ||
| 32 | (defalias 'current-time-seconds 'current-time) | 32 | (defalias 'current-time-seconds 'current-time) |
| 33 | 33 | ||
| 34 | ;; In case cl-map-keymap is an alias for map-keymap, avoid circular calls. | ||
| 35 | (fset 'cl-map-keymap (indirect-function 'cl-map-keymap)) | ||
| 36 | |||
| 34 | (defun map-keymap (function keymap &optional sort-first) | 37 | (defun map-keymap (function keymap &optional sort-first) |
| 35 | "Call FUNCTION for every binding in KEYMAP. | 38 | "Call FUNCTION for every binding in KEYMAP. |
| 36 | This does not include bindings inherited from a parent keymap. | 39 | This does not include bindings inherited from a parent keymap. |