mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 21:20:53 -08:00
(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.
This commit is contained in:
parent
4ddf0e6494
commit
073f69e6f7
1 changed files with 9 additions and 5 deletions
|
|
@ -1157,12 +1157,16 @@ If SPEC is nil, return nil."
|
|||
(let ((tail spec)
|
||||
result)
|
||||
(while tail
|
||||
(let* ((entry (car tail))
|
||||
(display (nth 0 entry))
|
||||
(attrs (nth 1 entry)))
|
||||
(setq tail (cdr tail))
|
||||
(let* ((entry (pop tail))
|
||||
(display (car entry))
|
||||
(attrs (cdr entry)))
|
||||
(when (face-spec-set-match-display display frame)
|
||||
(setq result attrs tail nil))))
|
||||
(setq result (if (listp (car attrs))
|
||||
;; Old-style entry, the attribute list is the
|
||||
;; first element.
|
||||
(car attrs)
|
||||
attrs)
|
||||
tail nil))))
|
||||
result))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue