Package: auctex
Version: 11.87-1
Followup-For: Bug #628790

I had this problem with Emacs 24.2, AUCTeX 11.87-1, and the fix
mentioned above didn't work for me. After a bit of digging I
discovered that the pattern for excluding things that aren't actually
files needs to be extended: first, obviously the year 2012 is now
needed (but I generalised this part); secondly, as reported here:

http://permalink.gmane.org/gmane.emacs.help/88564

hyperref also causes problems. It turns out that one needs to ignore
some files generated by hyperref (*.out files) and also the message
"(autoloaded)", which I imagine can be generated by other packages
too.

This means that the relevant stanza of TeX-parse-error becomes:

         ;; New file -- Push on stack
         ((match-beginning 3)
          (let ((file (TeX-match-buffer 3))
                (end (match-end 3)))
            ;; Strip quotation marks and remove newlines if necessary
            (when (or (eq (string-to-char file) ?\")
                      (string-match "\n" file))
              (setq file
                    (mapconcat 'identity (split-string file "[\"\n]+") "")))
            (when (not (string-match "^\\(TeX\\ Live\\ 
..../Debian\\|autodetected\\|.*\\.out\\)$" file))
              (message file)
              (push file TeX-error-file)
              (push nil TeX-error-offset)
              (goto-char end)))
          t)

However, I presume that the real fix should change the file
name-matching patterns so that these names are not matched in the
first place. Given the number of false positives, maybe it would be
better to match positively on file names to be accepted?

If a Debian maintainer feels this analysis is reasonable, perhaps they
could forward it upstream, if this bug is considered to be an upstream
bug after all?


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to