diff options
author | Arnaud Fontaine <arnau@debian.org> | 2011-11-05 15:28:21 +0900 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2012-12-19 19:39:09 +0900 |
commit | e5a23039a7b6c77b61edb64f6b111beff3236c19 (patch) | |
tree | 8299305678b52fc4683db41a1d1dc4bf770ea0cf /lisp/emms-score.el | |
parent | 78c9cc464f8e9be777afc1ba82ee73b86abf3d06 (diff) |
* lisp/emms-history.el: Don't set `kill-emacs-hook' on noninteractive sessions.
From Emacs 24.1, `kill-emacs-hook' is ran even in batch mode (commit
1e5ffe30b3f7682ee8467e7694b5f63371e31cf9). As a consequence, upon
Debian package installation, byte compilation fails at the end as
/root/.emacs.d/emms/ does not exist and should not be created neither.
Diffstat (limited to 'lisp/emms-score.el')
-rw-r--r-- | lisp/emms-score.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emms-score.el b/lisp/emms-score.el index 71e65a3..78e17db 100644 --- a/lisp/emms-score.el +++ b/lisp/emms-score.el @@ -89,7 +89,8 @@ off otherwise." (setq emms-score-enabled-p t) (setq emms-player-next-function 'emms-score-next-noerror) (emms-score-load-hash) - (add-hook 'kill-emacs-hook 'emms-score-save-hash)) + (unless noninteractive + (add-hook 'kill-emacs-hook 'emms-score-save-hash))) (setq emms-score-enabled-p nil) (setq emms-player-next-function 'emms-next-noerror) (emms-score-save-hash) |