From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" Date: Thu, 21 Jul 2011 06:17:05 -0400 Message-ID: References: <87d3h4t20s.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1311243502 6358 80.91.229.12 (21 Jul 2011 10:18:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 10:18:22 +0000 (UTC) Cc: 9139@debbugs.gnu.org To: Bastien Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 12:18:18 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QjqKc-00075w-Mi for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 12:18:14 +0200 Original-Received: from localhost ([::1]:45270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqKc-0002fF-8p for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 06:18:14 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqKV-0002fA-Kf for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:18:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjqKQ-0001DW-OB for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:18:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqKQ-0001DR-Mj for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QjqKQ-0002mB-BO; Thu, 21 Jul 2011 06:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Jul 2011 10:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9139-submit@debbugs.gnu.org id=B9139.131124344510625 (code B ref 9139); Thu, 21 Jul 2011 10:18:02 +0000 Original-Received: (at 9139) by debbugs.gnu.org; 21 Jul 2011 10:17:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjqJo-0002lK-4o for submit@debbugs.gnu.org; Thu, 21 Jul 2011 06:17:24 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjqJh-0002l1-QT for 9139@debbugs.gnu.org; Thu, 21 Jul 2011 06:17:22 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QjqJV-0008Hc-Iy; Thu, 21 Jul 2011 06:17:05 -0400 In-reply-to: <87d3h4t20s.fsf@gnu.org> (message from Bastien on Thu, 21 Jul 2011 11:29:39 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Jul 2011 06:18:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:49505 > From: Bastien > 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.