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#18009: 24.4.50; Add hooks for `rename-file' and `delete-file' Date: Sun, 20 Feb 2022 14:07:52 +0100 Message-ID: <87k0dpu1nb.fsf@gnus.org> References: <16c1eba0-7848-497c-8aef-cf3d02f2decd@default> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21783"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 18009@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 14:09:25 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 1nLlxt-0005Tq-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 14:09:25 +0100 Original-Received: from localhost ([::1]:43290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLlxr-0003TM-UX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 08:09:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLlxc-0003S2-PA for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:09:08 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLlxW-0007lm-DA for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:09:08 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLlxW-0000bR-8N for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 08:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Feb 2022 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18009 X-GNU-PR-Package: emacs Original-Received: via spool by 18009-submit@debbugs.gnu.org id=B18009.16453624882249 (code B ref 18009); Sun, 20 Feb 2022 13:09:02 +0000 Original-Received: (at 18009) by debbugs.gnu.org; 20 Feb 2022 13:08:08 +0000 Original-Received: from localhost ([127.0.0.1]:59564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlwe-0000aC-4G for submit@debbugs.gnu.org; Sun, 20 Feb 2022 08:08:08 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:54376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlwc-0000ZQ-I5 for 18009@debbugs.gnu.org; Sun, 20 Feb 2022 08:08:07 -0500 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=VVuZ7Ojg6DF5n7gl5BaHAQ5ybkZf8Dy6hO5pBqsG/2I=; b=l6L4BcBijOwvxmLN0W4IaQsFpL /JSvPDh6lvs4UZRvgcXjqi34LxpvLRNKVjTw6IX0hksRZiR8ror6VEdBEKGT44XYrz5C4vriKJAA9 DtU1HS8lOBxRFI+sDqDV91eekJzMbuKL5fQfgqO8hRvNRJGtlP20wM8o5Esetc2dX1aM=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLlwP-0001tQ-G0; Sun, 20 Feb 2022 14:07:56 +0100 X-Now-Playing: Meat Beat Manifesto's _Storm the Studio_: "I Got The Fear (Part 1)" In-Reply-To: (Stefan Monnier's message of "Fri, 18 Jul 2014 22:34:21 -0400") 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:227227 Archived-At: Stefan Monnier writes: >> Please add a hook for each of these basic operations. It is not unusual >> to want to be able to carry out some action associated with >> (successfully) renaming or deleting a file. The hooks would be run at >> the end of the operation, and only upon success. > > It's not unreasonable, but these are rather low-level operations, I'm > not sure I want to run hooks from them. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I think the conclusion here is that we don't want to add any hooks to these functions, and the user can use file name handlers and/or advice to alter the behaviour if they want to. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no