[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: |
Sat, 22 Jul 2017 00:49:00 +0700 |
On Fri, Jul 21, 2017 at 9:54 PM, Drew Adams <address@hidden> 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?
>
> A tooltip should just display whatever text it is handed,
> with no fiddling with or elaboration of that text. If you
> need such fiddling, whether by ``substitute-command-keys'
> or `format' or something else, do it beforehand.
Actually, client code that wishes to display a command key in a
tooltip can set the help-echo property to a function. So, hardcoding
the substitute-command-keys call in show_help_echo does not seem
necessary after all.
RE: Why does show_help_echo call substitute_command_keys?, Drew Adams, 2017/07/21