Mercurial > emacs
changeset 4220:c89f55065260
(mouse-set-font): Update faces bold, italic and bold-italic.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 22 Jul 1993 06:20:40 +0000 |
parents | 24f3ca095be9 |
children | 829413cfe196 |
files | lisp/mouse.el |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Thu Jul 22 06:12:37 1993 +0000 +++ b/lisp/mouse.el Thu Jul 22 06:20:40 1993 +0000 @@ -923,8 +923,15 @@ (interactive (x-popup-menu last-nonmenu-event x-fixed-font-alist)) (if font - (modify-frame-parameters (selected-frame) - (list (cons 'font font))))) + (progn (modify-frame-parameters (selected-frame) + (list (cons 'font font))) + ;; Update some standard faces too. + (set-face-font 'bold nil (selected-frame)) + (make-face-bold 'bold (selected-frame) t) + (set-face-font 'italic nil (selected-frame)) + (make-face-italic 'italic (selected-frame) t) + (set-face-font 'bold-italic nil (selected-frame)) + (make-face-bold-italic 'bold-italic (selected-frame) t)))) ;;; Bindings for mouse commands.