aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-11-03 17:17:28 +0000
committerGerd Moellmann1999-11-03 17:17:28 +0000
commit39cac3e78f3387c6ea06276d5dd56d9726e30163 (patch)
tree062fbd461d54365b6df987b516ed6c12acb59eee
parentb51b619b17e1e87e15ea5984660022d259bde9eb (diff)
downloademacs-39cac3e78f3387c6ea06276d5dd56d9726e30163.tar.gz
emacs-39cac3e78f3387c6ea06276d5dd56d9726e30163.zip
(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.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/faces.el16
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 04102abf88d..48e3cacb3a8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
11999-11-03 Gerd Moellmann <gerd@gnu.org> 11999-11-03 Gerd Moellmann <gerd@gnu.org>
2 2
3 * faces.el (make-face-bold, make-face-unbold, make-face-italic)
4 (make-face-unitalic, make-face-bold-italic): Add NOERROR argument
5 for compatibility with old face implementation.
6
3 * isearch.el (isearch-complete-edit, isearch-ring-advance-edit): 7 * isearch.el (isearch-complete-edit, isearch-ring-advance-edit):
4 Use erase-field instead of erase-buffer. 8 Use erase-field instead of erase-buffer.
5 9
diff --git a/lisp/faces.el b/lisp/faces.el
index 83af2d40f94..e016814fe95 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -548,39 +548,43 @@ must be t or nil in that case. A value of `unspecified' is not allowed."
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.
553FRAME nil or not specified means change face on all frames. 553FRAME nil or not specified means change face on all frames.
554Argument NOERROR is ignored and retained for compatibility.
554Use `set-face-attribute' for finer control of the font weight." 555Use `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.
561FRAME nil or not specified means change face on all frames." 562FRAME nil or not specified means change face on all frames.
563Argument 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.
568FRAME nil or not specified means change face on all frames. 570FRAME nil or not specified means change face on all frames.
571Argument NOERROR is ignored and retained for compatibility.
569Use `set-face-attribute' for finer control of the font slant." 572Use `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.
576FRAME nil or not specified means change face on all frames." 579FRAME 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.
583FRAME nil or not specified means change face on all frames. 586FRAME nil or not specified means change face on all frames.
587Argument NOERROR is ignored and retained for compatibility.
584Use `set-face-attribute' for finer control of font weight and slant." 588Use `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))