diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2011-03-06 01:30:16 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2011-03-06 01:30:16 +0100 |
commit | 845fc5e555e73449596ba475060fd2674f3b51e9 (patch) | |
tree | 5f039af84ae06b3378829c498190df480c75ac84 /lisp/org/org-id.el | |
parent | d3877e8f063815efe92b3bced08f54f9c1644b74 (diff) | |
download | emacs-845fc5e555e73449596ba475060fd2674f3b51e9.tar.gz emacs-845fc5e555e73449596ba475060fd2674f3b51e9.tar.bz2 emacs-845fc5e555e73449596ba475060fd2674f3b51e9.zip |
* lisp/bookmark.el:
* lisp/desktop.el:
* lisp/emacs-lock.el:
* lisp/ps-print.el:
* lisp/saveplace.el:
* lisp/net/tramp-cache.el:
* lisp/textmodes/reftex.el:
* lisp/org/org-id.el: Don't set `kill-emacs-hook' on noninteractive sessions.
Fixes: debbugs:8137
Diffstat (limited to 'lisp/org/org-id.el')
-rw-r--r-- | lisp/org/org-id.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org/org-id.el b/lisp/org/org-id.el index 2f64b8b0bb6..b979097dee3 100644 --- a/lisp/org/org-id.el +++ b/lisp/org/org-id.el @@ -519,7 +519,8 @@ When CHECK is given, prepare detailed information about duplicate IDs." (puthash id (abbreviate-file-name file) org-id-locations) (add-to-list 'org-id-files (abbreviate-file-name file)))) -(add-hook 'kill-emacs-hook 'org-id-locations-save) +(unless noninteractive + (add-hook 'kill-emacs-hook 'org-id-locations-save)) (defun org-id-hash-to-alist (hash) "Turn an org-id hash into an alist, so that it can be written to a file." |