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#53024: 29.0.50; Wishlist: Byte-compile loaddefs.el? Date: Sat, 22 Jan 2022 13:27:08 +0100 Message-ID: <874k5wj6qr.fsf@gnus.org> References: <87ee5mdvqu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23571"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: monnier@iro.umontreal.ca To: 53024@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 22 13:32:05 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 1nBFYq-0005x4-OD for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 13:32:04 +0100 Original-Received: from localhost ([::1]:37998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBFYp-0006Gy-Po for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 07:32:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBFUw-00039W-93 for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 07:28:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43072) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBFUv-0002dz-OW for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 07:28:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBFUv-0006mf-Mg for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 07:28:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 12:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53024 X-GNU-PR-Package: emacs Original-Received: via spool by 53024-submit@debbugs.gnu.org id=B53024.164285444126020 (code B ref 53024); Sat, 22 Jan 2022 12:28:01 +0000 Original-Received: (at 53024) by debbugs.gnu.org; 22 Jan 2022 12:27:21 +0000 Original-Received: from localhost ([127.0.0.1]:35975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBFUH-0006lb-6h for submit@debbugs.gnu.org; Sat, 22 Jan 2022 07:27:21 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:45614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBFUF-0006lM-BF for 53024@debbugs.gnu.org; Sat, 22 Jan 2022 07:27:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: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=r/aO7SNv8lqrD1v37F499cA11G/vG+WtlXaXCTA5nEQ=; b=Q6ofvT66v/pBdmT9Z88JswJP/I oV5Gfs3bXGS7JbWAON4vp4S+HkFe7qVTf6uIQnUVC/GZksY41ooUg5MeaB21v58GgJAS2Ah3WzfHb WOEXwJNywpYhKCh5UkD8BGaUOr1kpKcmkbvUB0vgmjErIblAYpv8R9NNP7VeGmH5XPpE=; 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 1nBFU5-0005Bq-4a; Sat, 22 Jan 2022 13:27:12 +0100 X-Now-Playing: Supertramp's _Crime of the Century_: "Crime of the Century" In-Reply-To: <87ee5mdvqu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 05 Jan 2022 16:53:45 +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:224826 Archived-At: Lars Ingebrigtsen writes: > Parts of 59732a83c8 (removing DOC file scanning for .el files) were > reverted because of loaddefs.el handling (see bug#52969). Stefan M > suggested the possibility of re-reverting that, but that would mean that > loaddefs.el would have to be byte-compiled, and it's unclear whether > that would lead to problems or not. Hm... the commment in autoload.el is: ";; no-byte-compile: t\n" ;; #$ is byte-compiled into nil. commit 1f7b602f843d82d2da46528c6cc2a16c794ca668 Author: Noam Postavsky AuthorDate: Fri Jul 5 22:26:13 2019 -0400 Add commentary about #$ in autoload files =20=20=20=20 * lisp/emacs-lisp/autoload.el (autoload-rubric): Add commentary about `#$' trick. Oh, it refers to this: + ;; Use the `#$' to indicate current file, from which + ;; we extract the directory name. Note that + ;; `package-quickstart-refresh' specifically replaces + ;; `#$', so any other tricks (e.g., `load-file-name') + ;; will not work for that case. "(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))\n= \n") Hm. Anyway, when if I remove the no-byte-compile, then the build does indeed break: In toplevel form: net/tramp-rclone.el:38:2: Error: Symbol=E2=80=99s value as variable is void= : tramp-methods make[3]: *** [Makefile:327: net/tramp-rclone.elc] Error 1 make[3]: *** Waiting for unfinished jobs.... In toplevel form: net/tramp-sh.el:35:2: Error: Symbol=E2=80=99s value as variable is void: tr= amp-methods make[3]: *** [Makefile:327: net/tramp-sh.elc] Error 1 In toplevel form: net/tramp-smb.el:31:2: Error: Symbol=E2=80=99s value as variable is void: t= ramp-methods make[3]: *** [Makefile:327: net/tramp-smb.elc] Error 1 In toplevel form: net/tramp-sshfs.el:36:2: Error: Symbol=E2=80=99s value as variable is void:= tramp-methods make[3]: *** [Makefile:327: net/tramp-sshfs.elc] Error 1 In toplevel form: net/tramp-sudoedit.el:37:2: Error: Symbol=E2=80=99s value as variable is vo= id: tramp-methods This is the simple patch I applied to test. diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index d0bf342b84..58df936dd9 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -408,7 +408,6 @@ autoload-rubric (file-name-sans-extension basename)))) ";; Local Variables:\n" ";; version-control: never\n" - ";; no-byte-compile: t\n" ;; #$ is byte-compiled into nil. ";; no-update-autoloads: t\n" ";; coding: utf-8-emacs-unix\n" ";; End:\n" I haven't tried debugging further, but it looks like it'll take some work to get this er working. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no