aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Großjohann2002-04-03 16:56:36 +0000
committerKai Großjohann2002-04-03 16:56:36 +0000
commit6efa25a1d5491e2018d4cc7611c90caf0197dc25 (patch)
tree3c1b018624792aa399edf126026e8583c63986b8
parent44766095d1b694795f072959c73522687481b775 (diff)
downloademacs-6efa25a1d5491e2018d4cc7611c90caf0197dc25.tar.gz
emacs-6efa25a1d5491e2018d4cc7611c90caf0197dc25.zip
* 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).
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/pcvs-info.el26
-rw-r--r--lisp/pcvs.el18
3 files changed, 38 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 283d8a8ce85..15cfd98cac0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12002-04-03 Kai Gro,A_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2
3 * pcvs.el (cvs-mode-previous-line, cvs-mode-next-line): Move to
4 spot indicated by text property `cvs-goal-column', if present.
5
6 * pcvs-info.el (cvs-fileinfo-pp): Use text property
7 `cvs-goal-column' to indicate position of file name (if present).
8
12002-04-03 Richard M. Stallman <rms@gnu.org> 92002-04-03 Richard M. Stallman <rms@gnu.org>
2 10
3 * mail/mailabbrev.el (mail-abbrev-complete-alias): 11 * mail/mailabbrev.el (mail-abbrev-complete-alias):
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 @@
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.7 2001/07/16 07:46:48 pj Exp $ 7;; Revision: $Id: pcvs-info.el,v 1.8 2001/12/31 20:28:40 rms Exp $
8 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
10 10
@@ -318,14 +318,17 @@ FI-OR-TYPE can either be a symbol (a fileinfo-type) or a fileinfo."
318 (and (not (eq type 'MESSAGE)) 318 (and (not (eq type 'MESSAGE))
319 (eq (car (memq func (cdr (assq type cvs-states)))) func)))) 319 (eq (car (memq func (cdr (assq type cvs-states)))) func))))
320 320
321(defun cvs-add-face (str face &optional keymap) 321(defun cvs-add-face (str face &optional keymap &rest properties)
322 (when cvs-highlight 322 (when (or cvs-highlight properties)
323 (add-text-properties 0 (length str) 323 (add-text-properties 0 (length str)
324 (list* 'face face 324 (append
325 (when keymap 325 (when cvs-highlight
326 (list* 'mouse-face 'highlight 326 (list* 'face face
327 (when (keymapp keymap) 327 (when keymap
328 (list 'keymap keymap))))) 328 (list* 'mouse-face 'highlight
329 (when (keymapp keymap)
330 (list 'keymap keymap))))))
331 properties)
329 str)) 332 str))
330 str) 333 str)
331 334
@@ -349,7 +352,8 @@ For use by the cookie package."
349 (cvs-add-face "*" 'cvs-marked-face) 352 (cvs-add-face "*" 'cvs-marked-face)
350 " ")) 353 " "))
351 (file (cvs-add-face (cvs-fileinfo->pp-name fileinfo) 354 (file (cvs-add-face (cvs-fileinfo->pp-name fileinfo)
352 'cvs-filename-face t)) 355 'cvs-filename-face t
356 'cvs-goal-column t))
353 (base (or (cvs-fileinfo->base-rev fileinfo) "")) 357 (base (or (cvs-fileinfo->base-rev fileinfo) ""))
354 (head (cvs-fileinfo->head-rev fileinfo)) 358 (head (cvs-fileinfo->head-rev fileinfo))
355 (type 359 (type
@@ -371,8 +375,8 @@ For use by the cookie package."
371 (when (and head (not (string= head base))) head) 375 (when (and head (not (string= head base))) head)
372 ;; or nothing 376 ;; or nothing
373 ""))) 377 "")))
374 (format "%-11s %s %-11s %-11s %s" 378 (format "%-11s %s %-11s %-11s %s"
375 side status type base file))))))) 379 side status type base file)))))))
376 380
377 381
378(defun cvs-fileinfo-update (fi fi-new) 382(defun cvs-fileinfo-update (fi fi-new)
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 3b20b2ff506..725332809e1 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -13,7 +13,7 @@
13;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com 13;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com
14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
15;; Keywords: CVS, version control, release management 15;; Keywords: CVS, version control, release management
16;; Revision: $Id: pcvs.el,v 1.32 2001/12/20 18:43:35 pj Exp $ 16;; Revision: $Id: pcvs.el,v 1.33 2002/01/25 22:41:28 monnier Exp $
17 17
18;; This file is part of GNU Emacs. 18;; This file is part of GNU Emacs.
19 19
@@ -1089,13 +1089,25 @@ Full documentation is in the Texinfo file."
1089 "Go to the previous line. 1089 "Go to the previous line.
1090If a prefix argument is given, move by that many lines." 1090If a prefix argument is given, move by that many lines."
1091 (interactive "p") 1091 (interactive "p")
1092 (ewoc-goto-prev cvs-cookies arg)) 1092 (ewoc-goto-prev cvs-cookies arg)
1093 (let ((fpos (next-single-property-change
1094 (point) 'cvs-goal-column
1095 (current-buffer) (line-end-position)))
1096 (eol (line-end-position)))
1097 (when (< fpos eol)
1098 (goto-char fpos))))
1093 1099
1094(defun-cvs-mode cvs-mode-next-line (arg) 1100(defun-cvs-mode cvs-mode-next-line (arg)
1095 "Go to the next line. 1101 "Go to the next line.
1096If a prefix argument is given, move by that many lines." 1102If a prefix argument is given, move by that many lines."
1097 (interactive "p") 1103 (interactive "p")
1098 (ewoc-goto-next cvs-cookies arg)) 1104 (ewoc-goto-next cvs-cookies arg)
1105 (let ((fpos (next-single-property-change
1106 (point) 'cvs-goal-column
1107 (current-buffer) (line-end-position)))
1108 (eol (line-end-position)))
1109 (when (< fpos eol)
1110 (goto-char fpos))))
1099 1111
1100;;;; 1112;;;;
1101;;;; Mark handling 1113;;;; Mark handling