unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Qs on key-description, substitute-command-keys
@ 2005-10-04 23:55 Drew Adams
  2005-10-05 16:23 ` Kevin Rodgers
  2005-10-14 22:53 ` Drew Adams
  0 siblings, 2 replies; 13+ messages in thread
From: Drew Adams @ 2005-10-04 23:55 UTC (permalink / raw)


Why was the output from `key-description' and `substitute-command-keys'
changed to use angle brackets around simple key sequences like S-tab?

I have, for instance, a help string that looks like this when displayed:
(S-tab or TAB: list, C-h: help). I mean, that's what it looks like in Emacs
20 - in Emacs 22, the first key sequence is shown as <S-tab>, while the
others remain simple, without angle brackets.

I'm sure there are good reasons why this was changed, but I'm curious why.

Is there another standard function I can call, perhaps in combination with
`substitute-command-keys', to get the simpler representation, S-tab, from
the less readable <S-tab>? Or should I just roll my own?

Also, is there a good way to control which of several key bindings for a
command is output by `substitute-command-keys'? The only way I've found is
to make sure that the one I want is the last of the key sequences for that
command defined in the map - and that's not always feasible. I found nothing
in the manual about which binding is displayed or how to control that.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-10-16 14:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04 23:55 Qs on key-description, substitute-command-keys Drew Adams
2005-10-05 16:23 ` Kevin Rodgers
2005-10-05 16:39   ` Drew Adams
2005-10-14 22:53 ` Drew Adams
2005-10-15 11:27   ` Juri Linkov
2005-10-15 14:25     ` Drew Adams
2005-10-16 14:40     ` Richard M. Stallman
2005-10-15 11:54   ` Stefan Monnier
2005-10-15 14:35     ` Drew Adams
2005-10-16 13:07       ` Stefan Monnier
2005-10-16 14:40       ` Richard M. Stallman
2005-10-15 18:00     ` John S. Yates, Jr.
2005-10-16 13:12       ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).