1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 02:31:03 -08:00

* 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
This commit is contained in:
Juanma Barranquero 2011-03-06 01:30:16 +01:00
parent d3877e8f06
commit 845fc5e555
11 changed files with 35 additions and 11 deletions

View file

@ -567,7 +567,7 @@ on the menu bar.
"Save RefTeX's parse file for this buffer if the information has changed."
;; Save the parsing information if it was modified.
;; This function should be installed in `kill-buffer-hook'.
;; We are careful to make sure nothing goes wring in this function.
;; We are careful to make sure nothing goes wrong in this function.
(when (and (boundp 'reftex-mode) reftex-mode
(boundp 'reftex-save-parse-info) reftex-save-parse-info
(boundp 'reftex-docstruct-symbol) reftex-docstruct-symbol
@ -2397,7 +2397,7 @@ IGNORE-WORDS List of words which should be removed from the string."
(define-key reftex-mode-map
reftex-extra-bindings-prefix
reftex-extra-bindings-map))
;;; =========================================================================
;;;
@ -2568,7 +2568,8 @@ With optional NODE, go directly to that node."
;;; Install the kill-buffer and kill-emacs hooks ------------------------------
(add-hook 'kill-buffer-hook 'reftex-kill-buffer-hook)
(add-hook 'kill-emacs-hook 'reftex-kill-emacs-hook)
(unless noninteractive
(add-hook 'kill-emacs-hook 'reftex-kill-emacs-hook))
;;; Run Hook ------------------------------------------------------------------