[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex c72f8a8 08/36: Prepare for find-file-hooks being
From: |
Stefan Monnier |
Subject: |
[elpa] externals/auctex c72f8a8 08/36: Prepare for find-file-hooks being removed from Emacs. |
Date: |
Fri, 28 Nov 2014 17:25:41 +0000 |
branch: externals/auctex
commit c72f8a8fa01fc3942d606ac425325181230bedb0
Author: Tassilo Horn <address@hidden>
Date: Tue Nov 4 20:20:09 2014 +0100
Prepare for find-file-hooks being removed from Emacs.
* tex.el (VirTeX-common-initialization): Define a variable alias
for find-file-hook on XEmacs.
---
ChangeLog | 5 +++++
tex.el | 31 +++++++++++++++++--------------
2 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fa10208..9734ba4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-04 Tassilo Horn <address@hidden>
+
+ * tex.el (VirTeX-common-initialization): Define a variable alias
+ for find-file-hook on XEmacs.
+
2014-11-04 Stefan Monnier <address@hidden>
* toolbar-x.el: Adjust copyright years.
diff --git a/tex.el b/tex.el
index cd764eb..4e392f1 100644
--- a/tex.el
+++ b/tex.el
@@ -3285,11 +3285,11 @@ The algorithm is as follows:
(make-local-variable 'paragraph-separate)
(set (make-local-variable 'comment-start) "%")
(set (make-local-variable 'comment-start-skip)
- (concat
- "\\(\\(^\\|[^\\\n]\\)\\("
- (regexp-quote TeX-esc)
- (regexp-quote TeX-esc)
- "\\)*\\)\\(%+[ \t]*\\)"))
+ (concat
+ "\\(\\(^\\|[^\\\n]\\)\\("
+ (regexp-quote TeX-esc)
+ (regexp-quote TeX-esc)
+ "\\)*\\)\\(%+[ \t]*\\)"))
(set (make-local-variable 'comment-end-skip) "[ \t]*\\(\\s>\\|\n\\)")
(set (make-local-variable 'comment-use-syntax) t)
;; `comment-padding' is defined here as an integer for compatibility
@@ -3314,10 +3314,10 @@ The algorithm is as follows:
;; Symbol completion.
(set (make-local-variable 'TeX-complete-list)
- (list (list "\\\\\\([a-zA-Z]*\\)"
- 1 'TeX-symbol-list-filtered
- (if TeX-insert-braces "{}"))
- (list "" TeX-complete-word)))
+ (list (list "\\\\\\([a-zA-Z]*\\)"
+ 1 'TeX-symbol-list-filtered
+ (if TeX-insert-braces "{}"))
+ (list "" TeX-complete-word)))
(funcall TeX-install-font-lock)
@@ -3341,16 +3341,19 @@ The algorithm is as follows:
;;
;; `TeX-update-style' has to be called before
;; `global-font-lock-mode', which may also be specified in
- ;; `find-file-hooks', gets called. Otherwise style-based
+ ;; `find-file-hook', gets called. Otherwise style-based
;; fontification will break (in XEmacs). That means, `add-hook'
;; cannot be called with a non-nil value of the APPEND argument.
;;
;; `(TeX-master-file nil nil t)' has to be called *before*
;; `TeX-update-style' as the latter will call `TeX-master-file'
;; without the `ask' bit set.
- (when (and (featurep 'xemacs) (not (emacs-version>= 21 5)))
- (make-local-hook 'find-file-hooks))
- (add-hook 'find-file-hooks
+ (when (featurep 'xemacs)
+ (unless (boundp 'find-file-hook)
+ (defvaralias 'find-file-hook 'find-file-hooks))
+ (when (not (emacs-version>= 21 5))
+ (make-local-hook 'find-file-hook)))
+ (add-hook 'find-file-hook
(lambda ()
;; Check if we are looking at a new or shared file.
(when (or (not (file-exists-p (buffer-file-name)))
@@ -5626,7 +5629,7 @@ With optional argument ARG, also reload the style hooks."
(save-buffer)
(TeX-auto-write)))
(normal-mode)
- ;; See also addition to `find-file-hooks' in `VirTeX-common-initialization'.
+ ;; See also addition to `find-file-hook' in `VirTeX-common-initialization'.
(when (eq TeX-master 'shared) (TeX-master-file nil nil t))
(TeX-update-style t))
- [elpa] externals/auctex updated (6ff4fca -> c390682), Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 5211b5e 01/36: Create a top level directory in the preview tarball., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 19cb9af 02/36: Add new TeX-file-line-error option, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 022873b 05/36: Fix typo in Makefile.in., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c2d3585 03/36: Update MinionPro style., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c72f8a8 08/36: Prepare for find-file-hooks being removed from Emacs.,
Stefan Monnier <=
- [elpa] externals/auctex bcea858 10/36: Added ChangeLog entries for commit [0c2cfc8], Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 10de62b 07/36: Several changes suggested by byte-compiler warnings., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 67756b7 13/36: Fix typo, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 43ff21a 12/36: Fix documentation about changing font attributes of existing text, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex d8dd53d 14/36: Update manual, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex f9611ad 04/36: Add new styles., Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 7f64d6c 15/36: Update the FAQ entry about failing `TeX-next-error' behavior, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex af12165 16/36: Add new `ifluatex.el' style, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex c4feba1 17/36: Add new `luatextra.el' style, Stefan Monnier, 2014/11/28
- [elpa] externals/auctex 1997613 11/36: Add copyright notice to style/foils.el, Stefan Monnier, 2014/11/28