[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8951: 24.0.50; [PATCH] enhancement request: buttonize key names
From: |
Stefan Kangas |
Subject: |
bug#8951: 24.0.50; [PATCH] enhancement request: buttonize key names |
Date: |
Fri, 22 Oct 2021 17:46:24 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
tags 8951 + patch
thanks
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> What is the feature? Let users click a key description (i.e., a
>> key name, such as `C-f') in a buffer such as *Help* to see the
>> associated help. This applies to key descriptions derived from
>> \[...] doc patterns (only).
>
> That looks like a good idea. Have you tried to plug it directly into
> substitute-command-keys instead? Are there places where such buttons
> become annoying?
(I have had a patch sitting around for a while, but it failed bootstrap.
It turns out that the fix was a simple `fboundp', heh.)
The attached patch adds a new option `help-mode--add-function-link' that
when non-nil makes `substitute-command-keys' add a link to the
`describe-function' for the bound command when inserting keys.
I have reconsidered my previously held opinion that this should be off
by default. From using this patch, I have come to the conclusion that
this position is wrong, as this is in fact highly useful in places such
as `M-x ibuffer RET C-h m' and on many other help screen besides. The
only adverse effect of enabling it, furthermore, is that you might have
to hit TAB a couple of times more on some help screens. So I think
having it on by default is very much a good thing.
0001-Add-new-option-help-link-key-to-documentation.patch
Description: Text Data