diff options
| author | Juanma Barranquero | 2011-03-06 01:30:16 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2011-03-06 01:30:16 +0100 |
| commit | 845fc5e555e73449596ba475060fd2674f3b51e9 (patch) | |
| tree | 5f039af84ae06b3378829c498190df480c75ac84 /lisp/textmodes | |
| parent | d3877e8f063815efe92b3bced08f54f9c1644b74 (diff) | |
| download | emacs-845fc5e555e73449596ba475060fd2674f3b51e9.tar.gz 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/textmodes')
| -rw-r--r-- | lisp/textmodes/reftex.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el index 6719a647c36..7e150bff997 100644 --- a/lisp/textmodes/reftex.el +++ b/lisp/textmodes/reftex.el | |||
| @@ -567,7 +567,7 @@ on the menu bar. | |||
| 567 | "Save RefTeX's parse file for this buffer if the information has changed." | 567 | "Save RefTeX's parse file for this buffer if the information has changed." |
| 568 | ;; Save the parsing information if it was modified. | 568 | ;; Save the parsing information if it was modified. |
| 569 | ;; This function should be installed in `kill-buffer-hook'. | 569 | ;; This function should be installed in `kill-buffer-hook'. |
| 570 | ;; We are careful to make sure nothing goes wring in this function. | 570 | ;; We are careful to make sure nothing goes wrong in this function. |
| 571 | (when (and (boundp 'reftex-mode) reftex-mode | 571 | (when (and (boundp 'reftex-mode) reftex-mode |
| 572 | (boundp 'reftex-save-parse-info) reftex-save-parse-info | 572 | (boundp 'reftex-save-parse-info) reftex-save-parse-info |
| 573 | (boundp 'reftex-docstruct-symbol) reftex-docstruct-symbol | 573 | (boundp 'reftex-docstruct-symbol) reftex-docstruct-symbol |
| @@ -2397,7 +2397,7 @@ IGNORE-WORDS List of words which should be removed from the string." | |||
| 2397 | (define-key reftex-mode-map | 2397 | (define-key reftex-mode-map |
| 2398 | reftex-extra-bindings-prefix | 2398 | reftex-extra-bindings-prefix |
| 2399 | reftex-extra-bindings-map)) | 2399 | reftex-extra-bindings-map)) |
| 2400 | 2400 | ||
| 2401 | 2401 | ||
| 2402 | ;;; ========================================================================= | 2402 | ;;; ========================================================================= |
| 2403 | ;;; | 2403 | ;;; |
| @@ -2568,7 +2568,8 @@ With optional NODE, go directly to that node." | |||
| 2568 | ;;; Install the kill-buffer and kill-emacs hooks ------------------------------ | 2568 | ;;; Install the kill-buffer and kill-emacs hooks ------------------------------ |
| 2569 | 2569 | ||
| 2570 | (add-hook 'kill-buffer-hook 'reftex-kill-buffer-hook) | 2570 | (add-hook 'kill-buffer-hook 'reftex-kill-buffer-hook) |
| 2571 | (add-hook 'kill-emacs-hook 'reftex-kill-emacs-hook) | 2571 | (unless noninteractive |
| 2572 | (add-hook 'kill-emacs-hook 'reftex-kill-emacs-hook)) | ||
| 2572 | 2573 | ||
| 2573 | ;;; Run Hook ------------------------------------------------------------------ | 2574 | ;;; Run Hook ------------------------------------------------------------------ |
| 2574 | 2575 | ||