]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix setting family and foundry in set-face-attribute (Bug#5536).
authorChong Yidong <cyd@stupidchicken.com>
Sun, 7 Feb 2010 04:14:26 +0000 (23:14 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 7 Feb 2010 04:14:26 +0000 (23:14 -0500)
* faces.el (set-face-attribute): Allow calling
internal-set-lisp-face-attribute with 'unspecified family and
foundry argument (Bug#5536).

lisp/ChangeLog
lisp/faces.el

index ae3a55113dca2989d78b52c1bde630a00e8ad891..f754ca0b44d55948b295c7311c073c85cecaa05a 100644 (file)
@@ -1,3 +1,9 @@
+2010-02-07  sj  <prime.wizard+emacs@gmail.com>  (tiny change)
+
+       * faces.el (set-face-attribute): Allow calling
+       internal-set-lisp-face-attribute with 'unspecified family and
+       foundry argument (Bug#5536).
+
 2010-02-07  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/f90.el (f90-font-lock-keywords-2)
index 8edd2851b887e9ae784a31127371417005816a08..a5bc7b1c9650a7c8b2f973f819fd49b30a5b3c22 100644 (file)
@@ -735,10 +735,10 @@ like an underlying face would be, with higher priority than underlying faces."
        (unless foundry
          (setq foundry (match-string 1 family)))
        (setq family (match-string 2 family)))
-      (when (stringp family)
+      (when (or (stringp family) (eq family 'unspecified))
        (internal-set-lisp-face-attribute face :family (purecopy family)
                                          where))
-      (when (stringp foundry)
+      (when (or (stringp foundry) (eq foundry 'unspecified))
        (internal-set-lisp-face-attribute face :foundry (purecopy foundry)
                                          where)))
     (while args