[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] project-next e4c190b: Make sure that the ignore file exist
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] project-next e4c190b: Make sure that the ignore file exists |
Date: |
Mon, 09 Nov 2015 02:35:38 +0000 |
branch: project-next
commit e4c190b28d658d92f8c19799b19f8263650687e0
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Make sure that the ignore file exists
* lisp/vc/vc.el (vc-default-ignore-completion-table):
Make sure that the ignore file exists.
---
lisp/vc/vc.el | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index f08e562..0a21695 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1433,8 +1433,9 @@ Argument BACKEND is the backend you are using."
(lambda (str)
;; Commented or empty lines.
(string-match-p "\\`\\(?:#\\|[ \t\r\n]*\\'\\)" str))
- (vc--read-lines
- (vc-call-backend backend 'find-ignore-file file))))
+ (let ((file (vc-call-backend backend 'find-ignore-file file)))
+ (and (file-exists-p file)
+ (vc--read-lines file)))))
(defun vc--read-lines (file)
"Return a list of lines of FILE."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] project-next e4c190b: Make sure that the ignore file exists,
Dmitry Gutov <=