aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2018-01-21 23:48:32 +0200
committerJuri Linkov2018-01-21 23:48:32 +0200
commitb3fb0d47c158cb0d1acdce5008628e1d1a337bbb (patch)
tree77f66f346cc64916f83e9a607155ed94877c9ef8
parentafba4ccb8b8c6347a44efd0b9f4d6fb85756f85b (diff)
downloademacs-b3fb0d47c158cb0d1acdce5008628e1d1a337bbb.tar.gz
emacs-b3fb0d47c158cb0d1acdce5008628e1d1a337bbb.zip
* lisp/vc/add-log.el (change-log-next-buffer): Check file for nil.
-rw-r--r--lisp/vc/add-log.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index ec9299a947a..ea2e8ec874a 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -1095,7 +1095,7 @@ file were isearch was started."
1095 ;; If there are no files that match the default pattern ChangeLog.[0-9], 1095 ;; If there are no files that match the default pattern ChangeLog.[0-9],
1096 ;; return the current buffer to force isearch wrapping to its beginning. 1096 ;; return the current buffer to force isearch wrapping to its beginning.
1097 ;; If file is nil, multi-isearch-search-fun will signal "end of multi". 1097 ;; If file is nil, multi-isearch-search-fun will signal "end of multi".
1098 (if (file-exists-p file) 1098 (if (and file (file-exists-p file))
1099 (find-file-noselect file) 1099 (find-file-noselect file)
1100 (current-buffer)))) 1100 (current-buffer))))
1101 1101