summaryrefslogtreecommitdiff
path: root/lisp/log-view.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2005-12-23 21:49:32 +0000
committerJuri Linkov <juri@jurta.org>2005-12-23 21:49:32 +0000
commitefa7e86f2d560c5fcb4b2be96dec50b5b1d514f1 (patch)
tree543f4c8fa7f9c91d62abcbc71ba8f813aa859bd0 /lisp/log-view.el
parentbab3eee1568a8899b8a42b5350b3e9e66e88a824 (diff)
downloademacs-efa7e86f2d560c5fcb4b2be96dec50b5b1d514f1.tar.gz
emacs-efa7e86f2d560c5fcb4b2be96dec50b5b1d514f1.tar.bz2
emacs-efa7e86f2d560c5fcb4b2be96dec50b5b1d514f1.zip
Call autoload for vc-find-version.
(log-view-current-file): Adjust subgroup numbers. (log-view-current-tag): Add `length'.
Diffstat (limited to 'lisp/log-view.el')
-rw-r--r--lisp/log-view.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el
index 9249531129b..ac82c984084 100644
--- a/lisp/log-view.el
+++ b/lisp/log-view.el
@@ -60,6 +60,7 @@
(eval-when-compile (require 'cl))
(require 'pcvs-util)
+(autoload 'vc-find-version "vc")
(autoload 'vc-version-diff "vc")
(defvar cvs-minor-wrap-function)
@@ -168,7 +169,7 @@
(forward-line 1)
(or (re-search-backward log-view-file-re nil t)
(re-search-forward log-view-file-re))
- (let* ((file (or (match-string 2) (match-string 3)))
+ (let* ((file (or (match-string 1) (match-string 2)))
(cvsdir (and (re-search-backward log-view-dir-re nil t)
(match-string 1)))
(pcldir (and (boundp 'cvs-pcl-cvs-dirchange-re)
@@ -188,7 +189,7 @@
(when (re-search-backward log-view-message-re nil t)
(let (rev)
;; Find the subgroup that matched.
- (dotimes (i (/ (match-data 'integers) 2))
+ (dotimes (i (/ (length (match-data 'integers)) 2))
(setq rev (or rev (match-string (1+ i)))))
(unless (re-search-forward log-view-file-re pt t)
rev))))))