aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorMiles Bader2000-10-27 01:46:13 +0000
committerMiles Bader2000-10-27 01:46:13 +0000
commit073f69e6f7eeafe53d19fb29d44eb5f2bedda38d (patch)
tree105c72ea2d0067c7b0956f94f6b23f26c6bbc6fe /lisp/faces.el
parent4ddf0e64941018634f6133cc6e113c7b7dfdfea8 (diff)
downloademacs-073f69e6f7eeafe53d19fb29d44eb5f2bedda38d.tar.gz
emacs-073f69e6f7eeafe53d19fb29d44eb5f2bedda38d.zip
(face-spec-choose): Change syntax so that the list of attribute-value
pairs is now the cdr of each clause, not the cadr. Detect old-style entries, and handle them. Use pop.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el14
1 files changed, 9 insertions, 5 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 8252d273f85..60e8e1a49c2 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1157,12 +1157,16 @@ If SPEC is nil, return nil."
1157 (let ((tail spec) 1157 (let ((tail spec)
1158 result) 1158 result)
1159 (while tail 1159 (while tail
1160 (let* ((entry (car tail)) 1160 (let* ((entry (pop tail))
1161 (display (nth 0 entry)) 1161 (display (car entry))
1162 (attrs (nth 1 entry))) 1162 (attrs (cdr entry)))
1163 (setq tail (cdr tail))
1164 (when (face-spec-set-match-display display frame) 1163 (when (face-spec-set-match-display display frame)
1165 (setq result attrs tail nil)))) 1164 (setq result (if (listp (car attrs))
1165 ;; Old-style entry, the attribute list is the
1166 ;; first element.
1167 (car attrs)
1168 attrs)
1169 tail nil))))
1166 result)) 1170 result))
1167 1171
1168 1172