diff options
| author | Richard M. Stallman | 1993-11-27 07:52:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-11-27 07:52:19 +0000 |
| commit | 852bc46fcb530010b83d4918c3e275d01ca585ab (patch) | |
| tree | 5b6ceb09b6d1d29548f108cc368006882fb45ab6 | |
| parent | 86fb06ae8e42ef47ebd0657c6334358474e64a10 (diff) | |
| download | emacs-852bc46fcb530010b83d4918c3e275d01ca585ab.tar.gz emacs-852bc46fcb530010b83d4918c3e275d01ca585ab.zip | |
(mouse-set-font): Update nonstandard faces that are supposed
to use a modification of the frame's font.
| -rw-r--r-- | lisp/mouse.el | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 7c6648df302..5139086bb47 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1279,7 +1279,24 @@ and selects that window." | |||
| 1279 | (set-face-font 'italic nil (selected-frame)) | 1279 | (set-face-font 'italic nil (selected-frame)) |
| 1280 | (make-face-italic 'italic (selected-frame) t) | 1280 | (make-face-italic 'italic (selected-frame) t) |
| 1281 | (set-face-font 'bold-italic nil (selected-frame)) | 1281 | (set-face-font 'bold-italic nil (selected-frame)) |
| 1282 | (make-face-bold-italic 'bold-italic (selected-frame) t)))) | 1282 | (make-face-bold-italic 'bold-italic (selected-frame) t) |
| 1283 | ;; Update any nonstandard faces whose definition is | ||
| 1284 | ;; "a bold/italic/bold&italic version of the frame's font". | ||
| 1285 | (let ((rest global-face-data)) | ||
| 1286 | (while rest | ||
| 1287 | (condition-case nil | ||
| 1288 | (if (listp (face-font (cdr (car rest)))) | ||
| 1289 | (let ((bold (memq 'bold (face-font (cdr (car rest))))) | ||
| 1290 | (italic (memq 'italic (face-font (cdr (car rest)))))) | ||
| 1291 | (if (and bold italic) | ||
| 1292 | (make-face-bold-italic (car (car rest)) (selected-frame)) | ||
| 1293 | (if bold | ||
| 1294 | (make-face-bold (car (car rest)) (selected-frame)) | ||
| 1295 | (if italic | ||
| 1296 | (make-face-italic (car (car rest)) (selected-frame))))))) | ||
| 1297 | (error nil)) | ||
| 1298 | (setq rest (cdr rest)))) | ||
| 1299 | ))) | ||
| 1283 | 1300 | ||
| 1284 | ;;; Bindings for mouse commands. | 1301 | ;;; Bindings for mouse commands. |
| 1285 | 1302 | ||