aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-02-06 23:14:26 -0500
committerChong Yidong2010-02-06 23:14:26 -0500
commitc917476d6b5069d8c81675bf7f661ee3ebceb84d (patch)
treeab477b9a01f647ba2986aef008ef3bf28eead36d
parent7cf3f3d6dad1f58775723ab29e59336159195183 (diff)
downloademacs-c917476d6b5069d8c81675bf7f661ee3ebceb84d.tar.gz
emacs-c917476d6b5069d8c81675bf7f661ee3ebceb84d.zip
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).
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/faces.el4
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ae3a55113dc..f754ca0b44d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12010-02-07 sj <prime.wizard+emacs@gmail.com> (tiny change)
2
3 * faces.el (set-face-attribute): Allow calling
4 internal-set-lisp-face-attribute with 'unspecified family and
5 foundry argument (Bug#5536).
6
12010-02-07 Glenn Morris <rgm@gnu.org> 72010-02-07 Glenn Morris <rgm@gnu.org>
2 8
3 * progmodes/f90.el (f90-font-lock-keywords-2) 9 * progmodes/f90.el (f90-font-lock-keywords-2)
diff --git a/lisp/faces.el b/lisp/faces.el
index 8edd2851b88..a5bc7b1c965 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -735,10 +735,10 @@ like an underlying face would be, with higher priority than underlying faces."
735 (unless foundry 735 (unless foundry
736 (setq foundry (match-string 1 family))) 736 (setq foundry (match-string 1 family)))
737 (setq family (match-string 2 family))) 737 (setq family (match-string 2 family)))
738 (when (stringp family) 738 (when (or (stringp family) (eq family 'unspecified))
739 (internal-set-lisp-face-attribute face :family (purecopy family) 739 (internal-set-lisp-face-attribute face :family (purecopy family)
740 where)) 740 where))
741 (when (stringp foundry) 741 (when (or (stringp foundry) (eq foundry 'unspecified))
742 (internal-set-lisp-face-attribute face :foundry (purecopy foundry) 742 (internal-set-lisp-face-attribute face :foundry (purecopy foundry)
743 where))) 743 where)))
744 (while args 744 (while args