changeset 50801:9c84256c5456

(cl-map-keymap): Be careful with aliases.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 04 May 2003 00:34:16 +0000
parents 7fe53d25e220
children fe838fc4d9a9
files lisp/emacs-lisp/lucid.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/lucid.el	Sun May 04 00:32:46 2003 +0000
+++ b/lisp/emacs-lisp/lucid.el	Sun May 04 00:34:16 2003 +0000
@@ -31,6 +31,9 @@
 
 (defalias 'current-time-seconds 'current-time)
 
+;; In case cl-map-keymap is an alias for map-keymap, avoid circular calls.
+(fset 'cl-map-keymap (indirect-function 'cl-map-keymap))
+
 (defun map-keymap (function keymap &optional sort-first)
   "Call FUNCTION for every binding in KEYMAP.
 This does not include bindings inherited from a parent keymap.