GNU bug report logs - #9139
24.0.50; Inappropriate warning: "File no longer exists!"

Previous Next

Package: emacs;

Reported by: Bastien <bzg <at> altern.org>

Date: Thu, 21 Jul 2011 09:30:03 UTC

Severity: minor

Found in version 24.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 9139 <at> debbugs.gnu.org (full text, mbox):

From: Bastien <bzg <at> altern.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9139 <at> debbugs.gnu.org
Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!"
Date: Thu, 21 Jul 2011 12:27:06 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Bastien <bzg <at> altern.org>
>> 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.

I understand the need for a warning, but emacs asserts that the file 
*no longer* exists while this file never existed before.

I suggest changing the message like this:

  "File %s doesn't exist"

-- 
 Bastien




This bug report was last modified 13 years and 311 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.