[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] [elpa] externals/auctex 48d5874 32/67: Use `write-file-fu
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] [elpa] externals/auctex 48d5874 32/67: Use `write-file-functions' |
Date: |
Fri, 8 Feb 2019 11:40:35 -0500 (EST) |
branch: externals/auctex
commit 48d5874a44aed7d916346ac545fc5385c4092aa3
Author: Ikumi Keita <address@hidden>
Commit: Ikumi Keita <address@hidden>
Use `write-file-functions'
* tex.el (VirTeX-common-initialization):
* latex.el (BibTeX-auto-store):
Use `write-file-functions' instead of obsolete
`local-write-file-hooks' and `write-file-hooks'. Also, use local hook.
---
latex.el | 4 +---
tex.el | 6 ++----
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/latex.el b/latex.el
index 0165242..cbd3e89 100644
--- a/latex.el
+++ b/latex.el
@@ -1873,9 +1873,7 @@ The value is actually the tail of the list of options
given to PACKAGE."
It will setup BibTeX to store keys in an auto file."
;; We want this to be early in the list, so we do not
;; add it before we enter BibTeX mode the first time.
- (if (boundp 'local-write-file-hooks)
- (add-hook 'local-write-file-hooks 'TeX-safe-auto-write)
- (add-hook 'write-file-hooks 'TeX-safe-auto-write))
+ (add-hook 'write-file-functions #'TeX-safe-auto-write nil t)
(TeX-bibtex-set-BibTeX-dialect)
(set (make-local-variable 'TeX-auto-update) 'BibTeX)
(set (make-local-variable 'TeX-auto-untabify) nil)
diff --git a/tex.el b/tex.el
index f5493a6..044dd22 100644
--- a/tex.el
+++ b/tex.el
@@ -3796,10 +3796,8 @@ The algorithm is as follows:
(funcall TeX-install-font-lock)
;; We want this to be early in the list, so we do not add it before
- ;; we enter TeX mode the first time.
- (if (boundp 'local-write-file-hooks)
- (add-hook 'local-write-file-hooks 'TeX-safe-auto-write)
- (add-hook 'write-file-hooks 'TeX-safe-auto-write))
+ ;; we enter TeX mode the first time.
+ (add-hook 'write-file-functions #'TeX-safe-auto-write nil t)
(set (make-local-variable 'TeX-auto-update) t)
(define-key TeX-mode-map "\C-xng" 'TeX-narrow-to-group)
- [AUCTeX-diffs] [elpa] externals/auctex 0970844 02/67: Deal with partial ^^-quoting in preview-latex, (continued)
- [AUCTeX-diffs] [elpa] externals/auctex 0970844 02/67: Deal with partial ^^-quoting in preview-latex, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex c8a8d47 08/67: Don't block emacs during viewing document, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex a20430d 15/67: Add new style/dashundergaps.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 8b5e53d 24/67: Remove unnecessary parentheses, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 12f7a21 18/67: Add suggestions for non-privileged installation, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 32bc548 12/67: ; Fix typos and doc string, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 70a31c5 23/67: Remove compatibility codes for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 1ea64ff 01/67: Extract caption for RefTeX's label context, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex d8c6f94 06/67: Improve style/fancyvrb.el, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex fd53670 19/67: Clean up remnants of previous removal of compatibility codes, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 48d5874 32/67: Use `write-file-functions',
Tassilo Horn <=
- [AUCTeX-diffs] [elpa] externals/auctex da4cb3d 14/67: Improve behavior of `TeX-arg-beamer-overlay-spec', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex de3b5f7 47/67: ; * doc/preview-latex.texi (preview-cache-preamble): Use @url{}., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex d2b0547 16/67: Fix not to run wrong style hooks, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 7030681 29/67: * tex-buf.el (TeX-special-mode): Use `define-derived-mode'., Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 4617caa 26/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 0a05b39 22/67: Use `declare-function' without `fboundp' test, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex ff75757 21/67: Remove references to older emacsens in comments and doc strings, Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 449ec06 43/67: ; Silence the compiler in styles for `reftex-compile-variables', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 6610f48 42/67: ; Silence the compiler in styles for `font-latex-add-to-syntax-alist', Tassilo Horn, 2019/02/08
- [AUCTeX-diffs] [elpa] externals/auctex 38d39a6 31/67: Remove compatibility face, Tassilo Horn, 2019/02/08