From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#46397: 27.1; Cannot delete buffer pointing to a file in a path that includes a file Date: Thu, 11 Feb 2021 18:20:44 -0800 Organization: UCLA Computer Science Department Message-ID: References: <87h7mllgin.fsf@nexoid.at> <83a6scj745.fsf@gnu.org> <39d0e035-27b6-e2bd-daa2-747dda2c1a35@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25633"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 Cc: 46397@debbugs.gnu.org, craven@gmx.net To: Matt Armstrong , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 12 03:21:17 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 1lAO57-0006Xi-DP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Feb 2021 03:21:17 +0100 Original-Received: from localhost ([::1]:46934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAO56-0004Cf-GF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Feb 2021 21:21:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAO4s-0004CH-4N for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2021 21:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAO4r-0001zD-TB for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2021 21:21:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAO4r-0005XP-Od for bug-gnu-emacs@gnu.org; Thu, 11 Feb 2021 21:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Feb 2021 02:21: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.161309645521267 (code B ref 46397); Fri, 12 Feb 2021 02:21:01 +0000 Original-Received: (at 46397) by debbugs.gnu.org; 12 Feb 2021 02:20:55 +0000 Original-Received: from localhost ([127.0.0.1]:59633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAO4l-0005Wx-3X for submit@debbugs.gnu.org; Thu, 11 Feb 2021 21:20:55 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAO4h-0005Wh-1r for 46397@debbugs.gnu.org; Thu, 11 Feb 2021 21:20:54 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9454A1600F7; Thu, 11 Feb 2021 18:20:45 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id weyCHQy9vDmR; Thu, 11 Feb 2021 18:20:44 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E22C01600FC; Thu, 11 Feb 2021 18:20:44 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VwhaFeZZHgnE; Thu, 11 Feb 2021 18:20:44 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B2ECD1600F7; Thu, 11 Feb 2021 18:20:44 -0800 (PST) In-Reply-To: Content-Language: en-US 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:199835 Archived-At: On 2/11/21 2:14 PM, Matt Armstrong wrote: > The issue isn't confined to exiting Emacs. It appears that once in a > "tricky situation where the file can't be unlocked for whatever reason" > Emacs will refuse to kill the buffer because unlock_file() signals an > error. kill-buffer already asks the user something like "Buffer XXX modified;=20 kill anyway? (yes or no)" when killing a buffer that's been changed=20 without being saved. Perhaps it should also ask "File XXX cannot be=20 unlocked; kill buffer anyway? (yes or no)" if the file can't be unlocked. > Note that shut_down_emacs() calls Fdo_auto_save() just before > unlock_all_files() and that call succeeds. Fdo_auto_save() also calls > report_file_errno, throwing an errno 13 (Permission denied), but that > recovers and continues. Presumably shut_down_emacs should recover and continue if=20 unlock_all_files fails when it directly calls unlock_all_files.