diff options
| -rw-r--r-- | lisp/faces.el | 14 |
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 | ||