[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 48d5874 32/67: Use `write-file-functions'
From: |
Tassilo Horn |
Subject: |
[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)
- [elpa] externals/auctex dad0c60 11/67: Surround both \langle and \rangle with math delimiter, (continued)
- [elpa] externals/auctex dad0c60 11/67: Surround both \langle and \rangle with math delimiter, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 8d0e9cd 13/67: style/enumitem.el ("enumitem"): Use `TeX-argument-prompt' for query., Tassilo Horn, 2019/02/08
- [elpa] externals/auctex da4cb3d 14/67: Improve behavior of `TeX-arg-beamer-overlay-spec', Tassilo Horn, 2019/02/08
- [elpa] externals/auctex fd53670 19/67: Clean up remnants of previous removal of compatibility codes, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 866eae1 20/67: Remove references to XEmacs from the manual, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 32bc548 12/67: ; Fix typos and doc string, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 70a31c5 23/67: Remove compatibility codes for older emacsen, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 12f7a21 18/67: Add suggestions for non-privileged installation, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 8b5e53d 24/67: Remove unnecessary parentheses, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 667f4e9 17/67: Defer running style hook until options are given actually, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 48d5874 32/67: Use `write-file-functions',
Tassilo Horn <=
- [elpa] externals/auctex a20430d 15/67: Add new style/dashundergaps.el, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex ff75757 21/67: Remove references to older emacsens in comments and doc strings, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 253e900 25/67: Adjust autoload cookie, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 4617caa 26/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex b13bebb 28/67: Remove compatibility code for older emacsen, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 7030681 29/67: * tex-buf.el (TeX-special-mode): Use `define-derived-mode'., Tassilo Horn, 2019/02/08
- [elpa] externals/auctex d2b0547 16/67: Fix not to run wrong style hooks, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 0a05b39 22/67: Use `declare-function' without `fboundp' test, Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 6610f48 42/67: ; Silence the compiler in styles for `font-latex-add-to-syntax-alist', Tassilo Horn, 2019/02/08
- [elpa] externals/auctex 5551227 30/67: Remove XEmacs compatibility code in tex-bar.el, Tassilo Horn, 2019/02/08