diff options
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-project.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-project.el b/emacs/.emacs.d/lisp/my/my-project.el index d318e75..677bec6 100644 --- a/emacs/.emacs.d/lisp/my/my-project.el +++ b/emacs/.emacs.d/lisp/my/my-project.el @@ -148,7 +148,8 @@ projects." "Revert all buffers in the current project." (interactive) (dolist (buffer (project-buffers (project-current))) - (revert-buffer-quick buffer))) + (when (buffer-file-name) + (revert-buffer-quick buffer)))) (provide 'my-project) ;;; my-project.el ends here |