Hi!

I use gvim 7.2 on Windows.

I noticed this unexpected behavior regarding read-only files.

If I open a file, that is open by another process, gvim marks it
as "read-only" and refuses saving changes, unless "w!" is used.
(funny, if I close the gvim window, it will ask to save and if answered
"yes" it will save without any complaints)

The funny thing:
 - open a file, that is not used by other processes
 - saving changes work
 - open the same file with another process
 - gvim detects this and complains on save, that it is a read only file*
 - the other process stops using the file
 - the "weird" part:  gvim still refuses to save changes to the file, even if 
now 
there is no reason for that



additional note:
 * - I think applications should not second guess if a file is read-only or not.
     If it is, the OS will refuse any write access. If the OS allows write, then
     the application (gvim in this case) should not prevent the user from doing 
so.

Regards,
David

---------------------------------------------------------------------
http://www.nosoftwarepatents.com         Innovation, not litigation !
---
David Balažic                 mailto:[email protected]
HERMES Softlab                http://www.hermes-softlab.com
Zagrebska cesta 104           Phone: +386 2 450 8937 
SI-2000 Maribor
Slovenija
---------------------------------------------------------------------
"Be excellent to each other." -
Bill S. Preston, Esq. & "Ted" Theodore Logan
---------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to