[patch #4162] detach on quick-save


                 Summary: detach on quick-save
                 Project: GNU Midnight Commander
            Submitted by: ossi
            Submitted on: Mon 07/11/2005 at 21:43
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open



in quick-save mode the editor just overwrites the existing file. this is all
fine ... except when you cloned a source tree with "cp -al" and want to patch
one copy.
this patch adds a check whether the file has multiple hard links and asks
whether the file should be "detached" before saving.

one particularly noteworthy part is the change of the unlocking logic in case
of saving failure (chunk for line 551+ in new version). either me or the
original author got it wrong.

hmm, thinking about this further, it might make sense to warn the user that he
would detach the file if he is using one of the other saving modes - and offer
to switch to quick save mode in this case.


File Attachments:

Date: Mon 07/11/2005 at 21:43  Name: mc-detach.diff  Size: 3.01KB   By: ossi



Reply to this item at:


  Message sent via/by Savannah

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