From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.bugs Subject: bug#23276: 25.0.92; Crash in auto-revert when file no longer present Date: Sat, 16 Apr 2016 19:53:02 -0700 Message-ID: References: <87vb3hgzr1.fsf@gmx.de> <83fuulbcq7.fsf@gnu.org> <83d1pparh3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460861665 3114 80.91.229.3 (17 Apr 2016 02:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 02:54:25 +0000 (UTC) Cc: 23276@debbugs.gnu.org, michael.albinus@gmx.de, andlind@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 04:54:14 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 1arcqj-0006xr-5s for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2016 04:54:13 +0200 Original-Received: from localhost ([::1]:37892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcqi-0002nS-Mm for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2016 22:54:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcqd-0002kN-RG for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:54:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arcqY-0002FJ-KX for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcqY-0002F6-H0 for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1arcqY-0005vW-7x for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Wiegley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Apr 2016 02:54: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.146086159422725 (code B ref 23276); Sun, 17 Apr 2016 02:54:02 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 17 Apr 2016 02:53:14 +0000 Original-Received: from localhost ([127.0.0.1]:37703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arcpl-0005uT-NJ for submit@debbugs.gnu.org; Sat, 16 Apr 2016 22:53:13 -0400 Original-Received: from mail-pf0-f173.google.com ([209.85.192.173]:33934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arcpk-0005uG-7F for 23276@debbugs.gnu.org; Sat, 16 Apr 2016 22:53:12 -0400 Original-Received: by mail-pf0-f173.google.com with SMTP id c20so69108152pfc.1 for <23276@debbugs.gnu.org>; Sat, 16 Apr 2016 19:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mime-version; bh=oXANw6YE/tZmipoYqNcQu7P+Di9LALkq1nRXNn87RMA=; b=IvNsGBWa9b/rFToND9hVigycZGSoB+5Bu9pmfj6Y4UxPx+SA2mCgk4Cmw/RRwF3+b6 xoNdx8uz2B1g9SnXfLFkTome8wHSMFnS1o4FM3ssvlOFMg6F5AhGMc/xWNks5/ULtwjF MiUMb7tUGKbcnNeXN25SUusnzrjxDykXKuLX1ViY5EX4nVNJvx/Ba6RrdQQtPT+64EuF VvkXXt7xhb9ClhTVYk2IxkEN135iEQX68bcM+BtdLRKIXLl698iYbnQlUYGcv2+WkgQ7 dWaEU92Y8s1kKQutj7FToac/dCwveC4u6Z8PEP9YkUJ1PpIA+YvH1+P1kyJB0ZZgAPGP SCPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mime-version; bh=oXANw6YE/tZmipoYqNcQu7P+Di9LALkq1nRXNn87RMA=; b=YtUclPr2PVf+IBaJRCVa8gD3E8Fgo/lww/hz6EXsuwF+ek0cEjGo0z79+9hh7VpVsE sJnh5QUKIrwJjJw0g0AECANMuXuczlOqXHQ7seLKwhooeKermytqV7r/xd4SRA5/guCN 4TAoRsmkm6Fq36f5YTn7Fb3qKMDEV9BPWp9fAfIaYbECH1nCXAnEKuHXBPWgOZvBrYX5 fSxuNpnCo4A3Dl/6jqybIPDFC8ifsX4VJESslS6d7DNlR+3FuISszYnlY9/08uOH3TUi v4PmxpUpDdlgOSruAhxRaAoO5okDw8NApX1n8ZrOc97R52mmQKX765pNbQXHMGU/M1ct VgxQ== X-Gm-Message-State: AOPr4FUpaL2UEAK577a+WkXiPAE7J98eKeES8anVqeCGcRddT77q8Cc7AemMeknwYcYATg== X-Received: by 10.98.65.203 with SMTP id g72mr40692616pfd.138.1460861586431; Sat, 16 Apr 2016 19:53:06 -0700 (PDT) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id y21sm20383176pfb.13.2016.04.16.19.53.04 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 16 Apr 2016 19:53:04 -0700 (PDT) Original-Received: by Vulcan.local (Postfix, from userid 501) id C63B5143544B0; Sat, 16 Apr 2016 19:53:03 -0700 (PDT) In-Reply-To: <83d1pparh3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Apr 2016 05:39:36 +0300") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.92 (darwin) 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:116551 Archived-At: >>>>> Eli Zaretskii writes: >> 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? I'm not sure, but I never clobber files that way... > Don't we have a variant of auto-revert that never shrinks the buffer? I think if it's significantly reduced, it does warn. But I'm not sure what that's based on. The current behavior, whatever it is, does not lose contents that get accidentally deleted from disk. I'm not sure what happens if you cat /dev/null onto your code. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2