The TeX-parse-TeX function alters the default-major-mode. In some cases, e.g. 
when an error occurs in the preamble, this leads to the creation of a new 
buffer with extension ".log.tex". This version works correct for me, but I do 
not know if that causes any other problems:

(defun TeX-parse-TeX (reparse)
  "Find the next error produced by running TeX.
With \\[universal-argument] prefix, start from the beginning of the errors.

If the file occurs in an included file, the file is loaded (if not
already in an Emacs buffer) and the cursor is placed at the error."
  (let ((old-buffer (current-buffer)))
    (with-current-buffer (TeX-active-buffer)
      (if reparse
          (TeX-parse-reset))
      (goto-char TeX-error-point)
      (TeX-parse-error old-buffer))))


_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to