/[auctex]/auctex/tex.el
ViewVC logotype

Diff of /auctex/tex.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5.510 by angeli, Fri May 6 15:48:42 2005 UTC revision 5.511 by angeli, Sat May 7 14:19:34 2005 UTC
# Line 2243  The algorithm is as follows: Line 2243  The algorithm is as follows:
2243    ;; `(TeX-master-file nil nil t)' has to be called *before*    ;; `(TeX-master-file nil nil t)' has to be called *before*
2244    ;; `TeX-update-style' as the latter will call `TeX-master-file'    ;; `TeX-update-style' as the latter will call `TeX-master-file'
2245    ;; without the `ask' bit set.    ;; without the `ask' bit set.
2246    (if (= emacs-major-version 20)    (add-hook 'find-file-hooks
2247        (make-local-hook 'find-file-hooks))              (lambda ()
2248    (add-hook 'find-file-hooks (lambda ()                ;; Check if we are looking at a new or shared file.
2249                                 ;; Test if we are looking at a new file.                (when (or (not (file-exists-p (buffer-file-name)))
2250                                 (unless (file-exists-p (buffer-file-name))                          (eq TeX-master 'shared))
2251                                   (TeX-master-file nil nil t))                  (TeX-master-file nil nil t))
2252                                 (TeX-update-style t)) nil t))                (TeX-update-style t)) nil t))
2253    
2254  ;;; Plain TeX mode  ;;; Plain TeX mode
2255    

Legend:
Removed from v.5.510  
changed lines
  Added in v.5.511

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26