emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does show_help_echo call substitute_command_keys?


From: Yuri Khan
Subject: Re: Why does show_help_echo call substitute_command_keys?
Date: Fri, 21 Jul 2017 16:10:40 +0700

On Fri, Jul 21, 2017 at 4:01 PM, Clément Pit-Claudel
<address@hidden> wrote:
> On 2017-07-21 10:48, Yuri Khan wrote:
>> Because the help-echo property is the Emacs API to tooltips, and
>> tooltips are expected to be able to display keyboard equivalents to
>> clicking the thing that is pointed?
>
> Ok. So we don't expect callers to explicitly use substitute-command-keys on 
> their help-echo properties?

Imagine if it were so.

You add a button to the tool bar, with a help-echo property containing
tooltip text with command keys substituted at the time of addition.

The user rebinds the command to another key. Your button retains its
(now inaccurate) tooltip text.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]