unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: find-file for file that was deleted, when visiting buffer still exists
Date: Sat, 3 Mar 2007 19:02:12 +0100	[thread overview]
Message-ID: <7dbe73ed0703031002m6df03013uf23697339de79bda@mail.gmail.com> (raw)
In-Reply-To: <BDEIJAFNGDOAGCJIPKPBMEBDCDAA.drew.adams@oracle.com>

> 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	other threads:[~2007-03-03 18:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-03 17:29 find-file for file that was deleted, when visiting buffer still exists Drew Adams
2007-03-03 18:02 ` Mathias Dahl [this message]
2007-03-05  2:55 ` Richard Stallman
2007-03-05  4:57   ` Drew Adams
2007-03-05 21:50     ` Richard Stallman
2007-03-05  7:14   ` Mathias Dahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7dbe73ed0703031002m6df03013uf23697339de79bda@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).