From: "Drew Adams" <drew.adams@oracle.com>
Subject: menu indications of key bindings for remapped commands
Date: Thu, 11 Jan 2007 10:32:00 -0800 [thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMCEEGCOAA.drew.adams@oracle.com> (raw)
I guess this whole message got rejected when the GIF attachment was deemed
"bad". Here it is again, without the attachment (see PNG sent separately).
From: Drew Adams Sent: Thursday, January 11, 2007 10:05 AM
> > What is the reason that a remapped command in a menu item has its key
> > binding listed as, for example, "(<remap> <switch-to-buffer>)"? Is it
> > because it would be impossible or difficult to pick up one of
> > the final keys that it is actually bound to - e.g. "(C-x b)"?
> >
> > I assume this is not an oversight or a bug - I'm just curious
> > as to why this appears this way. It is not especially useful for
> > users to see this, IMO.
>
> I don't see it. And I have several remapped commands (from ido-mode).
See attached image.
> Can you please give a specific example/recipe of this.
The code is here: http://www.emacswiki.org/cgi-bin/wiki/icicles-mode.el.
The relevant code creating the first menu item is this:
(setq icicle-mode-map (make-sparse-keymap))
(unless icicle-menu-map
(setq icicle-menu-map (make-sparse-keymap "Icicles"))
(define-key icicle-mode-map [menu-bar icicles]
(cons "Icicles" icicle-menu-map)))
(define-key icicle-menu-map [icicle-buffer]
'("+ Switch to Buffer..." . icicle-buffer)))
The code that does the remapping for the first menu item is this:
(define-key icicle-mode-map [remap switch-to-buffer]
'icicle-buffer)
The Icicles menubar menu is available whenever global minor mode
`icicle-mode' is turned on. In that minor mode, `switch-to-buffer' is
remapped to `icicle-buffer'. In the Icicles menu, that binding is indicated
as "(<remap> <switch-to-buffer>)".
next reply other threads:[~2007-01-11 18:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-11 18:32 Drew Adams [this message]
2007-01-11 21:33 ` menu indications of key bindings for remapped commands Kim F. Storm
[not found] <EIENLHALHGIMHGDOLMIMMEEFCOAA.drew.adams@oracle.com>
2007-01-11 18:15 ` Drew Adams
2007-01-11 21:29 ` Kim F. Storm
2007-01-12 2:06 ` Drew Adams
-- strict thread matches above, loose matches on Subject: below --
2007-01-10 22:24 Drew Adams
2007-01-10 23:37 ` Stefan Monnier
2007-01-13 5:49 ` Drew Adams
2007-01-14 1:56 ` Richard Stallman
2007-01-22 19:44 ` Drew Adams
2007-05-20 23:54 ` Drew Adams
2007-05-24 21:22 ` Richard Stallman
2007-01-11 9:42 ` Kim F. Storm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EIENLHALHGIMHGDOLMIMCEEGCOAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.