bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Bastien
Subject: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!"
Date: Thu, 21 Jul 2011 12:27:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Bastien <bzg@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





reply via email to

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