emacs-devel
[Top][All Lists]
Advanced

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

Re: display value of links in mini-buffer (was: Re: bug archiving policy


From: Yuri Khan
Subject: Re: display value of links in mini-buffer (was: Re: bug archiving policy)
Date: Sun, 6 Dec 2020 18:51:43 +0700

On Sun, 6 Dec 2020 at 18:39, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Sun, 6 Dec 2020 06:35:02 -0500
> > From: Boruch Baum <boruch_baum@gmx.com>
> > Cc: Yuri Khan <yuri.v.khan@gmail.com>, emacs-devel@gnu.org
> >
> > > We already have the kbd-help property (display-local-help supports
> > > it); would that fit the bill?
> >
> > Why need for two separate properties?
>
> Because they are supposed to produce different effects: kbd-help shows
> the message in the echo area, even on GUI frames.  They never pop up
> tooltips, AFAIK.

$ emacs -Q
(insert (propertize "foo" 'kbd-help "bar")) C-x C-e

Observed behavior: the text ‘foo’ is inserted right after the closing
parentheses. No effect on the echo area. If I move the point around,
no effect on the echo area. If I press ‘<f1> .’, I get “bar”.

So, if we agree that kbd-help is the right property, the code to
display it when the point moves in still needs to be written.

Additionally, we’d need to either convince authors of modes that place
a 'help-echo property on buffer text that they should also place a
'kbd-help property; or have the proposed mode fall back to 'help-echo
if there is no 'kbd-help at point as ‘display-local-help’ does.



reply via email to

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