emacs-devel
[Top][All Lists]
Advanced

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

Re: find-file for file that was deleted, when visiting buffer still exis


From: Mathias Dahl
Subject: Re: find-file for file that was deleted, when visiting buffer still exists
Date: Sat, 3 Mar 2007 19:02:12 +0100

1. Visit a file `foo' in a buffer. Close the window, but don't kill the
buffer.

2. Delete file `foo' (e.g. `delete-file' or some other way that doesn't also
kill the buffer).

3. `C-x C-f foo'

This raises an error saying that the file no longer exists.
...
Buffer `foo' was visiting file `foo', which no longer exists.
Choose one:

 s RET - Save buffer `foo' as file `foo'
 k RET - Visit a new, empty file in buffer `foo'
 RET   - Do nothing

What about

b RET - Switch to buffer `foo'

I think that it would be useful to notify the user of the existing
buffer. Who knows,
maybe the file was deleted by mistake, which means the user is lucky that Emacs
still has a copy of it. Unfortunately he might not find that out because of how
Emacs currently handles this scenario.

I agree with Drew, it would be nice with some changes here. Now or later.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]