diff options
| author | Karl Heuer | 1994-09-14 03:22:57 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-14 03:22:57 +0000 |
| commit | 96616c048a224641d01c37bcb5fb7d0010c42ed9 (patch) | |
| tree | 2b4d4cd8064238d7ecd29f1f2649098df3cd9a59 | |
| parent | 1981e886788dd74d4cc5e70cc061e123092ac43c (diff) | |
| download | emacs-96616c048a224641d01c37bcb5fb7d0010c42ed9.tar.gz emacs-96616c048a224641d01c37bcb5fb7d0010c42ed9.zip | |
(make-face-unbold, make-face-unitalic, make-face-bold, make-face-italic,
make-face-bold-italic): Don't try to frob font if it's nil.
| -rw-r--r-- | lisp/faces.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 9af2a9a9371..a058292ab39 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -544,7 +544,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 544 | (setq font (or font | 544 | (setq font (or font |
| 545 | (face-font 'default frame) | 545 | (face-font 'default frame) |
| 546 | (cdr (assq 'font (frame-parameters frame))))) | 546 | (cdr (assq 'font (frame-parameters frame))))) |
| 547 | (make-face-bold-internal face frame font)) | 547 | (and font (make-face-bold-internal face frame font))) |
| 548 | (or (not (equal ofont (face-font face))) | 548 | (or (not (equal ofont (face-font face))) |
| 549 | (and (not noerror) | 549 | (and (not noerror) |
| 550 | (error "No bold version of %S" font)))))) | 550 | (error "No bold version of %S" font)))))) |
| @@ -582,7 +582,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 582 | (setq font (or font | 582 | (setq font (or font |
| 583 | (face-font 'default frame) | 583 | (face-font 'default frame) |
| 584 | (cdr (assq 'font (frame-parameters frame))))) | 584 | (cdr (assq 'font (frame-parameters frame))))) |
| 585 | (make-face-italic-internal face frame font)) | 585 | (and font (make-face-italic-internal face frame font))) |
| 586 | (or (not (equal ofont (face-font face))) | 586 | (or (not (equal ofont (face-font face))) |
| 587 | (and (not noerror) | 587 | (and (not noerror) |
| 588 | (error "No italic version of %S" font)))))) | 588 | (error "No italic version of %S" font)))))) |
| @@ -618,7 +618,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 618 | (setq font (or font | 618 | (setq font (or font |
| 619 | (face-font 'default frame) | 619 | (face-font 'default frame) |
| 620 | (cdr (assq 'font (frame-parameters frame))))) | 620 | (cdr (assq 'font (frame-parameters frame))))) |
| 621 | (make-face-bold-italic-internal face frame font)) | 621 | (and font (make-face-bold-italic-internal face frame font))) |
| 622 | (or (not (equal ofont (face-font face))) | 622 | (or (not (equal ofont (face-font face))) |
| 623 | (and (not noerror) | 623 | (and (not noerror) |
| 624 | (error "No bold italic version of %S" font)))))) | 624 | (error "No bold italic version of %S" font)))))) |
| @@ -672,7 +672,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 672 | (setq font1 (or font1 | 672 | (setq font1 (or font1 |
| 673 | (face-font 'default frame) | 673 | (face-font 'default frame) |
| 674 | (cdr (assq 'font (frame-parameters frame))))) | 674 | (cdr (assq 'font (frame-parameters frame))))) |
| 675 | (setq font (x-make-font-unbold font1)) | 675 | (setq font (and font1 (x-make-font-unbold font1))) |
| 676 | (if font (internal-try-face-font face font frame))) | 676 | (if font (internal-try-face-font face font frame))) |
| 677 | (or (not (equal ofont (face-font face))) | 677 | (or (not (equal ofont (face-font face))) |
| 678 | (and (not noerror) | 678 | (and (not noerror) |
| @@ -704,7 +704,7 @@ If NOERROR is non-nil, return nil on failure." | |||
| 704 | (setq font1 (or font1 | 704 | (setq font1 (or font1 |
| 705 | (face-font 'default frame) | 705 | (face-font 'default frame) |
| 706 | (cdr (assq 'font (frame-parameters frame))))) | 706 | (cdr (assq 'font (frame-parameters frame))))) |
| 707 | (setq font (x-make-font-unitalic font1)) | 707 | (setq font (and font1 (x-make-font-unitalic font1))) |
| 708 | (if font (internal-try-face-font face font frame))) | 708 | (if font (internal-try-face-font face font frame))) |
| 709 | (or (not (equal ofont (face-font face))) | 709 | (or (not (equal ofont (face-font face))) |
| 710 | (and (not noerror) | 710 | (and (not noerror) |