From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53632: Function definition history Date: Fri, 04 Feb 2022 14:43:51 -0500 Message-ID: References: <87y22spdxo.fsf@gmx.de> <87y22qmuro.fsf@gmx.de> <87tudemsrz.fsf@gmx.de> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22041"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Glenn Morris , 53632@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 21: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 1nG4vK-0005Yu-U1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 21:11:15 +0100 Original-Received: from localhost ([::1]:51366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG4vJ-0004i1-NV for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 15:11:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35976) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG4VM-0005e5-Kd for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 14:44:26 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG4V0-0005IQ-G3 for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 14:44:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG4V0-0000ji-Cb for bug-gnu-emacs@gnu.org; Fri, 04 Feb 2022 14:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Feb 2022 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53632 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53632-submit@debbugs.gnu.org id=B53632.16440038412817 (code B ref 53632); Fri, 04 Feb 2022 19:44:02 +0000 Original-Received: (at 53632) by debbugs.gnu.org; 4 Feb 2022 19:44:01 +0000 Original-Received: from localhost ([127.0.0.1]:32853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG4Uz-0000jM-Fy for submit@debbugs.gnu.org; Fri, 04 Feb 2022 14:44:01 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG4Uy-0000jA-52 for 53632@debbugs.gnu.org; Fri, 04 Feb 2022 14:44:00 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 5942B806A3; Fri, 4 Feb 2022 14:43:54 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B10B980521; Fri, 4 Feb 2022 14:43:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1644003832; bh=Dp3HpM3REDnDs8Biyjsgff7ag7nzCDVvtU5rcHp/11g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bbKdx2VK2keUUkq+REaGAV2+gRCDlcK0SrZrJGkFJEbOgSi2voSGpQW4KoD4e0dtT viUdQdXs/jTEvC3zJNVOk2KLKCc6N/VyZBDoizpYuxzkMrWWne3N1rhw/av61mDd5K aeQ9xyl2ap5Iy/4YXJGd0W4/pYPjLBDJrEZqrXlOB6QeUgISICTFLI8zMeHWfv5Zoe 1clsum7xGW3wPmj1LxpkR9hrJX1suUTi5hDVJsYZEWddmXM7+Wx2oB6i4hRrogQLY4 T4UeE7pSgDkTj7/h1NbmMCsVDRcRRmh3/XxK4/H6fqGj32JpzfDXEu2sMf0RHz1oaf 04Yb1j1OFU4vw== Original-Received: from pastel (76-10-138-212.dsl.teksavvy.com [76.10.138.212]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8232F120867; Fri, 4 Feb 2022 14:43:52 -0500 (EST) In-Reply-To: <87tudemsrz.fsf@gmx.de> (Michael Albinus's message of "Fri, 04 Feb 2022 18:43:44 +0100") 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:226013 Archived-At: Michael Albinus [2022-02-04 18:43:44] wrote: > Stefan Monnier writes: >> Maybe a simpler option is to give them a recognizable name >> (e.g. including "preloaded" or "AL" or somesuch in their name)? >> >> In any case, those parts of the test47 are actually testing >> loadhist.el rather than Tramp, so I'd recommend you don't worry too much >> about those functions. >> >> I'd focus instead on the parts that verify proper functioning of the code >> you put in `tramp-unload-hook`. > > Will see. In fact, it tests already the functionality of the > unload-hooks, like cleaning up other hooks, and alike. Indeed it already does, and I just meant to clarify that I didn't mean to throw out the whole test47. >> PS: BTW, why is `tramp-unload-file-name-handlers` preloaded? >> It doesn't seem like it can be meaningfully used before Tramp is loaded. > > The name is a little bit misleading, it is rather a > `tramp-deactivate-file-name-handlers' functionality. > > It is autoloaded, because it is used in `tramp-autoload-file-name-handler', > which is also autoloaded. I guess the part I don't understand is why we need it there. It's called right before loading `tramp.el` but `tramp.el` will re-execute it anyway when it runs `tramp-register-file-name-handlers`, so it seems redundant. Stefan