Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!"

From: Eli Zaretskii <[email-masked]>
Date: Thu, 21 Jul 2011 06:17:05 -0400

> From: Bastien <[email-masked]>
> Date: Thu, 21 Jul 2011 11:29:39 +0200
> 
> Emacs sends an inappropriate warning message when trying to 
> find a file that isn't on the hardrive but is the filename of 
> a buffer, thus somehow "existing" in Emacs.
> 
> To reproduce the problem:
> 
> emacs -Q
> C-x f ~/foo.txt
> C-x b bar
> C-x f ~/foo.txt
> 
>   => File no longer exists!

Why is that inappropriate?  Emacs checks whether the file is newer
than it was when it was last visited or saved, to make sure you don't
accidentally overwrite the file with stale data.  If the file no
longer exists, this test cannot be performed, so Emacs alerts you to
that fact.