diff options
| author | Stefan Monnier | 2000-05-10 22:22:21 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-05-10 22:22:21 +0000 |
| commit | 3e87f5fcf3d8c131717a32af51bdba5d57e242e1 (patch) | |
| tree | c8c94c29cd4425af9597d5841e9f3b7107beda6e | |
| parent | 141880215abf09288828d45dd4bf795d675642af (diff) | |
| download | emacs-3e87f5fcf3d8c131717a32af51bdba5d57e242e1.tar.gz emacs-3e87f5fcf3d8c131717a32af51bdba5d57e242e1.zip | |
(log-view-goto-rev): New function for the new VC.
(log-view-minor-wrap): Use mark-active.
| -rw-r--r-- | lisp/log-view.el | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el index 46cefeae8ab..3ca9cd9f57d 100644 --- a/lisp/log-view.el +++ b/lisp/log-view.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: pcl-cvs cvs log | 6 | ;; Keywords: pcl-cvs cvs log |
| 7 | ;; Version: $Name: $ | 7 | ;; Version: $Name: $ |
| 8 | ;; Revision: $Id: log-view.el,v 1.1 2000/03/11 03:42:28 monnier Exp $ | 8 | ;; Revision: $Id: log-view.el,v 1.2 2000/03/22 01:10:09 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -107,6 +107,13 @@ | |||
| 107 | (easy-mmode-define-navigation log-view-msg log-view-message-re "log message") | 107 | (easy-mmode-define-navigation log-view-msg log-view-message-re "log message") |
| 108 | (easy-mmode-define-navigation log-view-file log-view-file-re "file") | 108 | (easy-mmode-define-navigation log-view-file log-view-file-re "file") |
| 109 | 109 | ||
| 110 | (defun log-view-goto-rev (rev) | ||
| 111 | (goto-char (point-min)) | ||
| 112 | (ignore-errors | ||
| 113 | (while (not (equal rev (log-view-current-tag))) | ||
| 114 | (log-view-msg-next)) | ||
| 115 | t)) | ||
| 116 | |||
| 110 | ;;;; | 117 | ;;;; |
| 111 | ;;;; Linkage to PCL-CVS (mostly copied from cvs-status.el) | 118 | ;;;; Linkage to PCL-CVS (mostly copied from cvs-status.el) |
| 112 | ;;;; | 119 | ;;;; |
| @@ -143,8 +150,7 @@ | |||
| 143 | (cons | 150 | (cons |
| 144 | (cons (log-view-current-file) | 151 | (cons (log-view-current-file) |
| 145 | (log-view-current-tag)) | 152 | (log-view-current-tag)) |
| 146 | (when (ignore-errors (mark)) | 153 | (when mark-active |
| 147 | ;; `mark-active' is not provided by XEmacs :-( | ||
| 148 | (save-excursion | 154 | (save-excursion |
| 149 | (goto-char (mark)) | 155 | (goto-char (mark)) |
| 150 | (cons (log-view-current-file) | 156 | (cons (log-view-current-file) |
| @@ -162,6 +168,14 @@ | |||
| 162 | (provide 'log-view) | 168 | (provide 'log-view) |
| 163 | 169 | ||
| 164 | ;;; Change Log: | 170 | ;;; Change Log: |
| 165 | ;; $Log$ | 171 | ;; $Log: log-view.el,v $ |
| 172 | ;; Revision 1.2 2000/03/22 01:10:09 monnier | ||
| 173 | ;; (log-view-(msg|file)-(prev|next)): Rename from | ||
| 174 | ;; log-view-*-(message|file) and use easy-mmode-define-navigation. | ||
| 175 | ;; (log-view-message-re): Match SCCS format as well. | ||
| 176 | ;; And match the revision line rather than the dashed separator line. | ||
| 177 | ;; (log-view-mode): Use the new define-derived-mode. | ||
| 178 | ;; (log-view-current-tag): Fill in with an actual implementation. | ||
| 179 | ;; | ||
| 166 | 180 | ||
| 167 | ;;; log-view.el ends here | 181 | ;;; log-view.el ends here |