Johann 'Myrkraverk' Oskarsson writes:
On Fri, Nov 21, 2014 at 12:52 AM, Stephen J. Turnbull
> Johann 'Myrkraverk' Oskarsson writes:
> > Currently I'm doing this in my init.el:
> > (set-face-property 'font-lock-variable-name-face
> > 'highlight [bold highlight])
So exactly what is it that you're trying to do here? You want
variable names in *bold*, or in *bold and highlighted*? If it's the
former, I think you can do what you want to do with the 'inherit
(set-face-property 'font-lock-variable-name-face 'inherit '(bold))
However, I don't see a real advantage in that over
(set-face-property 'font-lock-variable-name-face 'bold t)
(these last two have the same effect, the former involves more
computation, some of it sort of heuristic in some cases).
Note that on a TTY, these properties are determined by whether the
terminal supports them according to terminfo (or maybe termcap).
> Does this actually do anything different from
> (set-face-property 'font-lock-variable-name-face 'highlight t)
There's no observable difference (where I'm using this I'm using tty
only; never X) but the value for bold is not t.
I don't understand what "value for bold" you're talking about, or why
you even mention the value for bold.
The 'highlight property is a Boolean specifier. The values associated
with the specifier shown below are all nil or t, and in particular the
value for the 'global locale with a display of tty class is indeed t.
(face-property 'bold 'highlight)
#<face-boolean-specifier global=(((tty) . t) ((default tty) . t))
fallback=((nil)) 0x1d3> 0x724>
XEmacs-Beta mailing list