[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does show_help_echo call substitute_command_keys?
From: |
Clément Pit-Claudel |
Subject: |
Re: Why does show_help_echo call substitute_command_keys? |
Date: |
Fri, 21 Jul 2017 11:19:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 2017-07-21 11:10, Yuri Khan wrote:
> 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.
This makes complete sense; thanks!
RE: Why does show_help_echo call substitute_command_keys?, Drew Adams, 2017/07/21