URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=4162>
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 _______________________________________________________ Details: 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 <http://savannah.gnu.org/patch/download.php?item_id=4162&item_file_id=4816> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?func=detailitem&item_id=4162> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel