Menu

#3383 Distinguish "drive not available" state

minor bug
open
nobody
5
2013-10-07
2010-01-27
No

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.

Discussion

  • Konstantin Pelepelin

    • summary: Distiguish "drive not available" state --> Distinguish "drive not available" state
     
  • Anonymous

    Anonymous - 2010-02-17

    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.

     
  • Konstantin Pelepelin

    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.

     
  • Alan Ezust

    Alan Ezust - 2013-10-07
    • labels: --> Windows Specific
     

Log in to post a comment.