From: Richard M. Stallman Date: Mon, 31 Dec 2007 15:02:34 +0000 (+0000) Subject: (face-all-attributes): If FRAME is nil, return defaults. X-Git-Tag: emacs-pretest-23.0.90~8755 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=606c9f599e3ff5fc66935ab6380e36b777d1060d;p=emacs.git (face-all-attributes): If FRAME is nil, return defaults. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5a645e75e3c..cd73a8e0018 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2007-12-31 Richard Stallman + + * faces.el (face-all-attributes): If FRAME is nil, return defaults. + 2007-12-31 Jay Belanger * calc/calc-units.el (calc-convert-temperature): Ensure that units diff --git a/lisp/faces.el b/lisp/faces.el index 5f8f6d58522..b2646b21a1a 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -357,8 +357,9 @@ Each element of the result has the form (ATTR-NAME . ATTR-VALUE). Normally the value describes the default attributes, but if you specify FRAME, the value describes the attributes of FACE on FRAME." - (mapcar (lambda (pair) (let ((attr (car pair))) - (cons attr (face-attribute face attr frame)))) + (mapcar (lambda (pair) + (let ((attr (car pair))) + (cons attr (face-attribute face attr (or frame t))))) face-attribute-name-alist)) (defun face-attribute (face attribute &optional frame inherit)