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: Fri, 19 Feb 2021 11:45:24 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19533"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 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 19 20:46:23 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 1lDBjL-0004xk-N5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 20:46:23 +0100 Original-Received: from localhost ([::1]:41088 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDBjK-0000W9-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Feb 2021 14:46:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46578) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDBj1-0000V7-CP for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 14:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDBj0-0004sA-1R for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 14:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDBiz-0004cN-VL for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2021 14:46: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, 19 Feb 2021 19:46: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.161376393317712 (code B ref 46397); Fri, 19 Feb 2021 19:46:01 +0000 Original-Received: (at 46397) by debbugs.gnu.org; 19 Feb 2021 19:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:50428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDBiX-0004bc-5M for submit@debbugs.gnu.org; Fri, 19 Feb 2021 14:45:33 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52756) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDBiU-0004bO-Vj for 46397@debbugs.gnu.org; Fri, 19 Feb 2021 14:45:31 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5341C160017; Fri, 19 Feb 2021 11:45:25 -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 KsG-5BYYaOxT; Fri, 19 Feb 2021 11:45:24 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id AB5F1160120; Fri, 19 Feb 2021 11:45:24 -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 sodJz3ESX2EM; Fri, 19 Feb 2021 11:45:24 -0800 (PST) Original-Received: from [192.168.0.103] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7AB51160017; Fri, 19 Feb 2021 11:45:24 -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:200381 Archived-At: On 2/19/21 11:10 AM, Matt Armstrong wrote: > (a) Modify `kill-buffer' to call `unlock-buffer' sooner, closer to the > point where it is already running hooks prompting the user. Handle > unlock errors there by prompting. How would unlock-buffer's API change, so that kill-buffer and unlock-buffer's other callers can do the right thing? Would it signal an error, and if so which one (or a new kind of error)?