summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-cache.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2011-03-06 01:30:16 +0100
committerJuanma Barranquero <lekktu@gmail.com>2011-03-06 01:30:16 +0100
commit845fc5e555e73449596ba475060fd2674f3b51e9 (patch)
tree5f039af84ae06b3378829c498190df480c75ac84 /lisp/net/tramp-cache.el
parentd3877e8f063815efe92b3bced08f54f9c1644b74 (diff)
downloademacs-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/net/tramp-cache.el')
-rw-r--r--lisp/net/tramp-cache.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el
index a98e523a68b..f8bc594e959 100644
--- a/lisp/net/tramp-cache.el
+++ b/lisp/net/tramp-cache.el
@@ -353,7 +353,8 @@ KEY identifies the connection, it is either a process or a vector."
(write-region
(point-min) (point-max) tramp-persistency-file-name))))))
-(add-hook 'kill-emacs-hook 'tramp-dump-connection-properties)
+(unless noninteractive
+ (add-hook 'kill-emacs-hook 'tramp-dump-connection-properties))
(add-hook 'tramp-cache-unload-hook
'(lambda ()
(remove-hook 'kill-emacs-hook