bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5536: set-face-attribute doesn't work correctly


From: sj
Subject: bug#5536: set-face-attribute doesn't work correctly
Date: Sun, 7 Feb 2010 00:29:47 +0900

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))
===============================================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]