home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!utcsri!torn!nott!bnrgate!bmerh85!bmerh85!hamish
- From: Hamish.Macdonald@x400gate.bnr.ca (Hamish Macdonald)
- Subject: Re: display global-map table
- In-Reply-To: sullivan@Mathcom.com's message of 7 Nov 92 03:25:08 GMT
- Message-ID: <1992Nov09.155317.7939@bmerh85.bnr.ca>
- Lines: 27
- Sender: news@bmerh85.bnr.ca (Usenet News)
- Organization: Bell Northern Research
- References: <9211070325.AA04417@thurber.Mathcom.com>
- Date: Mon, 09 Nov 92 15:53:17 GMT
-
- >>>>> On 7 Nov 92 03:25:08 GMT,
- >>>>> In message <9211070325.AA04417@thurber.Mathcom.com>,
- >>>>> sullivan@Mathcom.com (S. Sullivan) wrote:
-
- Steve> How can I display the global-map table ... or any key mapping
- Steve> table, for that matter?
-
- Steve> When I try: esc esc global-map
- Steve> I get: #<keymap 404 entries>
-
- Steve> Modifications would be much easier if I could see the current
- Steve> value.
-
- I use this:
-
- (defun describe-keymap (keymap)
- "Describe keymap KEYMAP."
- (interactive "SKeymap: ")
- (with-output-to-temp-buffer " *Help*"
- (princ (format "%-20s Binding\n" "Key Sequence"))
- (princ (format "%-20s -------\n" "------------"))
- (map-keymap '(lambda (key binding)
- (princ (format "%-20s %s\n" key binding)))
- (eval keymap))))
-
- This is not the most beautiful function, and it only works with lucid
- emacs, but it seems to work for me.
-