From: Lars Ingebrigtsen <larsi@gnus.org>
To: 53024@debbugs.gnu.org
Cc: monnier@iro.umontreal.ca
Subject: bug#53024: 29.0.50; Wishlist: Byte-compile loaddefs.el?
Date: Sat, 22 Jan 2022 13:27:08 +0100 [thread overview]
Message-ID: <874k5wj6qr.fsf@gnus.org> (raw)
In-Reply-To: <87ee5mdvqu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 05 Jan 2022 16:53:45 +0100")
Lars Ingebrigtsen <larsi@gnus.org> 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 <npostavs@gmail.com>
AuthorDate: Fri Jul 5 22:26:13 2019 -0400
Add commentary about #$ in autoload files
* 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’s 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’s value as variable is void: tramp-methods
make[3]: *** [Makefile:327: net/tramp-sh.elc] Error 1
In toplevel form:
net/tramp-smb.el:31:2: Error: Symbol’s value as variable is void: tramp-methods
make[3]: *** [Makefile:327: net/tramp-smb.elc] Error 1
In toplevel form:
net/tramp-sshfs.el:36:2: Error: Symbol’s 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’s value as variable is void: 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.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2022-01-22 12:27 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 15:53 bug#53024: 29.0.50; Wishlist: Byte-compile loaddefs.el? Lars Ingebrigtsen
2022-01-22 12:27 ` Lars Ingebrigtsen [this message]
2022-07-31 10:02 ` Lars Ingebrigtsen
2022-07-31 10:19 ` Lars Ingebrigtsen
2022-07-31 10:47 ` Lars Ingebrigtsen
2022-07-31 16:35 ` Lars Ingebrigtsen
2022-07-31 17:06 ` Andreas Schwab
2022-08-01 12:33 ` Lars Ingebrigtsen
2022-08-01 13:06 ` Eli Zaretskii
2022-08-02 9:52 ` Lars Ingebrigtsen
2022-08-02 11:17 ` Eli Zaretskii
2022-08-02 11:19 ` Lars Ingebrigtsen
2022-08-03 12:24 ` Lars Ingebrigtsen
2022-08-03 12:41 ` Lars Ingebrigtsen
2022-08-04 6:07 ` Lars Ingebrigtsen
2022-08-04 21:45 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05 11:46 ` Lars Ingebrigtsen
2022-08-05 12:18 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-05 12:22 ` Lars Ingebrigtsen
2022-08-05 13:44 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-06 12:10 ` Lars Ingebrigtsen
2022-08-04 16:31 ` Andreas Schwab
2022-08-04 16:37 ` Lars Ingebrigtsen
2022-08-04 17:10 ` Eli Zaretskii
2022-08-04 17:14 ` Lars Ingebrigtsen
2022-08-04 17:22 ` Eli Zaretskii
2022-08-05 11:44 ` Lars Ingebrigtsen
2022-08-05 12:57 ` Eli Zaretskii
2022-08-06 12:09 ` Lars Ingebrigtsen
2022-08-06 12:16 ` Eli Zaretskii
2022-08-06 12:20 ` Lars Ingebrigtsen
2022-08-04 18:08 ` Andreas Schwab
2022-08-04 18:11 ` Lars Ingebrigtsen
2022-08-04 19:15 ` Andreas Schwab
2022-08-04 19:20 ` Lars Ingebrigtsen
2022-08-04 20:17 ` Andreas Schwab
2022-08-04 20:31 ` Lars Ingebrigtsen
2022-08-04 20:57 ` Lars Ingebrigtsen
2022-08-05 5:44 ` Eli Zaretskii
2022-08-05 11:51 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874k5wj6qr.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=53024@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).