GNU bug report logs -
#15745
[PATCH] Define semantic-idle-symbol-highlight-face with defface
Previous Next
Reported by: Barry OReilly <gundaetiapo <at> gmail.com>
Date: Mon, 28 Oct 2013 21:05:02 UTC
Severity: wishlist
Tags: patch
Done: Barry OReilly <gundaetiapo <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Thank you for your patience and guidance.
> Just define the new face to inherit from `region', so as to preserve
> the old behavior:
>
> (defface semantic-idle-symbol-highlight
> '((t :inherit region))
> "Face used for highlighting local symbols.")
It's weird that the region face would be used for this, because it has
nothing to do with the region. The fact that it can make me think I
have a region marked when I don't is a motivator for this bug report.
My primary concern is that I can customize it personally, so I revised
the patch to have the face inherit region.
> Not quite what I had in mind (taking something that was a variable
> and turning it into a face alias won't work right, will it?).
I probably misinterpreted your earlier tip. I looked off of
diary-face:
(define-obsolete-face-alias 'diary-face 'diary "22.1")
I tested the last patch before sending it and it worked. Although that
patch used the defface variable and not the obsoleted one.
> Then these bits:
>
> - region semantic-idle-symbol-highlight-face)
> + region 'semantic-idle-symbol-highlight)
>
> are not necessary (or appropriate).
I don't know why using obsolete variables is most appropriate, but
I've done as requested in the revised attached patch.
[Message part 2 (text/html, inline)]
[semantic-face.diff (application/octet-stream, attachment)]
This bug report was last modified 11 years and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.