emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b3fb0d4: * lisp/vc/add-log.el (change-log-next-buff


From: Juri Linkov
Subject: [Emacs-diffs] master b3fb0d4: * lisp/vc/add-log.el (change-log-next-buffer): Check file for nil.
Date: Sun, 21 Jan 2018 16:48:42 -0500 (EST)

branch: master
commit b3fb0d47c158cb0d1acdce5008628e1d1a337bbb
Author: Juri Linkov <address@hidden>
Commit: Juri Linkov <address@hidden>

    * lisp/vc/add-log.el (change-log-next-buffer): Check file for nil.
---
 lisp/vc/add-log.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index ec9299a..ea2e8ec 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -1095,7 +1095,7 @@ file were isearch was started."
     ;; If there are no files that match the default pattern ChangeLog.[0-9],
     ;; return the current buffer to force isearch wrapping to its beginning.
     ;; If file is nil, multi-isearch-search-fun will signal "end of multi".
-    (if (file-exists-p file)
+    (if (and file (file-exists-p file))
        (find-file-noselect file)
       (current-buffer))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]