GNU bug report logs -
#35393
26.2; `help-echo' text propertized with `face' is not shown in that face
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 23 Apr 2019 13:18:01 UTC
Severity: minor
Tags: confirmed
Found in versions 26.2, 27.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35393 in the body.
You can then email your comments to 35393 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35393
; Package
emacs
.
(Tue, 23 Apr 2019 13:18:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 23 Apr 2019 13:18:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
emacs -Q
C-x b foo ; buffer in fundamental mode
Type a line of arbitrary text.
Type this and evaluate it:
(put-text-property 1 10 'help-echo "ABCDEFG")
No problem. The tooltip appears as expected, using face `tooltip'.
Now try this instead:
(put-text-property 1 10
'help-echo (propertize "rstuvwxyz" 'face 'custom-changed))
The propertized string is not used. The text property `face' is set
correctly, but the tooltip displayed ignores it.
If this is not considered a bug then please consider it an enhancement
request to be able to use a propertized string.
Consider the use case of a tooltip that shows a tiny bit of code, but
with more than one line, so that alignment etc. is important. You might
well want that code to be shown in a fixed-width font. You should be
able to do this by passing a string propertized with the appropriate
face.
In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
of 2019-04-13
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35393
; Package
emacs
.
(Tue, 23 Apr 2019 13:34:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 35393 <at> debbugs.gnu.org (full text, mbox):
Forgot to add:
Contrast this with `x-show-tip', which accepts a propertized string and shows the tooltip using it.
Why should tooltip use of `help-echo' override or
ignore any text properties on its string value?
Added tag(s) confirmed.
Request was from
Akshay Gaikwad <akgaikwad001 <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 17 Jul 2019 02:51:01 GMT)
Full text and
rfc822 format available.
bug Marked as found in versions 27.0.50.
Request was from
Akshay Gaikwad <akgaikwad001 <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Wed, 17 Jul 2019 02:51:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35393
; Package
emacs
.
(Tue, 22 Jun 2021 14:39:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 35393 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> Now try this instead:
>
> (put-text-property 1 10
> 'help-echo (propertize "rstuvwxyz" 'face 'custom-changed))
>
> The propertized string is not used. The text property `face' is set
> correctly, but the tooltip displayed ignores it.
So the test case here is basically:
(tooltip-show (propertize "foo" 'face 'error))
This was apparently fixed earlier this year in Emacs 28. The code is
now:
;; Use non-nil APPEND argument below to avoid overriding any
;; faces used in our TEXT. Among other things, this allows
;; tooltips to use the `help-key-binding' face used in
;; `substitute-command-keys' substitutions.
(add-face-text-property 0 (length text) 'variable-pitch t text)
So I'm closing this bug report. If this is still a problem (there's
some difference between different architectures), please respond to the
debbugs address and we'll reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug marked as fixed in version 28.1, send any further explanations to
35393 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Tue, 22 Jun 2021 14:39:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 21 Jul 2021 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 252 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.