texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] Bug in tm 1.0.2


From: David Allouche
Subject: Re: [Texmacs-dev] Bug in tm 1.0.2
Date: Wed, 10 Dec 2003 17:27:17 +0100
User-agent: Mutt/1.5.4i

On Wed, Dec 10, 2003 at 04:46:06PM +0100, Jan Ulrich Hasecke wrote:
> When you change to preamble mode, change something, save the document,
> set preamble mode back and try to save the doc, tm says that there is
> nothing to save. So the doc remains in preamble mode and will show up
> wrong when included by a master.
> 
> This behavior causes a little crisis in my head, because I had to
> alter chapter to section in ten included files. After updating the
> master some show up in preamble mode others not. Real annoying! :-[
> 
> I need two hours to recognize that I had not saved some of them.
> 
> So tm should save documents when mode was altered.

This can be fixed simply by adding

  buf->need_save= buf->need_autosave= true;

at line 390 of edit_typeset.cc

Maybe modulo a few minor fixes so new and loaded documents have a clean
state.

What I wonder is _why_ this is not already done since most nearby
functions do handle the the dirty flags...

Joris, is there some deep reason for this, or is this just a "oops, did
not occur to me"? There have been wish items and bug reports since
forever about that issue, and there never was an explanation for the
current behaviour.

-- 
                                                            -- ddaa




reply via email to

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