From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" Date: Thu, 21 Jul 2011 12:27:06 +0200 Message-ID: <87ei1kq685.fsf@altern.org> References: <87d3h4t20s.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311244038 9258 80.91.229.12 (21 Jul 2011 10:27:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2011 10:27:18 +0000 (UTC) Cc: 9139@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 21 12:27:14 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 1QjqTI-0001z7-49 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 12:27:12 +0200 Original-Received: from localhost ([::1]:41030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqTH-0008JG-CZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Jul 2011 06:27:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqTC-0008GY-ID for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:27:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjqT8-0002y8-II for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:27:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjqT8-0002y3-Cg for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 06:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QjqT7-00030E-U5; Thu, 21 Jul 2011 06:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bastien 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:27:01 +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.131124401511530 (code B ref 9139); Thu, 21 Jul 2011 10:27:01 +0000 Original-Received: (at 9139) by debbugs.gnu.org; 21 Jul 2011 10:26:55 +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 1QjqSz-0002zv-QM for submit@debbugs.gnu.org; Thu, 21 Jul 2011 06:26:54 -0400 Original-Received: from mail-fx0-f42.google.com ([209.85.161.42]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjqSw-0002zi-GU for 9139@debbugs.gnu.org; Thu, 21 Jul 2011 06:26:51 -0400 Original-Received: by fxe23 with SMTP id 23so3757826fxe.29 for <9139@debbugs.gnu.org>; Thu, 21 Jul 2011 03:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=tHZVzrqBiSN0MuS3VPQRJWJMd9cd6K1XGdV2+iwYJbY=; b=PYQuFJFQ8drhIWVGBP0alb862N3zDe97LtoTOWcuswrbuoPGawSJPqizmT3iD1X6+M j66t1UJ8vsvQy02pbrc8ENsKfIYwSNaEHxQ5rmnhRdJQVvVd36HGsL0YCCUcUR4NossP FuW9/z/GcBJzQBazpW9etuEK+chae77MkuFSY= Original-Received: by 10.223.59.17 with SMTP id j17mr77222fah.120.1311244004564; Thu, 21 Jul 2011 03:26:44 -0700 (PDT) Original-Received: from myhost.localdomain (fon75-1-78-192-119-5.fbxo.proxad.net [78.192.119.5]) by mx.google.com with ESMTPS id e10sm1315913fak.18.2011.07.21.03.26.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jul 2011 03:26:43 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 18E4D6049; Thu, 21 Jul 2011 12:27:07 +0200 (CEST) In-Reply-To: (Eli Zaretskii's message of "Thu, 21 Jul 2011 06:17:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Jul 2011 06:27:01 -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:49499 Eli Zaretskii writes: >> 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. 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