From: Dan Nicolaescu Date: Sun, 20 Jan 2008 19:56:43 +0000 (+0000) Subject: (vc-svn-registered): Make it work for non-existent X-Git-Tag: emacs-pretest-23.0.90~8490 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b5e791bdb7a00e8ea9e6854e55fd959237f06100;p=emacs.git (vc-svn-registered): Make it work for non-existent files. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 800fb5a0571..65556e2eb65 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-01-20 Dan Nicolaescu + + * vc-svn.el (vc-svn-registered): Make it work for non-existent + files. + 2008-01-20 Martin Rudalics * repeat.el (repeat-undo-count): New variable. diff --git a/lisp/vc-svn.el b/lisp/vc-svn.el index b3db2df7f69..368d9f36166 100644 --- a/lisp/vc-svn.el +++ b/lisp/vc-svn.el @@ -132,8 +132,8 @@ If you want to force an empty list of arguments, use t." ;; an `error' by vc-do-command. (error nil)))) (when (eq 0 status) - (not (memq (vc-svn-parse-status file) - '(ignored unregistered)))))))) + (let ((parsed (vc-svn-parse-status file))) + (and parsed (not (memq parsed '(ignored unregistered)))))))))) (defun vc-svn-state (file &optional localp) "SVN-specific version of `vc-state'."