From unknown Fri Aug 15 04:05:28 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9139 <9139@debbugs.gnu.org> To: bug#9139 <9139@debbugs.gnu.org> Subject: Status: 24.0.50; Inappropriate warning: "File no longer exists!" Reply-To: bug#9139 <9139@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:05:28 +0000 retitle 9139 24.0.50; Inappropriate warning: "File no longer exists!" reassign 9139 emacs submitter 9139 Bastien severity 9139 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 05:29:46 2011 Received: (at submit) by debbugs.gnu.org; 21 Jul 2011 09:29:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjpZe-0001il-AI for submit@debbugs.gnu.org; Thu, 21 Jul 2011 05:29:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QjpZY-0001iU-PL for submit@debbugs.gnu.org; Thu, 21 Jul 2011 05:29:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjpZP-00086c-En for submit@debbugs.gnu.org; Thu, 21 Jul 2011 05:29:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:43524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjpZP-00086Y-DM for submit@debbugs.gnu.org; Thu, 21 Jul 2011 05:29:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]:46105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjpZK-0002v3-Qr for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 05:29:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QjpZG-00084c-GB for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 05:29:22 -0400 Received: from mail-fx0-f52.google.com ([209.85.161.52]:63066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QjpZG-00084V-9q for bug-gnu-emacs@gnu.org; Thu, 21 Jul 2011 05:29:18 -0400 Received: by fxd18 with SMTP id 18so2620263fxd.39 for ; Thu, 21 Jul 2011 02:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=vq/JRopByeRJq60z7YQLF9eunuHdtVJdlLxyi6GLq+I=; b=om7dsFmcFjAhBORL8VdjJi6WU03ybWQ2Y6JX01y/x7HDTHi4paNdH3SvNytPgolqxt hh59svdWmq02L/fImH1FSIBH9pUSa5Zg3ip4jd/J3cx4iVPiAYUXHBsEm3OY0YPyh6uq QPgxTrtnDkZBWKlMHd9mFcU97wqARvOfH3Kjc= Received: by 10.223.98.77 with SMTP id p13mr27328fan.72.1311240557251; Thu, 21 Jul 2011 02:29:17 -0700 (PDT) Received: from myhost.localdomain (fon75-1-78-192-119-5.fbxo.proxad.net [78.192.119.5]) by mx.google.com with ESMTPS id 9sm1283247far.37.2011.07.21.02.29.15 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jul 2011 02:29:16 -0700 (PDT) Received: by myhost.localdomain (Postfix, from userid 1000) id AE8AC6049; Thu, 21 Jul 2011 11:29:39 +0200 (CEST) From: Bastien To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Inappropriate warning: "File no longer exists!" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Thu, 21 Jul 2011 11:29:39 +0200 Message-ID: <87d3h4t20s.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.7 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) 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! I suggest simply removing this warning is such a case. In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-07-10 on myhost Windowing system distributor `The X.Org Foundation', version 11.0.11002000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text -- Bastien From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 06:17:24 2011 Received: (at 9139) by debbugs.gnu.org; 21 Jul 2011 10:17:25 +0000 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 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 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 Date: Thu, 21 Jul 2011 06:17:05 -0400 Message-Id: From: Eli Zaretskii To: Bastien In-reply-to: <87d3h4t20s.fsf@gnu.org> (message from Bastien on Thu, 21 Jul 2011 11:29:39 +0200) Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" References: <87d3h4t20s.fsf@gnu.org> X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9139 Cc: 9139@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 06:26:54 2011 Received: (at 9139) by debbugs.gnu.org; 21 Jul 2011 10:26:55 +0000 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 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 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= Received: by 10.223.59.17 with SMTP id j17mr77222fah.120.1311244004564; Thu, 21 Jul 2011 03:26:44 -0700 (PDT) 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) Received: by myhost.localdomain (Postfix, from userid 1000) id 18E4D6049; Thu, 21 Jul 2011 12:27:07 +0200 (CEST) From: Bastien To: Eli Zaretskii Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" In-Reply-To: (Eli Zaretskii's message of "Thu, 21 Jul 2011 06:17:05 -0400") References: <87d3h4t20s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Date: Thu, 21 Jul 2011 12:27:06 +0200 Message-ID: <87ei1kq685.fsf@altern.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 9139 Cc: 9139@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 10 23:00:03 2011 Received: (at 9139) by debbugs.gnu.org; 11 Sep 2011 03:00:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2aH4-0008RQ-I1 for submit@debbugs.gnu.org; Sat, 10 Sep 2011 23:00:03 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2aGz-0008Qc-Sh for 9139@debbugs.gnu.org; Sat, 10 Sep 2011 22:59:59 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2aCo-0007Gx-18; Sun, 11 Sep 2011 04:55:38 +0200 From: Lars Magne Ingebrigtsen To: Bastien Subject: Re: 24.0.50; Inappropriate warning: "File no longer exists!" In-Reply-To: <87d3h4t20s.fsf@gnu.org> (Bastien's message of "Thu, 21 Jul 2011 11:29:39 +0200") Date: Sun, 11 Sep 2011 04:52:29 +0200 Message-ID: References: <87d3h4t20s.fsf@gnu.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Tara Jane O'Neil & Nikaido Kazumi's _Tara Jane O'Neil & Nikaido Kazumi_: "Say Yah" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R2aCo-0007Gx-18 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316314538.19267@T0BAPBh3RbIZoqWRLLNM0A X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9139 Cc: 9139@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Bastien writes: > 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! Yes, it shouldn't say anything in this instance. But how? It's this code in files.el: (cond ((not (file-exists-p filename)) (setq nonexistent t) (message "File %s no longer exists!" filename)) Is there something stored in the buffer that's stored if the file once has existed, but no longer exists? Let's see... (visited-file-modtime) => (-1 65535) in foo.txt. But is that a bug? The doc string says: Return the current buffer's recorded visited file modification time. The value is a list of the form (HIGH LOW), like the time values that `file-attributes' returns. If the current buffer has no recorded file modification time, this function returns 0. So I think that perhaps is should return 0? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 02:04:37 2011 Received: (at 9139-done) by debbugs.gnu.org; 11 Sep 2011 06:04:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2d9f-0005EC-4D for submit@debbugs.gnu.org; Sun, 11 Sep 2011 02:04:37 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2d9X-0005Dw-Fn for 9139-done@debbugs.gnu.org; Sun, 11 Sep 2011 02:04:29 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R2d5O-0008ID-Eo; Sun, 11 Sep 2011 02:00:10 -0400 Date: Sun, 11 Sep 2011 02:00:10 -0400 Message-Id: From: Eli Zaretskii To: Lars Magne Ingebrigtsen In-reply-to: (message from Lars Magne Ingebrigtsen on Sun, 11 Sep 2011 04:52:29 +0200) Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" References: <87d3h4t20s.fsf@gnu.org> X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 9139-done Cc: 9139-done@debbugs.gnu.org, bzg@altern.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) > From: Lars Magne Ingebrigtsen > Date: Sun, 11 Sep 2011 04:52:29 +0200 > Cc: 9139@debbugs.gnu.org > > > emacs -Q > > C-x f ~/foo.txt > > C-x b bar > > C-x f ~/foo.txt > > > > => File no longer exists! > > Yes, it shouldn't say anything in this instance. > > But how? It's this code in files.el: > > (cond ((not (file-exists-p filename)) > (setq nonexistent t) > (message "File %s no longer exists!" filename)) The magic is in the previous line. The code does this: (or nowarn (verify-visited-file-modtime buf) (cond ((not (file-exists-p filename)) (setq nonexistent t) (message "File %s no longer exists!" filename)) The problem was that verify-visited-file-modtime would return nil in this case, where it returned t in Emacs 23. And that's because the internal details of verify-visited-file-modtime changed, but insert-file-contents didn't have the corresponding change. It does now (revno 105721). > (visited-file-modtime) > => (-1 65535) > > in foo.txt. But is that a bug? No. -1 as the modtime exactly means that the file does not exist. So at most we need to update the doc string, assuming that we want to reveal such implementation details. Btw, WIBNI visited-file-modtime returned (-1 -1) in this case, instead of forcing us to invoke the unsigned-to-signed converter in our heads? > So I think that perhaps is should return 0? Zero is for existing files that were not modified since visited. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 11:03:34 2011 Received: (at 9139) by debbugs.gnu.org; 11 Sep 2011 15:03:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2lZA-00017s-U7 for submit@debbugs.gnu.org; Sun, 11 Sep 2011 11:03:34 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2lZ5-00017P-0U for 9139@debbugs.gnu.org; Sun, 11 Sep 2011 11:03:23 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R2lUq-00084Q-1Z; Sun, 11 Sep 2011 16:59:00 +0200 From: Lars Magne Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" In-Reply-To: (Eli Zaretskii's message of "Sun, 11 Sep 2011 02:00:10 -0400") Date: Sun, 11 Sep 2011 16:49:40 +0200 Message-ID: References: <87d3h4t20s.fsf@gnu.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUhGR2GamsXDxFBNkNV R1MqISj///8IBQY3KzPUzM3UDWW3AAACVElEQVQ4jY3SzW+bMBQAcNfEIse5Q+1yQ2QIjgQbKbuV j645MqgF11wicaM0kXtMMGhcuUTNf7uElXYkmzQffPn5Pb9nP7D6xwL/Awe8/xscWmUe7C8ha30y vp5cQvvZSRvf3Z9D1t6nhASzwzkcMIwrn9ILaH01dn3fx+eA78BjMPfFe8VvkCkeEI5DUvcCbPhI 70Xq3vRw6I4sFSdk1ImZ23cC+PcOgiaExBGMvkPRQRvUEJHFn4B6kBCZpzXt6wX6GzS62I5Tdg6Y NqqI9Kas+kaA1oFC6xAV43T0Ab8vDyoTGvm6qar+S0DegV/VESxGzbSiPWxOkBHqRDARAhE6iDiB JpVCxIQM7sjm9C4XYRzHldND9ySZE3tayiQJVvMhWMAyDBVJNSVDsKE1NRBM9WAxhC1sCm5w1SJn qUI15lzlxa3wV0PQJS1KdHgrFkOAJoNeYhq8OYNI92QtMeWC3A/BU6G9gaNkTcEQyjBKuHH18ESf B7Aspxrg8jh6ttc9dOOztAxuyoYmc3nd99Htyy3nKOaqXBgvP/YfkPl2zhumoZ8Ff2l2H6CUiWZU loZgzk1BvvXQLjR4hE8aKPVjhOiGDpwSMaaGvFI2TQl43pAZnpwgUxghKpRneCNsZKiM7PBxhsCq 3VYYm1p0ggeUq6ye4WMIWL1O3SAwYblTnsU12CBWuhjjI3ypFr5QozDYPs09pCOmuXiC9yALdgtH kqIaW18DT9JRCN120u7B0vUZmEph2i7M2BsBwCBWTtDOAoNvxuBx8mrG9lXIQnYEfPMLW299fQNY b94AAAAASUVORK5CYII= X-Now-Playing: Zola Jesus's _Stridulum EP_: "I Can't Stand" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R2lUq-00084Q-1Z X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1316357940.54336@q6e9S+wDUwcLfHLlO1giYw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 9139 Cc: 9139@debbugs.gnu.org, bzg@altern.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Eli Zaretskii writes: >> (visited-file-modtime) >> => (-1 65535) >> >> in foo.txt. But is that a bug? > > No. -1 as the modtime exactly means that the file does not exist. So > at most we need to update the doc string, assuming that we want to > reveal such implementation details. I've now updated the doc string. It seems like a non-optimal return value for this situation (nil might make more sense), though, but changing that might break stuff, I guess. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 15:02:19 2011 Received: (at 9139) by debbugs.gnu.org; 11 Sep 2011 19:02:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2pII-0001xu-U7 for submit@debbugs.gnu.org; Sun, 11 Sep 2011 15:02:19 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2pIH-0001xo-6s for 9139@debbugs.gnu.org; Sun, 11 Sep 2011 15:02:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R2pE7-0002Ht-Nh; Sun, 11 Sep 2011 14:57:59 -0400 From: Glenn Morris To: 9139@debbugs.gnu.org Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" References: <87d3h4t20s.fsf@gnu.org> X-Spook: nitrate red noise Mole data haven Exon Shell Hamas Mossad X-Ran: m>PW_?3 (Eli Zaretskii's message of "Sun, 11 Sep 2011 02:00:10 -0400") Message-ID: <762ky52ko.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 9139 Cc: eliz@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Eli Zaretskii wrote: > The problem was that verify-visited-file-modtime would return nil in > this case, where it returned t in Emacs 23. And that's because the > internal details of verify-visited-file-modtime changed, but > insert-file-contents didn't have the corresponding change. It does > now (revno 105721). Sounds like you've fixed bug#7547? (Thanks.) From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 11 16:10:18 2011 Received: (at 9139) by debbugs.gnu.org; 11 Sep 2011 20:10:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2qM6-0006Xu-Pd for submit@debbugs.gnu.org; Sun, 11 Sep 2011 16:10:18 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R2qM3-0006Xi-Qg for 9139@debbugs.gnu.org; Sun, 11 Sep 2011 16:10:17 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LRD00M00J7RN200@a-mtaout23.012.net.il> for 9139@debbugs.gnu.org; Sun, 11 Sep 2011 23:05:53 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.9.62]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LRD00JQOJTQ7900@a-mtaout23.012.net.il>; Sun, 11 Sep 2011 23:05:50 +0300 (IDT) Date: Sun, 11 Sep 2011 23:05:50 +0300 From: Eli Zaretskii Subject: Re: bug#9139: 24.0.50; Inappropriate warning: "File no longer exists!" In-reply-to: <762ky52ko.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il To: Glenn Morris Message-id: <8362kyyhcx.fsf@gnu.org> References: <87d3h4t20s.fsf@gnu.org> <762ky52ko.fsf@fencepost.gnu.org> X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 9139 Cc: 9139@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > From: Glenn Morris > Cc: eliz@gnu.org > Date: Sun, 11 Sep 2011 14:57:59 -0400 > > Eli Zaretskii wrote: > > > The problem was that verify-visited-file-modtime would return nil in > > this case, where it returned t in Emacs 23. And that's because the > > internal details of verify-visited-file-modtime changed, but > > insert-file-contents didn't have the corresponding change. It does > > now (revno 105721). > > Sounds like you've fixed bug#7547? (Thanks.) I guess so. You're welcome. From unknown Fri Aug 15 04:05:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Oct 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator