# HG changeset patch # User Chong Yidong # Date 1265516066 18000 # Node ID 3554839df1fc5824ab8184e2691603c509e99029 # Parent 3b143add13641ffaf6b59c9430e0f2c84efc6387 Fix setting family and foundry in set-face-attribute (Bug#5536). * faces.el (set-face-attribute): Allow calling internal-set-lisp-face-attribute with 'unspecified family and foundry argument (Bug#5536). diff -r 3b143add1364 -r 3554839df1fc lisp/ChangeLog --- a/lisp/ChangeLog Sat Feb 06 17:41:45 2010 -0800 +++ b/lisp/ChangeLog Sat Feb 06 23:14:26 2010 -0500 @@ -1,3 +1,9 @@ +2010-02-07 sj (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 * progmodes/f90.el (f90-font-lock-keywords-2) diff -r 3b143add1364 -r 3554839df1fc lisp/faces.el --- a/lisp/faces.el Sat Feb 06 17:41:45 2010 -0800 +++ b/lisp/faces.el Sat Feb 06 23:14:26 2010 -0500 @@ -735,10 +735,10 @@ (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