diff options
| author | Richard M. Stallman | 1996-01-12 06:12:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-12 06:12:08 +0000 |
| commit | 682e437e05d76954c49ab81f446b0934a1fb4da5 (patch) | |
| tree | 84407fe1efc2ff115d16d0a5c646861ba39bfae2 | |
| parent | d60ae75ce8d4be85633d45859278169ac3061a6d (diff) | |
| download | emacs-682e437e05d76954c49ab81f446b0934a1fb4da5.tar.gz emacs-682e437e05d76954c49ab81f446b0934a1fb4da5.zip | |
(facemenu-add-face): Adding default to no region
once again sets it for following typed in text.
| -rw-r--r-- | lisp/facemenu.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 3e85ada0812..752a95f8d70 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; facemenu.el --- create a face menu for interactively adding fonts to text | 1 | ;;; facemenu.el --- create a face menu for interactively adding fonts to text |
| 2 | ;; Copyright (c) 1994, 1995 Free Software Foundation, Inc. | 2 | ;; Copyright (c) 1994, 1995, 1996 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | ;; Author: Boris Goldowsky <boris@gnu.ai.mit.edu> | 4 | ;; Author: Boris Goldowsky <boris@gnu.ai.mit.edu> |
| 5 | ;; Keywords: faces | 5 | ;; Keywords: faces |
| @@ -497,7 +497,10 @@ effect. See `facemenu-remove-face-function'." | |||
| 497 | (not (eq facemenu-remove-face-function t))) | 497 | (not (eq facemenu-remove-face-function t))) |
| 498 | (if facemenu-remove-face-function | 498 | (if facemenu-remove-face-function |
| 499 | (funcall facemenu-remove-face-function start end) | 499 | (funcall facemenu-remove-face-function start end) |
| 500 | (remove-text-properties start end '(face default))) | 500 | (if (and start (< start end)) |
| 501 | (remove-text-properties start end '(face default)) | ||
| 502 | (setq self-insert-face 'default | ||
| 503 | self-insert-face-command this-command))) | ||
| 501 | (if facemenu-add-face-function | 504 | (if facemenu-add-face-function |
| 502 | (save-excursion | 505 | (save-excursion |
| 503 | (if end (goto-char end)) | 506 | (if end (goto-char end)) |