diff options
| author | Stefan Monnier | 2002-06-18 23:03:55 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-06-18 23:03:55 +0000 |
| commit | c8bc0b5f48530bed81b4b5736791c26084e0ebb0 (patch) | |
| tree | 29465dc994cb8154668a36e6c83f1654b3d86e7a | |
| parent | f95b7b8957ae2d35f794d1af566d149ee66698ed (diff) | |
| download | emacs-c8bc0b5f48530bed81b4b5736791c26084e0ebb0.tar.gz emacs-c8bc0b5f48530bed81b4b5736791c26084e0ebb0.zip | |
(cvs-add-face): Fix silly oversight.
| -rw-r--r-- | lisp/pcvs-info.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/pcvs-info.el b/lisp/pcvs-info.el index 422063e2984..606987bddb6 100644 --- a/lisp/pcvs-info.el +++ b/lisp/pcvs-info.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: pcl-cvs | 6 | ;; Keywords: pcl-cvs |
| 7 | ;; Revision: $Id: pcvs-info.el,v 1.10 2002/06/15 19:04:57 walters Exp $ | 7 | ;; Revision: $Id: pcvs-info.el,v 1.11 2002/06/18 21:47:41 monnier Exp $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -310,13 +310,11 @@ FI-OR-TYPE can either be a symbol (a fileinfo-type) or a fileinfo." | |||
| 310 | (eq (car (memq func (cdr (assq type cvs-states)))) func)))) | 310 | (eq (car (memq func (cdr (assq type cvs-states)))) func)))) |
| 311 | 311 | ||
| 312 | (defun cvs-add-face (str face &optional keymap &rest props) | 312 | (defun cvs-add-face (str face &optional keymap &rest props) |
| 313 | (when cvs-highlight | 313 | (when keymap |
| 314 | (when keymap | 314 | (when (keymapp keymap) |
| 315 | (when (keymapp keymap) | 315 | (setq props (list* 'keymap keymap props))) |
| 316 | (setq props (list* 'keymap keymap props))) | 316 | (setq props (list* 'mouse-face 'highlight props))) |
| 317 | (setq props (list* 'mouse-face 'highlight props))) | 317 | (add-text-properties 0 (length str) (list* 'font-lock-face face props) str) |
| 318 | (setq props (list* 'font-lock-face face props))) | ||
| 319 | (when props (add-text-properties 0 (length str) props str)) | ||
| 320 | str) | 318 | str) |
| 321 | 319 | ||
| 322 | (defun cvs-fileinfo-pp (fileinfo) | 320 | (defun cvs-fileinfo-pp (fileinfo) |