Dmitry Gutov
unread,Sep 24, 2012, 8:01:44 AM9/24/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to help-gn...@gnu.org
Hi all,
How do I do that, short of traversing the keymap structure manually?
The doc recommends to use `map-keymap', but it doesn't exactly do what I
want, and if I try to use it recursively, it reliably blows up with
"max-lisp-eval-depth exceeded". Example snippet:
(defun scan-keymap (map)
(map-keymap (lambda (event binding)
(if (consp binding)
(progn (message "cdadr %s" (cdadr binding))
(scan-keymap (cdadr binding)))
(message "%s" binding))) diff-hl-mode-map))
(require 'js)
(scan-keymap js-mode-map)
--Dmitry