Mercurial > emacs
comparison lisp/faces.el @ 26337:6bf33b333eb2
(make-face-bold, make-face-unbold, make-face-italic)
(make-face-unitalic, make-face-bold-italic): Add NOERROR argument
for compatibility with old face implementation.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 03 Nov 1999 17:16:13 +0000 |
parents | 5b21204674a9 |
children | 5fd5d2ab9546 |
comparison
equal
deleted
inserted
replaced
26336:555733a3a38e | 26337:6bf33b333eb2 |
---|---|
546 (internal-set-lisp-face-attribute face (car args) | 546 (internal-set-lisp-face-attribute face (car args) |
547 (car (cdr args)) frame) | 547 (car (cdr args)) frame) |
548 (setq args (cdr (cdr args))))))) | 548 (setq args (cdr (cdr args))))))) |
549 | 549 |
550 | 550 |
551 (defun make-face-bold (face &optional frame) | 551 (defun make-face-bold (face &optional frame noerror) |
552 "Make the font of FACE be bold, if possible. | 552 "Make the font of FACE be bold, if possible. |
553 FRAME nil or not specified means change face on all frames. | 553 FRAME nil or not specified means change face on all frames. |
554 Argument NOERROR is ignored and retained for compatibility. | |
554 Use `set-face-attribute' for finer control of the font weight." | 555 Use `set-face-attribute' for finer control of the font weight." |
555 (interactive (list (read-face-name "Make which face bold: "))) | 556 (interactive (list (read-face-name "Make which face bold: "))) |
556 (set-face-attribute face frame :weight 'bold)) | 557 (set-face-attribute face frame :weight 'bold)) |
557 | 558 |
558 | 559 |
559 (defun make-face-unbold (face &optional frame) | 560 (defun make-face-unbold (face &optional frame noerror) |
560 "Make the font of FACE be non-bold, if possible. | 561 "Make the font of FACE be non-bold, if possible. |
561 FRAME nil or not specified means change face on all frames." | 562 FRAME nil or not specified means change face on all frames. |
563 Argument NOERROR is ignored and retained for compatibility." | |
562 (interactive (list (read-face-name "Make which face non-bold: "))) | 564 (interactive (list (read-face-name "Make which face non-bold: "))) |
563 (set-face-attribute face frame :weight 'normal)) | 565 (set-face-attribute face frame :weight 'normal)) |
564 | 566 |
565 | 567 |
566 (defun make-face-italic (face &optional frame) | 568 (defun make-face-italic (face &optional frame noerror) |
567 "Make the font of FACE be italic, if possible. | 569 "Make the font of FACE be italic, if possible. |
568 FRAME nil or not specified means change face on all frames. | 570 FRAME nil or not specified means change face on all frames. |
571 Argument NOERROR is ignored and retained for compatibility. | |
569 Use `set-face-attribute' for finer control of the font slant." | 572 Use `set-face-attribute' for finer control of the font slant." |
570 (interactive (list (read-face-name "Make which face italic: "))) | 573 (interactive (list (read-face-name "Make which face italic: "))) |
571 (set-face-attribute face frame :slant 'italic)) | 574 (set-face-attribute face frame :slant 'italic)) |
572 | 575 |
573 | 576 |
574 (defun make-face-unitalic (face &optional frame) | 577 (defun make-face-unitalic (face &optional frame noerror) |
575 "Make the font of FACE be non-italic, if possible. | 578 "Make the font of FACE be non-italic, if possible. |
576 FRAME nil or not specified means change face on all frames." | 579 FRAME nil or not specified means change face on all frames." |
577 (interactive (list (read-face-name "Make which face non-italic: "))) | 580 (interactive (list (read-face-name "Make which face non-italic: "))) |
578 (set-face-attribute face frame :slant 'normal)) | 581 (set-face-attribute face frame :slant 'normal)) |
579 | 582 |
580 | 583 |
581 (defun make-face-bold-italic (face &optional frame) | 584 (defun make-face-bold-italic (face &optional frame noerror) |
582 "Make the font of FACE be bold and italic, if possible. | 585 "Make the font of FACE be bold and italic, if possible. |
583 FRAME nil or not specified means change face on all frames. | 586 FRAME nil or not specified means change face on all frames. |
587 Argument NOERROR is ignored and retained for compatibility. | |
584 Use `set-face-attribute' for finer control of font weight and slant." | 588 Use `set-face-attribute' for finer control of font weight and slant." |
585 (interactive (list (read-face-name "Make which face bold-italic: "))) | 589 (interactive (list (read-face-name "Make which face bold-italic: "))) |
586 (set-face-attribute face frame :weight 'bold :slant 'italic)) | 590 (set-face-attribute face frame :weight 'bold :slant 'italic)) |
587 | 591 |
588 | 592 |