[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: Daniel Pfeiffer
Subject: Re: compilation-forget-errors still used by tex-mode.el
Date: Thu, 25 Mar 2004 21:50:38 +0100

Saluton, Moin,

Richard Stallman <address@hidden> skribis:

>     Stefan had also mentioned about interactive compilation.
>     Positions in the file may have moved from what they were in the
>     last compilation (still visible in the buffer).
> Are you considering having multiple compilations' output in one
> buffer?  If so, I agree one wd want to somehow deactivate the errors
> from old compilations.  But I think there are other complications too
> in that case.  What if you move into an old compilation and type RET?
> Should it try to obey you?  Should it give you an error saying "This
> compilation is obsolete?"

If that file had been gone to from that set of output lines, it would remember
where to go to.

>                                                    E.g. a.tex:10
>     became a.tex:15 because 5 lines were inserted.  If we don't clean
>     out the last compilation's data, the marker for a.tex:10 will have
>     moved and a.tex:15 would get wrongly looked for on line 20.
> Shouldn't this be handled by creating a marker pointing to
> the source locus, so that subsequent editing of the source file
> won't interfere?

That's exactly why this would go wrong.  The marker to a.tex:10 points to line
15 after inserting 5 lines.  Now when a message gets added for a.tex:15 it'll
look for the nearest preceding marker (a.tex:10 on line 15) and assume
a.tex:15 is 5 lines down, i.e. on line 20.

This is correct within one compilation if you manage to edit a.tex before the
2nd message shows up.  But this is wrong if it is a new compilation where
a.tex:15 is again on line 15.  That's why I suggested Stefan build up new
metadata.  The markers are still in the old messages' text properties and stay

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

lerne / learn / apprends / läramå / ucz się    Esperanto:

reply via email to

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