diff options
author | Kai Großjohann <kgrossjo@eu.uu.net> | 2002-04-03 16:56:36 +0000 |
---|---|---|
committer | Kai Großjohann <kgrossjo@eu.uu.net> | 2002-04-03 16:56:36 +0000 |
commit | 6efa25a1d5491e2018d4cc7611c90caf0197dc25 (patch) | |
tree | 3c1b018624792aa399edf126026e8583c63986b8 /lisp/pcvs-info.el | |
parent | 44766095d1b694795f072959c73522687481b775 (diff) | |
download | emacs-6efa25a1d5491e2018d4cc7611c90caf0197dc25.tar.gz |
* pcvs.el (cvs-mode-previous-line, cvs-mode-next-line): Move to
spot indicated by text property `cvs-goal-column', if present.
* pcvs-info.el (cvs-fileinfo-pp): Use text property
`cvs-goal-column' to indicate position of file name (if present).
Diffstat (limited to 'lisp/pcvs-info.el')
-rw-r--r-- | lisp/pcvs-info.el | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lisp/pcvs-info.el b/lisp/pcvs-info.el index 0074e77b2b2..1b1ea95f975 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.7 2001/07/16 07:46:48 pj Exp $ +;; Revision: $Id: pcvs-info.el,v 1.8 2001/12/31 20:28:40 rms Exp $ ;; This file is part of GNU Emacs. @@ -318,14 +318,17 @@ 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) - (when cvs-highlight +(defun cvs-add-face (str face &optional keymap &rest properties) + (when (or cvs-highlight properties) (add-text-properties 0 (length str) - (list* 'face face - (when keymap - (list* 'mouse-face 'highlight - (when (keymapp keymap) - (list 'keymap keymap))))) + (append + (when cvs-highlight + (list* 'face face + (when keymap + (list* 'mouse-face 'highlight + (when (keymapp keymap) + (list 'keymap keymap)))))) + properties) str)) str) @@ -349,7 +352,8 @@ For use by the cookie package." (cvs-add-face "*" 'cvs-marked-face) " ")) (file (cvs-add-face (cvs-fileinfo->pp-name fileinfo) - 'cvs-filename-face t)) + 'cvs-filename-face t + 'cvs-goal-column t)) (base (or (cvs-fileinfo->base-rev fileinfo) "")) (head (cvs-fileinfo->head-rev fileinfo)) (type @@ -371,8 +375,8 @@ For use by the cookie package." (when (and head (not (string= head base))) head) ;; or nothing ""))) - (format "%-11s %s %-11s %-11s %s" - side status type base file))))))) + (format "%-11s %s %-11s %-11s %s" + side status type base file))))))) (defun cvs-fileinfo-update (fi fi-new) |