GNU bug report logs -
#48936
27.2; pulse-reset-face and extend attribute of pulse-highligh-face
Previous Next
Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Date: Wed, 9 Jun 2021 14:16:01 UTC
Severity: normal
Found in version 27.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 48936 <at> debbugs.gnu.org (full text, mbox):
Hi Lars,
On Sun, 13 Jun 2021 at 09:49, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Gustavo Barros <gusbrs.2016 <at> gmail.com> writes:
>
>> Considering the role `pulse-highlight-face' plays in the way `pulse'
>> works, it would be expected that this resetting should also be done
>> for
>> the `:extend' attribute when the function is called without an
>> argument,
>
> I think that sounds correct, so I've now made this change in Emacs 28.
Thank you for looking into this.
But my suggestion was more the one to use the `:extend' attribute of
`pulse-highlight-start-face' to reset `pulse-highlight-face'. Like:
#+begin_src emacs-lisp
(set-face-extend 'pulse-highlight-face
(if face
(face-extend-p face nil t)
(face-extend-p 'pulse-highlight-start-face)))
#+end_src
Because `pulse-highlight-start-face' is the default face `pulse' uses
when the `pulse-momentary-highlight-...' functions are called without
argument. This makes `pulse-highlight-start-face' the only possible
handle for setting the `:extend' attribute for calls of `pulse'
functions without argument. If you just set it to nil when a call with
no argument is made, we can still only get a pulse to work with
`:extend' by explicitly passing the argument.
Btw, this is the same treatment `:background' receives. Why should we
treat both face attributes differently?
Best regards,
Gustavo.
This bug report was last modified 4 years and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.