From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23276: 25.0.92; Crash in auto-revert when file no longer present Date: Wed, 27 Apr 2022 16:09:54 +0200 Message-ID: <87tuaesjm5.fsf_-_@gnus.org> References: <20201229200229.2qdkhuhuir573whz@E15-2016.optimum.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20758"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 23276@debbugs.gnu.org To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 27 16:11:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njiNv-00058P-JZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Apr 2022 16:11:15 +0200 Original-Received: from localhost ([::1]:46712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1njiNu-00076O-Bt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Apr 2022 10:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1njiNi-000746-Hs for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 10:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1njiNi-00054W-8E for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1njiNi-0007Hq-1B for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2022 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Apr 2022 14:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23276 X-GNU-PR-Package: emacs Original-Received: via spool by 23276-submit@debbugs.gnu.org id=B23276.165106860927882 (code B ref 23276); Wed, 27 Apr 2022 14:11:01 +0000 Original-Received: (at 23276) by debbugs.gnu.org; 27 Apr 2022 14:10:09 +0000 Original-Received: from localhost ([127.0.0.1]:43805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njiMr-0007Fc-BG for submit@debbugs.gnu.org; Wed, 27 Apr 2022 10:10:09 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1njiMp-0007F7-J9 for 23276@debbugs.gnu.org; Wed, 27 Apr 2022 10:10:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QRRhPgj3Q5EUaoWUr5aXwgHuee6ZBVEA+FujACQ6m6Q=; b=j4xrTYHz8m5kPlNO+234jdfZu4 J8uJhv/8puDSxuSXlUm3SQzVQeqsFJ4TywJEK7kfbYjojRpzH7kJtliMsxtSdcD3Y8kYZkRyj1LQJ ue1xyw3z1+xn4MQL8knYPg2KcldWH24CG5iBGMpVp1BqXLw3TGWUVM0oa4m7yfVJkI74=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njiMh-0005zo-1s; Wed, 27 Apr 2022 16:10:01 +0200 X-Now-Playing: Kate Bush's _This Woman's Work II_: "James And The Cold Gun" In-Reply-To: <20201229200229.2qdkhuhuir573whz@E15-2016.optimum.net> (Boruch Baum's message of "Tue, 29 Dec 2020 15:02:29 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230788 Archived-At: Boruch Baum writes: > I don't see in that long discussion treatment of the case of a dired > buffer when the directory it describes is deleted. In such a case, there > isn't any meaningful recovery operation that I can think of, and any > attempted operation on the buffer would only be a waste of time and > throw errors. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I tried deleting a directory from underneath a Dired buffer (with auto-revert on), and Emacs didn't do anything in particular with it (which is consistent with how Emacs handles other files that disappear). > The biggest waste-of-time case that I can think of would be entering > wdired-mode on the buffer. I've tried it and it only throws an error on > exit, so a user could spend significant time editing the buffer for > naught. Of course, a solution for that specific case could be coded > outside of autorevert, to have wdired-mode itself refuse to operate on a > non-existent dired directory > > (unless (file-directory-p dired-directory) > ... wdired (now, at least) warns about this situation, but I've now made it signal an error in Emacs 29. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no