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#23276: 25.0.92; Crash in auto-revert when file no longer present Date: Sun, 17 Apr 2016 18:16:28 +0300 Message-ID: <83wpnw9sfn.fsf@gnu.org> References: <87vb3hgzr1.fsf@gmx.de> <83fuulbcq7.fsf@gnu.org> <83d1pparh3.fsf@gnu.org> <87r3e4wew9.fsf@wanadoo.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1460906241 21553 80.91.229.3 (17 Apr 2016 15:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 15:17:21 +0000 (UTC) Cc: 23276@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 17:17:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aroRj-0006CH-0u for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2016 17:17:11 +0200 Original-Received: from localhost ([::1]:47638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aroRi-0007xw-C9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2016 11:17:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aroRe-0007u7-Dh for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2016 11:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aroRa-0001wg-Co for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2016 11:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aroRa-0001wc-Ai for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2016 11:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aroRa-0000Av-4L for bug-gnu-emacs@gnu.org; Sun, 17 Apr 2016 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Apr 2016 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23276 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23276-submit@debbugs.gnu.org id=B23276.1460906215655 (code B ref 23276); Sun, 17 Apr 2016 15:17:02 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 17 Apr 2016 15:16:55 +0000 Original-Received: from localhost ([127.0.0.1]:38572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aroRT-0000AV-6t for submit@debbugs.gnu.org; Sun, 17 Apr 2016 11:16:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aroRR-0000AH-DD for 23276@debbugs.gnu.org; Sun, 17 Apr 2016 11:16:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aroRI-0001uc-AG for 23276@debbugs.gnu.org; Sun, 17 Apr 2016 11:16:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aroRI-0001uY-7W; Sun, 17 Apr 2016 11:16:44 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4624 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aroRH-0004Rn-GY; Sun, 17 Apr 2016 11:16:43 -0400 In-reply-to: <87r3e4wew9.fsf@wanadoo.es> (message from =?UTF-8?Q?=C3=93scar?= Fuentes on Sun, 17 Apr 2016 15:20:22 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116564 Archived-At: > From: Óscar Fuentes > Date: Sun, 17 Apr 2016 15:20:22 +0200 > > Eli Zaretskii writes: > > >> > And I still am not convinced that deleting a file under auto-revert > >> > shouldn't erase its buffer. Otherwise, it sounds like just > >> > half-auto-revert to me. Would we keep the buffer non-empty if the > >> > file existed but was empty? > >> > >> I would not want it to erase the buffer. Countless have been the times that > >> I've been working on a project, and an unbridled rm took away code from the > >> disk which I was very grateful to find was still in a buffer. > > > > How is it different from clobbering a file by making it empty? > > $ echo hello > foo.txt > > $ emacs -Q foo.txt & > > M-x auto-revert-mode > > $ echo -n > foo.txt > > M-x undo How is this relevant to the issue at hand? Undo is not part of the picture. > Clobbering a file doesn't imply that you lose its previous contents. I never said otherwise.