[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] Changes to auctex/tex.el,v
From: |
Ralf Angeli |
Subject: |
[AUCTeX-diffs] Changes to auctex/tex.el,v |
Date: |
Sun, 26 Apr 2009 20:10:52 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 09/04/26 20:10:52
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.647
retrieving revision 5.648
diff -u -b -r5.647 -r5.648
--- tex.el 24 Jan 2009 19:13:04 -0000 5.647
+++ tex.el 26 Apr 2009 20:10:52 -0000 5.648
@@ -1113,7 +1113,10 @@
:group 'TeX-view
;; Since this is a global minor mode and we don't want to require
;; tex.el when the mode variable is set, the mode function is called
- ;; explicitely if necessary after tex.el is loaded (see further below).
+ ;; explicitely (if necessary) in `VirTeX-common-initialization'. We
+ ;; do it there because otherwise `kill-all-local-variables' would
+ ;; reset `TeX-source-correlate-output-page-function' which is
+ ;; buffer-local.
:global t
(set-keymap-parent TeX-mode-map (and TeX-source-correlate-mode
TeX-source-correlate-map))
@@ -1132,12 +1135,12 @@
(make-obsolete 'TeX-source-specials-mode 'TeX-source-correlate-mode)
(defalias 'tex-source-correlate-mode 'TeX-source-correlate-mode)
(put 'TeX-source-correlate-mode 'safe-local-variable 'TeX-booleanp)
+;; We do not want the custom variable to require tex.el. This is only
+;; necessary if AUCTeX was compiled with Emacs 21.
+(put 'TeX-source-correlate-mode 'custom-requests nil)
(setq minor-mode-map-alist
(delq (assq 'TeX-source-correlate-mode minor-mode-map-alist)
minor-mode-map-alist))
-(eval-after-load "tex" ; Alternatively this could be put at the end of the
file.
- '(when TeX-source-correlate-mode
- (TeX-source-correlate-mode 1)))
;;; Source Specials
@@ -2589,6 +2592,10 @@
(make-local-variable 'TeX-auto-update)
(setq TeX-auto-update t)
+ ;; Minor modes
+ (when TeX-source-correlate-mode
+ (TeX-source-correlate-mode 1))
+
;; Let `TeX-master-file' be called after a new file was opened and
;; call `TeX-update-style' on any file opened. (The addition to the
;; hook has to be made here because its local value will be deleted
@@ -5264,7 +5271,6 @@
(put 'TeX-insert-quote 'delete-selection t)
(put 'TeX-insert-backslash 'delete-selection t)
-
(provide 'tex)
;; Local Variables:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] Changes to auctex/tex.el,v,
Ralf Angeli <=