FUEL: do not fail if there is no file associated with current buffer

db4
Dmitry Shubin 2010-04-17 03:27:00 +04:00
parent 74075511c2
commit a540ffdc36
1 changed files with 5 additions and 2 deletions

View File

@ -174,8 +174,11 @@ interacting with a factor listener is at your disposal.
(setq fuel-stack-mode-string "/S")
(when fuel-mode-stack-p (fuel-stack-mode fuel-mode))
(when (and fuel-mode (not (file-exists-p (buffer-file-name))))
(fuel-scaffold--maybe-insert)))
(let ((file-name (buffer-file-name)))
(when (and fuel-mode
file-name
(not (file-exists-p file-name)))
(fuel-scaffold--maybe-insert))))
;;; Keys: