GNU bug report logs - #5536
set-face-attribute doesn't work correctly

Previous Next

Package: emacs;

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.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: sj <prime.wizard+emacs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: set-face-attribute doesn't work correctly
Date: Sun, 7 Feb 2010 00:29:47 +0900
[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)]

This bug report was last modified 15 years and 165 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.