GNU bug report logs - #35393
26.2; `help-echo' text propertized with `face' is not shown in that face

Previous Next

Package: emacs;

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.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 35393 <at> debbugs.gnu.org
Subject: bug#35393: 26.2; `help-echo' text propertized with `face' is not shown in that face
Date: Tue, 22 Jun 2021 16:38:34 +0200
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




This bug report was last modified 4 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.