PreviousNextTracker indexSee it online !

(87/231) 2940929 - Distinguish "drive not available" state

When Windows network drive (mapped to a drive letter) becomes unavailable, jEdit gives a dialog "files deleted on disk, save to recreate" for all open files from that drive, and marks them all "unsaved".
If there were tens of files open, it is annoying to reload or ignore, and if some files were really unsaved, it is very annoying to recall which files really need to be saved to another place.

I assume, the same annoyance may take place with any removable drive, but I didn't check.

jEdit could detect if drive is not available at all and don't mark all files unsaved in that case.

Submitted checat - 2010-01-27 - 12:01:39z Assigned nobody
Priority 5 Category Windows Specific
Status Open Group minor bug
Resolution None Visibility No


2010-02-17 - 21:00:56z
What do you expect jEdit to do in this case? As far as jEdit is concerned, the underlying file has disappeared. If you close such a buffer now, you will not be able to open it again later. So I think it makes sense.
2010-02-17 - 23:19:09z
I expect
if currently buffer is not durty and root of disk drive becomes not available, don't mark it dirty.
Assume files are not available, but not deleted, so you will be able to open it again later, when disk will become available.

Distinguish that from
if currently buffer is not durty and file path becomes not available but root path of disk drive available, mark it dirty and ask to save it.