On Mar 18, 8:52 am, TL <[EMAIL PROTECTED]> wrote:

> The output in my original post occurred when I manually set one of my
> derived files to ReadOnly.  The following output occurred when one of
> my files was locked by the interpreter I use.  The write was triggered
> when I performed a file save from VIM using the "Open With" pluggin.
> I hope it helps with your analysis of the problem.

The fix (I hope) is on the trunk. All unit tests pass, but there are
no tests that apply directly. The present code changes are minimal,
and should be safe, but there is no guarantee that they actually fix
the problems you report :-)

I opted for a minimalist set of changes.  What I did:

- Changed os.remove to at.remove in one or two places.  This handles
error messages better.

- at.openFileForWriting and at.replaceTargetFileIfDifferent now
properly set the dirty and orphan bits on errors.  Error message
improved a bit too.

- Added comments at the *calls* to the above methods indicating the
effect on dirty and orphan bits.

My hope that these will suffice now and forever.  Trying to 'simplify'
things with a grand refactoring is likely to cause a lot more problems
than it solves.

Please let me know how the changes work for you.

Edward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to