auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] Re: keybinding: next and previous error


From: Ralf Angeli
Subject: [AUCTeX-devel] Re: keybinding: next and previous error
Date: Sat, 28 May 2005 13:23:57 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]