From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#50869: 28.0.50; tramp: void-function tramp-file-name-method--cmacro Date: Sun, 03 Apr 2022 17:44:55 +0200 Message-ID: <87pmlydvd4.fsf@gmx.de> References: <87tuhzcrje.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4296"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: shuguang79@qq.com, 50869@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 03 17:46:14 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 1nb2Qg-0000xM-6p for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 17:46:14 +0200 Original-Received: from localhost ([::1]:54392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nb2Qe-00064P-NA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 11:46:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48632) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb2QT-00064H-Ux for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 11:46:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nb2QT-0000c8-MC for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 11:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nb2QT-00033n-K6 for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 11:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Apr 2022 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50869 X-GNU-PR-Package: emacs Original-Received: via spool by 50869-submit@debbugs.gnu.org id=B50869.16490007148661 (code B ref 50869); Sun, 03 Apr 2022 15:46:01 +0000 Original-Received: (at 50869) by debbugs.gnu.org; 3 Apr 2022 15:45:14 +0000 Original-Received: from localhost ([127.0.0.1]:49298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb2Ph-0002FF-Qg for submit@debbugs.gnu.org; Sun, 03 Apr 2022 11:45:14 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb2Pe-00025b-IZ for 50869@debbugs.gnu.org; Sun, 03 Apr 2022 11:45:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649000697; bh=5+PeSj7kxPC+oXyG5gc2M0EZsW6xeWpf8mkhDQRmtZI=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=c6x5zHz6xOADQ4+lg5qQ6fAYDXr99pk6EnHZN3PGLDaNWc35ZanugznOg2JLf3g9K R5E8o8OFtEY2G5383308OPEWh15p7zFS/519/lma+RlF1hs1TniB+8s1MLpuVSMTmM NVGvomOCPFdQ0PhhJNszXAbkYtKDenX9LDEwInvk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.118.138]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1McYCb-1o8jjR4BIb-00cxUk; Sun, 03 Apr 2022 17:44:57 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 02 Apr 2022 17:09:13 -0400") X-Provags-ID: V03:K1:XjhFVMU9D27znYqJBF5YkY5rdpYKlhU3Detkzcz0btgD7zx58Oc AoJccB9RyLu4vujLTvSvyvB3GJOEkfrcXEFgbAfdxYJvBGLdYwsHxefBobGP+SUxXMnJ6DS VMQv8xepmDRD4KAsIVuwWtFJqmiz1hV4nlpN76M31JVAG3Z44F6nE3LVk+c4YUq3xTnOcCD qPG93IdR+9V++hnRYaVvA== X-UI-Out-Filterresults: notjunk:1;V03:K0:/6Uy4WZMZr0=:APVpkK9kTHHFXREeiQ+GOX zLoVNPfbzshwRc/3X44iKjI6kPKzeGWWFGqM4XOVvI1x4mDJ1/UMtN5MGpCaWc1pUQAx/87J1 4ghFPYZFkuWQYneeva1I+5Fe9Jwk5A3AXxrPOt3Fw0sr6W8ySJTpUIpVN/xqyDQjtrAN7qPI6 S9oZYYw288lYi0qch5F320GyMQGFX6SNr3Ii45aUK/ldZjMU20gWd70mzM/+PGJxadyqfJlmF qAHR/slWLnOqut1plIJestU+UwMoPGTp655vhbb6uxwPOYgH+yM2F9yx88DwEHKI2i/YVO8QF FuIjtu33DY4pivn+r2YNkk3k8YD0c7u2aOLORiWFAAy0QqZF0rlQa5Q/edWXTJTlKPs2toAha kX6oO3QKYUhv5+XkaboIpx8VHuY+68sPx8SB5DFCSPF4Y3Jqn+b5m605rWonkeMEXNu8yhevc iUXw39v94AIY1hXo2GcbWjfHTI3I1AegVMTXOKdhDWxZ175WRoZVI9y6Vk0Sw6vgYVziSvqKA HX+sYQviFzvWiBownXE6qHIK577Lzp6U233dmlFF5+d3lx8XKJyJHmgVusDgJnO1xRPBPxNDJ 68yitNdGbNNuGniYfw0JCdy9vt00pj71jUyxnQwj8Mq+3co87LiuaINLRJJCsek/gwB3yERMn MnAkkDSye258zn4LeI4v9JzfgrwUH3BFp8T+EKn2wVaqUBdMNfdi8MXEh+7AROi/ZadSsbGzu vQx7z3W/usad65NdM0YC2xm9TzqTeXKB+GWRGrPTGY5dMH1AOwXntK/XaIkakGx6BBT/XWxV 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:229360 Archived-At: Stefan Monnier writes: Hi Stefan, > Note: this is not a compile error. It's an error that happened during > expansion of a compiler-macro. These are optional, so those errors only > affect the performance of the code but shouldn't affect its behavior. > > IOW this sound more serious than it is. > > `tramp-file-name-method--cmacro` is supposed to be a function which > inlines the code of calls to `tramp-file-name-method`. > > More specifically `tramp-file-name-method--cmacro` is auto-generated > (and put on the `compiler-macro` property of the > `tramp-file-name-method` symbol) by the `cl-defsubst` used to define > `tramp-file-name-method`. > > So I guess the source of the error is that unloading `tramp` undefines > the functions (both `tramp-file-name-method--cmacro` and > `tramp-file-name-method`) but leaves the `compiler-macro` property of the > `tramp-file-name-method` symbol. > > We really should make it so package unloading knows how to undo > top-level `put`s. Honestly, I have no knowledge about the byte-compiler. I've reopened the bug, so you can work on it. > In the men time, the `;;;###tramp-autoload` cookie placed before the > `cl-defstruct` seems to trip over another bug when I try to build the > package here: > > Debugger entered--Lisp error: (scan-error "Containing expression ends prematurely" 12345819 12345820) > scan-sexps(12345782 3) > forward-sexp(3) > autoload-print-form((defvar cl-struct-tramp-file-name-tags)) > [...] > > Maybe it's a bug in the locally-hacked Emacs I'm using to do the build, > tho. Still, I suspect the cure might be not much better than the disease. I extended tramp-test47-unload, which unloads / reloads Tramp. No error, AFAICS. Feel free to fiddle with that test, in order to get it more trustworthy in reproducing the problem. > Stefan Best regards, Michael.