aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-12-31 15:02:34 +0000
committerRichard M. Stallman2007-12-31 15:02:34 +0000
commit606c9f599e3ff5fc66935ab6380e36b777d1060d (patch)
tree38380fdf5c6fe507d7722445e4886a90d3f0210e
parent15f16c1ba7dd122c0a2c22fb57e93aed3a97d28f (diff)
downloademacs-606c9f599e3ff5fc66935ab6380e36b777d1060d.tar.gz
emacs-606c9f599e3ff5fc66935ab6380e36b777d1060d.zip
(face-all-attributes): If FRAME is nil, return defaults.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/faces.el5
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5a645e75e3c..cd73a8e0018 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-12-31 Richard Stallman <rms@gnu.org>
2
3 * faces.el (face-all-attributes): If FRAME is nil, return defaults.
4
12007-12-31 Jay Belanger <jay.p.belanger@gmail.com> 52007-12-31 Jay Belanger <jay.p.belanger@gmail.com>
2 6
3 * calc/calc-units.el (calc-convert-temperature): Ensure that units 7 * 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).
357Normally the value describes the default attributes, 357Normally the value describes the default attributes,
358but if you specify FRAME, the value describes the attributes 358but if you specify FRAME, the value describes the attributes
359of FACE on FRAME." 359of FACE on FRAME."
360 (mapcar (lambda (pair) (let ((attr (car pair))) 360 (mapcar (lambda (pair)
361 (cons attr (face-attribute face attr frame)))) 361 (let ((attr (car pair)))
362 (cons attr (face-attribute face attr (or frame t)))))
362 face-attribute-name-alist)) 363 face-attribute-name-alist))
363 364
364(defun face-attribute (face attribute &optional frame inherit) 365(defun face-attribute (face attribute &optional frame inherit)