GNU bug report logs -
#14645
Keep highlighting face foreground
Previous Next
Reported by: Juri Linkov <juri <at> jurta.org>
Date: Mon, 17 Jun 2013 23:08:02 UTC
Severity: wishlist
Tags: fixed, patch
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
Juri Linkov <juri <at> jurta.org> writes:
> Now that we have a new function `add-face-text-property' it would be
> very useful for features that add faces with a different background
> to highlight matches. For instance, `occur' uses `add-text-properties'
> to add the `match' face, but currently it removes foreground colors
> from the text copied from the fontified buffer.
[...]
> + '(occur-match t) curstring)
> + (when match-face
> + ;; Add `match-face' to faces copied from the buffer.
> + (add-face-text-property
> + (match-beginning 0) (match-end 0)
> + match-face nil curstring))
Looks like a variation of this has been applied already.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.