From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro 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:57:12 -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; charset=UTF-8 X-Trace: ger.gmane.org 1460861898 6209 80.91.229.3 (17 Apr 2016 02:58:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Apr 2016 02:58:18 +0000 (UTC) Cc: John Wiegley , michael.albinus@gmx.de, andlind@gmail.com, 23276@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 17 04:58:10 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 1arcuX-0000GF-GR for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 Apr 2016 04:58:09 +0200 Original-Received: from localhost ([::1]:37940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcuW-0007VI-UV for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Apr 2016 22:58:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcuT-0007TP-Uz for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:58:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arcuP-0003fj-QV for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arcuP-0003ff-NQ for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1arcuP-000611-JS for bug-gnu-emacs@gnu.org; Sat, 16 Apr 2016 22:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Apr 2016 02:58:01 +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.146086185923094 (code B ref 23276); Sun, 17 Apr 2016 02:58:01 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 17 Apr 2016 02:57:39 +0000 Original-Received: from localhost ([127.0.0.1]:37707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arcu3-00060Q-9Z for submit@debbugs.gnu.org; Sat, 16 Apr 2016 22:57:39 -0400 Original-Received: from mail-yw0-f173.google.com ([209.85.161.173]:36716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1arcu1-00060C-V9 for 23276@debbugs.gnu.org; Sat, 16 Apr 2016 22:57:38 -0400 Original-Received: by mail-yw0-f173.google.com with SMTP id o66so172206985ywc.3 for <23276@debbugs.gnu.org>; Sat, 16 Apr 2016 19:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+D2v6T+tEJupqo/mvApOejq8kIK2UjcjhCcS2fBbUn8=; b=sO6xDNVG4Rz8BEuWxIbJDc7XyFtvzluzPbpJuvc8NgCz7oiPwKk3bQfmn01tLFYMZ3 o1pJrz6cj9q5X4A4XcUDq21bBk+RnEMMJ5fBPRpILwT+NPqfLCbdZtjkNyYv7lbJjSll mUUZUsoMwN8NkgalgQourFfXI5ELLeojacLrMhcgZ/2ewatnLI7dEpPhH70lptGkEwrH rUM2Py+ZZpYmSrHNLi/Ohzrmo1AwxdaGANBsaL2mfHhHMTy8HHdVJXNnU2FyfQWjAh2A 5quIP+6Qw0yb2tpBSHvZpjqhzElWl57NJIwSxWqE1/r/EC90gOfsc2fSoDzU6BEQKISG Ye4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+D2v6T+tEJupqo/mvApOejq8kIK2UjcjhCcS2fBbUn8=; b=gc7uEUTRaZZn+1mDgU0pO24bN7SWFCFrp+fxR7OCgOUccaIzW6Slt3Fp87PaqZWt1N 5Dk2OkMMl2mOEnl9Y4KTX69FhiyN9otq6p0LFJvrfSz4wYFQfl9tx2Y0c9K806F+Jd1B 7gjOA/EtDq/K+JishkVXcE3uoC9l01Esv1IkYs2KqAg+IPvTidbd7XfSOwJyrTKVcLga +WtESrZs6Rli0C6Ht6yZ57eveZr6SPLbWN9quDh20ObGe/eE5bj0yYoqGCxou0Fzk9+1 eDmu5eOBiPKDhdiiW8UOLvbfl0GJn1c3ZOqC8Oo2KQrR72KPB40nRKJDow82EJKp2IUZ 2YQg== X-Gm-Message-State: AOPr4FX9kWwqmprUa99ABDe7yeUwf7gB5MmgbNC5dUc0L78aDBjuswsLfusnSzxHEJE3n7KECtGDTYXT0ZQg3w== X-Received: by 10.13.198.197 with SMTP id i188mr15563319ywd.207.1460861852509; Sat, 16 Apr 2016 19:57:32 -0700 (PDT) Original-Received: by 10.37.71.86 with HTTP; Sat, 16 Apr 2016 19:57:12 -0700 (PDT) In-Reply-To: <83d1pparh3.fsf@gnu.org> 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:116552 Archived-At: Eli Zaretskii wrote: >> 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? > > Don't we have a variant of auto-revert that never shrinks the buffer? Speaking purely as a user, I think a case can be made that it really is different. We could say: If the file exists, auto-revert updates the buffer based on its (possibly empty) contents. If the file no longer exists, then there is nothing for auto-revert to do, so it does not modify the buffer. However, Michael mentioned in a previous message that the buffer would also be left non-empty if the file existed but was empty: Michael Albinus writes: > Eli Zaretskii writes: >> Would we keep the buffer non-empty if the file existed but was empty? > > Yes. That seems less conceptually clear to me, though I can imagine cases where it would be more convenient. -- John