[Top][All Lists]

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

Re: compilation-forget-errors still used by tex-mode.el

From: Stefan Monnier
Subject: Re: compilation-forget-errors still used by tex-mode.el
Date: 18 Mar 2004 16:48:22 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>> > Using next-error in buffer *tex-shell* yields 
>> > compilation-next-error: No more errors yet
>> Oops, I forgot to include the following patch (which I thought I'd
>> installed already).

> next-error and previous-error seem to work now, but
> first-error and compile-mouse-goto-error don't.

These seem not to be tex-mode specific.  Can you try the patch below?
It also looks like the behavior of compile-mouse-goto-error is changed
so that you have to click *on the line* (and in the case of TeX, "the line"
is not the one with `l.N <text>' but the one above with `! <text>').


--- compile.el.~1.286.~ 2004-03-11 17:46:58.000000000 -0500
+++ compile.el  2004-03-18 16:33:45.000000000 -0500
@@ -1321,6 +1364,7 @@
   "Visit the source for the error message the mouse is pointing at."
   (interactive "e")
   (mouse-set-point event)
+  (set-marker compilation-parsing-end (point))
   (if (get-text-property (point) 'directory)
       (dired-other-window (car (get-text-property (point) 'directory)))
     (next-error 0)))
@@ -1446,7 +1490,7 @@
 This operates on the output from the \\[compile] command."
   (interactive "p")
   (set-buffer (setq compilation-last-buffer (compilation-find-buffer)))
-  (goto-char (point-min))
+  (set-marker compilation-parsing-end (point-min))
   (next-error arg))
 (defvar compilation-skip-to-next-location nil

reply via email to

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