Mercurial > emacs
changeset 45910:32ed873c69a7
(cvs-add-face): Fix silly oversight.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 18 Jun 2002 23:03:55 +0000 |
parents | 9f98a97f5469 |
children | 5a186c10e84e |
files | lisp/pcvs-info.el |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/pcvs-info.el Tue Jun 18 23:00:13 2002 +0000 +++ b/lisp/pcvs-info.el Tue Jun 18 23:03:55 2002 +0000 @@ -4,7 +4,7 @@ ;; Author: Stefan Monnier <monnier@cs.yale.edu> ;; Keywords: pcl-cvs -;; Revision: $Id: pcvs-info.el,v 1.10 2002/06/15 19:04:57 walters Exp $ +;; Revision: $Id: pcvs-info.el,v 1.11 2002/06/18 21:47:41 monnier Exp $ ;; This file is part of GNU Emacs. @@ -310,13 +310,11 @@ (eq (car (memq func (cdr (assq type cvs-states)))) func)))) (defun cvs-add-face (str face &optional keymap &rest props) - (when cvs-highlight - (when keymap - (when (keymapp keymap) - (setq props (list* 'keymap keymap props))) - (setq props (list* 'mouse-face 'highlight props))) - (setq props (list* 'font-lock-face face props))) - (when props (add-text-properties 0 (length str) props str)) + (when keymap + (when (keymapp keymap) + (setq props (list* 'keymap keymap props))) + (setq props (list* 'mouse-face 'highlight props))) + (add-text-properties 0 (length str) (list* 'font-lock-face face props) str) str) (defun cvs-fileinfo-pp (fileinfo)