project-root

changeset 23:feba1c68a8fa

fix problem with unexisting .project-roots file
author Alexander Solovyov <piranha@piranha.org.ua>
date Fri Apr 16 21:22:46 2010 +0300
parents b2c930e2e581
children c4f81ed893fc
files project-root.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/project-root.el	Fri Apr 16 18:40:26 2010 +0300
     1.2 +++ b/project-root.el	Fri Apr 16 21:22:46 2010 +0300
     1.3 @@ -308,9 +308,10 @@
     1.4  (defun project-root-load-roots ()
     1.5    "Loads seen projects info from file"
     1.6    (interactive)
     1.7 -  (with-temp-buffer
     1.8 -    (insert-file-contents project-root-storage-file)
     1.9 -    (setq project-root-seen-projects (read (buffer-string)))))
    1.10 +  (if (file-exists-p project-root-storage-file)
    1.11 +      (with-temp-buffer
    1.12 +        (insert-file-contents project-root-storage-file)
    1.13 +        (setq project-root-seen-projects (read (buffer-string))))))
    1.14  
    1.15  
    1.16  ;; TODO: refactor me
Repositories maintained by Alexander Solovyov