* strange face in buffer-mode
@ 2020-12-16 12:57 Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-16 13:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 2+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-16 12:57 UTC (permalink / raw)
To: help-gnu-emacs
the /d part of ELisp/d comes in the `warning' face.
shouldn't that be the usual `font-lock-warning-face'?
(why the upcase L BTW? ugly)
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strange face in buffer-mode
2020-12-16 12:57 strange face in buffer-mode Emanuel Berg via Users list for the GNU Emacs text editor
@ 2020-12-16 13:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 2+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2020-12-16 13:02 UTC (permalink / raw)
To: help-gnu-emacs
> the /d part of ELisp/d comes in the `warning' face.
> shouldn't that be the usual `font-lock-warning-face'?
>
> (why the upcase L BTW? ugly)
(defun copy-face-attributes (src dst)
(when (and (facep src)
(facep dst) )
(let ((fg (face-attribute src :foreground nil 'default))
(bg (face-attribute src :background nil 'default))
(wt (face-attribute src :weight nil 'default)) )
(sfa dst fg wt bg) )))
(copy-face-attributes 'font-lock-warning-face 'warning)
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-16 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-16 12:57 strange face in buffer-mode Emanuel Berg via Users list for the GNU Emacs text editor
2020-12-16 13:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).