[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: |
Sat, 24 Jan 2009 19:13:04 +0000 |
CVSROOT: /cvsroot/auctex
Module name: auctex
Changes by: Ralf Angeli <angeli> 09/01/24 19:13:04
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.646
retrieving revision 5.647
diff -u -b -r5.646 -r5.647
--- tex.el 22 Dec 2008 22:27:03 -0000 5.646
+++ tex.el 24 Jan 2009 19:13:04 -0000 5.647
@@ -992,7 +992,11 @@
"Method to use for enabling forward and inverse search.
This can be `source-specials' if source specials should be used,
`synctex' if SyncTeX should be used, or`auto' if AUCTeX should
-decide."
+decide.
+
+Setting this variable does not take effect if TeX Source
+Correlate mode has already been active. Restart Emacs in this
+case."
:type '(choice (const auto) (const synctex) (const source-specials))
:group 'TeX-view)
@@ -1107,6 +1111,9 @@
`TeX-source-correlate-method'. Currently source specials or
SyncTeX are recognized."
: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).
:global t
(set-keymap-parent TeX-mode-map (and TeX-source-correlate-mode
TeX-source-correlate-map))
@@ -1128,6 +1135,10 @@
(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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] Changes to auctex/tex.el,v,
Ralf Angeli <=