Mercurial > hg > xemacs-beta
comparison lisp/faces.el @ 314:341dac730539 r21-0b55
Import from CVS: tag r21-0b55
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:44:22 +0200 |
parents | 70ad99077275 |
children | 19dcec799385 |
comparison
equal
deleted
inserted
replaced
313:2905de29931f | 314:341dac730539 |
---|---|
1254 ;;(default-custom-frame-properties) | 1254 ;;(default-custom-frame-properties) |
1255 (t | 1255 (t |
1256 (setq default-custom-frame-properties | 1256 (setq default-custom-frame-properties |
1257 (extract-custom-frame-properties (selected-frame)))))) | 1257 (extract-custom-frame-properties (selected-frame)))))) |
1258 | 1258 |
1259 (defun face-spec-update-all-matching (spec display plist) | |
1260 "Update all entries in the face spec that could match display to | |
1261 have the entries from the new plist and return the new spec" | |
1262 (mapcar | |
1263 (lambda (e) | |
1264 (let ((entries (car e)) | |
1265 (options (cadr e)) | |
1266 (match t) | |
1267 dplist | |
1268 (new-options plist) | |
1269 ) | |
1270 (unless (eq display t) | |
1271 (mapc (lambda (arg) | |
1272 (setq dplist (plist-put dplist (car arg) (cadr arg)))) | |
1273 display)) | |
1274 (unless (eq entries t) | |
1275 (mapc (lambda (arg) | |
1276 (setq match (and match (eq (cadr arg) | |
1277 (plist-get | |
1278 dplist (car arg) | |
1279 (cadr arg)))))) | |
1280 entries)) | |
1281 (if (not match) | |
1282 e | |
1283 (while new-options | |
1284 (setq options | |
1285 (plist-put options (car new-options) (cadr new-options))) | |
1286 (setq new-options (cddr new-options))) | |
1287 (list entries options)))) | |
1288 (copy-sequence spec))) | |
1289 | |
1290 | |
1291 | |
1259 (defun face-spec-set-match-display (display &optional frame) | 1292 (defun face-spec-set-match-display (display &optional frame) |
1260 "Return non-nil if DISPLAY matches FRAME. | 1293 "Return non-nil if DISPLAY matches FRAME. |
1261 DISPLAY is part of a spec such as can be used in `defface'. | 1294 DISPLAY is part of a spec such as can be used in `defface'. |
1262 If FRAME is nil or omitted, the selected frame is used." | 1295 If FRAME is nil or omitted, the selected frame is used." |
1263 (if (eq display t) | 1296 (if (eq display t) |