|
From: Randall R S. <rs...@so...> - 2006-01-16 07:10:09
|
Hi, On Sunday 15 January 2006 23:00, H-J W=FCllner wrote: > Hi, > > Friday, January 13, 2006 8:30 PM Geoff wrote > > > I have noticed that using jEdit 4.2, if I accidentally press Save > > or type Ctrl-S when viewing a read-only file, it silently changes > > the file to be read-write. Is there any way to disable this > > behavior? > > Disable the option > Two-stage save > in > Options:jEdit:General > that should do what you want. Two things: 1) The behavior is clearly a bug. The reason files are made read-only is=20 to prevent their being written (at least to prevent them from being=20 written casually). At least when Vim does this, it requires the user to=20 use the "!" modifier to the writing command. 2) I'm curious about how much extra risk of data loss is actually posed=20 by disabling two-stage save? What vulnerabilities exist? What must go=20 wrong for data to be lost? Will the user get a positive indication when=20 it happens? If an error occurs during a save initiated as a result of=20 exiting the application with unsaved changes, will the program exit be=20 cancelled and the user given a chance to save again or elsewhere? > Hajo Randall Schulz |