unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#37628: Inconsistent display of help-echo between minibuffer and tooltips
@ 2019-10-05  8:14 Clément Pit-Claudel
  2020-08-27 12:38 ` Stefan Kangas
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Pit-Claudel @ 2019-10-05  8:14 UTC (permalink / raw)
  To: 37628

Hi all,

This is a follow-up https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00090.html.

Help-echo strings are not displayed consistently by show_help_echo (in keyboard.c) and display-local-help (in help-at-pt.el): in tooltips, substitute-command-keys is called on the help-echo string before passing it to show-help-function, but help-at-pt doesn't perform any substitutions before calling the function.

To reproduce, (insert (propertize "test" 'help-echo "\\[forward-char]")), then press C-h . (which displays \[forward-char]) or hover over the inserted text with your mouse (which displays C-f).

Clément.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#37628: Inconsistent display of help-echo between minibuffer and tooltips
  2019-10-05  8:14 bug#37628: Inconsistent display of help-echo between minibuffer and tooltips Clément Pit-Claudel
@ 2020-08-27 12:38 ` Stefan Kangas
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2020-08-27 12:38 UTC (permalink / raw)
  To: Clément Pit-Claudel, 37628

close 37628 28.1
thanks

Clément Pit-Claudel <cpitclaudel@gmail.com> writes:

> This is a follow-up https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00090.html.
>
> Help-echo strings are not displayed consistently by show_help_echo (in keyboard.c) and display-local-help (in help-at-pt.el): in tooltips, substitute-command-keys is called on the help-echo string before passing it to show-help-function, but help-at-pt doesn't perform any substitutions before calling the function.
>
> To reproduce, (insert (propertize "test" 'help-echo "\\[forward-char]")), then press C-h . (which displays \[forward-char]) or hover over the inserted text with your mouse (which displays C-f).

I've fixed this on master in commit f3b85cd0cb.

I've also posted a followup bug here:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43070

I'm therefore closing this bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-27 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-05  8:14 bug#37628: Inconsistent display of help-echo between minibuffer and tooltips Clément Pit-Claudel
2020-08-27 12:38 ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).