* Ralf Angeli (2005-05-27) writes:

> We'll have to check how to interface with compile.el.

In case somebody likes to play with it, you can try this:

Compile the function

(defun TeX-error-file-name ()
  (save-excursion
    (up-list)
    (backward-sexp)
    (forward-char)
    (save-match-data
      (re-search-forward "\\([^(){}\n \t]*\\)")
      (list (TeX-match-buffer 1)))))

and set `compilation-error-regexp-alist' like this:

(setq compilation-error-regexp-alist
      '(("l\\.\\([0-9]+\\)" TeX-error-file-name 1)))

Compile a file which produces at least one "!" LaTeX error.  Go to the
output buffer and do `M-x compilation-mode RET'.

You should now be able to navigate errors with `M-n' and `M-p' in the
output buffer or `M-g n' and `M-g p' from a LaTeX buffer.  The latter
will obviously only work for CVS Emacs.

-- 
Ralf



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

Reply via email to