From: Drew Adams <drew.adams@oracle.com>
To: "Stefan Kangas" <stefan@marxist.se>,
"Clément Pit-Claudel" <cpitclaudel@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Moving `substitute-command-keys' to Lisp [was: Ideas to improve the output of C-h m?]
Date: Wed, 6 May 2020 10:28:42 -0700 (PDT) [thread overview]
Message-ID: <1f3c3ee1-327b-4728-98cb-b5989fe353dd@default> (raw)
Sounds good to have `substitute-command-keys'
defined in Lisp. Thanks for working on that.
Hopefully it will have the same behavior.
FWIW, `help-fns+.el' uses a Lisp wrapper for it,
`help-substitute-command-keys' that optionally adds
(so-called) buttons for help on key descriptions
that result from `\\[...]'.
E.g. the `C-x 2' output from `\\[split-window-below]'
gets a button that links to the `describe-key' *Help*.
Perhaps that feature could be added to your Lisp
`substitute-command-keys' (in which case I'd drop my
`help-substitute-command-keys'). It'd be backward
compatible, since it just adds an optional arg - the
default behavior is vanilla `substitute-command-keys'.
___
help-substitute-command-keys is a Lisp function in ‘help-fns+.el’.
(help-substitute-command-keys STRING &optional ADD-HELP-BUTTONS)
Same as `substitute-command-keys', but optionally adds buttons for help.
Non-nil optional arg ADD-HELP-BUTTONS does that, adding buttons to key
descriptions, which link to the key's command help.
___
The code is here:
https://www.emacswiki.org/emacs/download/help-fns%2b.el
reply other threads:[~2020-05-06 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1f3c3ee1-327b-4728-98cb-b5989fe353dd@default \
--to=drew.adams@oracle.com \
--cc=cpitclaudel@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=stefan@marxist.se \
/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 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).