aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-09-02 01:50:12 +0000
committerGlenn Morris2007-09-02 01:50:12 +0000
commit22f4e5c15a39d793bbfadf93ca21134f76c3138d (patch)
treeaa0ee85194c57ca273acf37f276434496a85706b
parentb0bda2462c265693438f08431a20a186efc6788a (diff)
downloademacs-22f4e5c15a39d793bbfadf93ca21134f76c3138d.tar.gz
emacs-22f4e5c15a39d793bbfadf93ca21134f76c3138d.zip
(log-view-current-file): Give a more explicit error if
log-view-file-re fails to find a match.
-rw-r--r--lisp/log-view.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/log-view.el b/lisp/log-view.el
index a904a0355dd..2ca52443979 100644
--- a/lisp/log-view.el
+++ b/lisp/log-view.el
@@ -214,7 +214,8 @@ The match group number 1 should match the revision number itself.")
214 (save-excursion 214 (save-excursion
215 (forward-line 1) 215 (forward-line 1)
216 (or (re-search-backward log-view-file-re nil t) 216 (or (re-search-backward log-view-file-re nil t)
217 (re-search-forward log-view-file-re)) 217 (re-search-forward log-view-file-re nil t)
218 (error "Unable to determine the current file")
218 (let* ((file (match-string 1)) 219 (let* ((file (match-string 1))
219 (cvsdir (and (re-search-backward log-view-dir-re nil t) 220 (cvsdir (and (re-search-backward log-view-dir-re nil t)
220 (match-string 1))) 221 (match-string 1)))