aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 @@
60 60
61(eval-when-compile (require 'cl)) 61(eval-when-compile (require 'cl))
62(require 'pcvs-util) 62(require 'pcvs-util)
63(autoload 'vc-find-version "vc")
63(autoload 'vc-version-diff "vc") 64(autoload 'vc-version-diff "vc")
64 65
65(defvar cvs-minor-wrap-function) 66(defvar cvs-minor-wrap-function)
@@ -168,7 +169,7 @@
168 (forward-line 1) 169 (forward-line 1)
169 (or (re-search-backward log-view-file-re nil t) 170 (or (re-search-backward log-view-file-re nil t)
170 (re-search-forward log-view-file-re)) 171 (re-search-forward log-view-file-re))
171 (let* ((file (or (match-string 2) (match-string 3))) 172 (let* ((file (or (match-string 1) (match-string 2)))
172 (cvsdir (and (re-search-backward log-view-dir-re nil t) 173 (cvsdir (and (re-search-backward log-view-dir-re nil t)
173 (match-string 1))) 174 (match-string 1)))
174 (pcldir (and (boundp 'cvs-pcl-cvs-dirchange-re) 175 (pcldir (and (boundp 'cvs-pcl-cvs-dirchange-re)
@@ -188,7 +189,7 @@
188 (when (re-search-backward log-view-message-re nil t) 189 (when (re-search-backward log-view-message-re nil t)
189 (let (rev) 190 (let (rev)
190 ;; Find the subgroup that matched. 191 ;; Find the subgroup that matched.
191 (dotimes (i (/ (match-data 'integers) 2)) 192 (dotimes (i (/ (length (match-data 'integers)) 2))
192 (setq rev (or rev (match-string (1+ i))))) 193 (setq rev (or rev (match-string (1+ i)))))
193 (unless (re-search-forward log-view-file-re pt t) 194 (unless (re-search-forward log-view-file-re pt t)
194 rev)))))) 195 rev))))))