From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Armstrong Newsgroups: gmane.emacs.bugs Subject: bug#46397: 27.1; Cannot delete buffer pointing to a file in a path that includes a file Date: Sun, 14 Feb 2021 14:16:12 -0800 Message-ID: References: <87h7mllgin.fsf@nexoid.at> <83a6scj745.fsf@gnu.org> <39d0e035-27b6-e2bd-daa2-747dda2c1a35@cs.ucla.edu> <83tuqhg3j9.fsf@gnu.org> <83czx4e5h5.fsf@gnu.org> <83zh06a1yv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11826"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46397@debbugs.gnu.org, eggert@cs.ucla.edu, craven@gmx.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 23:17:33 2021 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 1lBPht-0002ys-81 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 23:17:33 +0100 Original-Received: from localhost ([::1]:39656 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBPhs-00015d-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 17:17:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBPhO-00015I-L3 for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 17:17:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBPhO-0005qA-60 for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 17:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBPhO-0004sX-0L for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 17:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Armstrong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 22:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46397 X-GNU-PR-Package: emacs Original-Received: via spool by 46397-submit@debbugs.gnu.org id=B46397.161334098718698 (code B ref 46397); Sun, 14 Feb 2021 22:17:01 +0000 Original-Received: (at 46397) by debbugs.gnu.org; 14 Feb 2021 22:16:27 +0000 Original-Received: from localhost ([127.0.0.1]:36930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBPgo-0004rV-W0 for submit@debbugs.gnu.org; Sun, 14 Feb 2021 17:16:27 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:51867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBPgm-0004r2-Rb for 46397@debbugs.gnu.org; Sun, 14 Feb 2021 17:16:25 -0500 Original-Received: from matts-mbp-2016.lan (24-113-169-116.wavecable.com [24.113.169.116]) (Authenticated sender: matt@rfc20.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 84A30100003; Sun, 14 Feb 2021 22:16:15 +0000 (UTC) In-Reply-To: <83zh06a1yv.fsf@gnu.org> 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:200035 Archived-At: Eli Zaretskii writes: >> From: Matt Armstrong >> Cc: 46397@debbugs.gnu.org, eggert@cs.ucla.edu, craven@gmx.net >> Date: Sat, 13 Feb 2021 16:49:43 -0800 >> >> I think auto-save issues messages and warnings, but never prompts >> ("asks about"). >> >> Auto save can call `display-warning' (see auto_save_error in >> fileio.c) or `message' (see message1() and message_with_string() >> calls in same). I can't find any prompts. >> >> So let's settle a question before going further. Would you be okay if >> lock errors were reported in the same way(s) auto-save errors are? > > I'm okay with doing the same as auto-save does when Emacs is shutting > down, yes. As for other situations, I'm not sure we should just > display a warning. > > Were you asking only about what to do during shutdown? I have been primarily worried about shutdown, yes. For non-shutdown, I want to consider errors acquiring and releasing the lock separately. When acquiring the lock, I think a prompt is good. The user interaction I imagine is similar to 'ask-user-about-lock' (steal/proceed/quit), but might just be (proceed/quit). When releasing the lock, I have a less clear opinion but I'm thinking that warnings are better. A warning is still quite intrusive and obvious. Maybe we don't need to decide this part now.