diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-06-18 21:47:41 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-06-18 21:47:41 +0000 |
commit | db1f981d26d394886c6de184b98a02f732fda925 (patch) | |
tree | 6246abfeb97d5016a7bca504a6899860fe1b2e47 /lisp/pcvs-info.el | |
parent | f23a0f3a2fcd3d9f7125c70d4a4262304c22bd98 (diff) | |
download | emacs-db1f981d26d394886c6de184b98a02f732fda925.tar.gz |
(cvs-add-face): Minor rewrite.
(cvs-fileinfo-pp): Use `cvs-goal-column' with directory entries.
Diffstat (limited to 'lisp/pcvs-info.el')
-rw-r--r-- | lisp/pcvs-info.el | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/lisp/pcvs-info.el b/lisp/pcvs-info.el index b1cb6603194..422063e2984 100644 --- a/lisp/pcvs-info.el +++ b/lisp/pcvs-info.el @@ -4,7 +4,7 @@ ;; Author: Stefan Monnier <monnier@cs.yale.edu> ;; Keywords: pcl-cvs -;; Revision: $Id: pcvs-info.el,v 1.9 2002/04/03 16:56:36 kai Exp $ +;; Revision: $Id: pcvs-info.el,v 1.10 2002/06/15 19:04:57 walters Exp $ ;; This file is part of GNU Emacs. @@ -309,16 +309,14 @@ FI-OR-TYPE can either be a symbol (a fileinfo-type) or a fileinfo." (and (not (eq type 'MESSAGE)) (eq (car (memq func (cdr (assq type cvs-states)))) func)))) -(defun cvs-add-face (str face &optional keymap &rest properties) - (add-text-properties 0 (length str) - (append - (list* 'font-lock-face face - (when keymap - (list* 'mouse-face 'highlight - (when (keymapp keymap) - (list 'keymap keymap))))) - properties) - str) +(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)) str) (defun cvs-fileinfo-pp (fileinfo) @@ -331,7 +329,8 @@ For use by the cookie package." (case type (DIRCHANGE (concat "In directory " (cvs-add-face (cvs-fileinfo->full-path fileinfo) - 'cvs-header-face t) + 'cvs-header-face t + 'cvs-goal-column t) ":")) (MESSAGE (cvs-add-face (format "Message: %s" (cvs-fileinfo->full-log fileinfo)) |