GNU bug report logs -
#5536
set-face-attribute doesn't work correctly
Previous Next
Reported by: sj <prime.wizard+emacs <at> gmail.com>
Date: Sat, 6 Feb 2010 19:10:03 UTC
Severity: normal
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5536 in the body.
You can then email your comments to 5536 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5536
; Package
emacs
.
(Sat, 06 Feb 2010 19:10:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
sj <prime.wizard+emacs <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 06 Feb 2010 19:10:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
symptom:
(custom-face-attributes-get 'font-lock-keyword-face nil)
==> (:foreground "Cyan1")
(set-face-attribute 'font-lock-keyword-face nil
:family "verdana")
(custom-face-attributes-get 'font-lock-keyword-face nil)
==> (:foreground "Cyan1" :family "verdana")
--------------------------------------------------------------
(set-face-attribute 'font-lock-keyword-face nil
:family 'unspecified)
(custom-face-attributes-get 'font-lock-keyword-face nil)
==> (:foreground "Cyan1" :family "verdana") ;; wasn't removed
--------------------------------------------------------------
my solution:
modify faces.el file
===============================================================
738c738
< (when (stringp family)
---
> (when (or (stringp family)(eq family 'unspecified))
741c741
< (when (stringp foundry)
---
> (when (or (stringp foundry)(eq foundry 'unspecified))
===============================================================
[Message part 2 (text/html, inline)]
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5536
; Package
emacs
.
(Sun, 07 Feb 2010 04:16:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 5536 <at> debbugs.gnu.org (full text, mbox):
> (custom-face-attributes-get 'font-lock-keyword-face nil)
> ==> (:foreground "Cyan1")
> (set-face-attribute 'font-lock-keyword-face nil
> :family "verdana")
> (custom-face-attributes-get 'font-lock-keyword-face nil)
> ==> (:foreground "Cyan1" :family "verdana")
> (set-face-attribute 'font-lock-keyword-face nil
> :family 'unspecified)
> (custom-face-attributes-get 'font-lock-keyword-face nil)
> ==> (:foreground "Cyan1" :family "verdana")
>
> my solution:
> modify faces.el file
Thanks. Your patch looks reasonable, and I've checked it in.
bug closed, send any further explanations to sj <prime.wizard+emacs <at> gmail.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sun, 07 Feb 2010 04:16:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <bug-gnu-emacs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 07 Mar 2010 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 114 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.