Commit 22f4e5c1 authored by Glenn Morris's avatar Glenn Morris
Browse files

(log-view-current-file): Give a more explicit error if

log-view-file-re fails to find a match.
parent b0bda246
......@@ -214,7 +214,8 @@ The match group number 1 should match the revision number itself.")
(forward-line 1)
(or (re-search-backward log-view-file-re nil t)
(re-search-forward log-view-file-re))
(re-search-forward log-view-file-re nil t)
(error "Unable to determine the current file")
(let* ((file (match-string 1))
(cvsdir (and (re-search-backward log-view-dir-re nil t)
(match-string 1)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment