From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Yasuhiro Kimura <yasu@utahime.org>
Cc: 50285@debbugs.gnu.org
Subject: bug#50285: 28.0.50; Mew dosen't work correctly if .el files of Mew are native compiled
Date: Mon, 30 Aug 2021 17:02:08 -0400 [thread overview]
Message-ID: <jwvwno2acdw.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20210831.053846.366902917792575747.yasu@utahime.org> (Yasuhiro Kimura's message of "Tue, 31 Aug 2021 05:38:46 +0900 (JST)")
> Following error message is displayed in the echo area.
> "error in process sentinel: Invalid function: mew-filter"
This error message indicates that a call to `mew-filter` was compiled as
a function call, while `mew-filter` is a macro. This happens when
`mew-filter` is not defined at the time the call is compiled by
`bytecomp.el`.
When this problem shows up in a `.elc` file it means the `.elc` file was
miscompiled and the fault is usually attributed to the source code's
failure to make sure the macro was defined (e.g. by using (require 'mew-func)
somewhere earlier in the file).
In the present case, IIUC the `.elc` file itself is correct because
Mew's makefile compensates for the lack of (require 'mew-func) by using
an ad-hoc compilation script that makes sure the right files
(e.g. `mew-func`) are loaded as needed before the compilation of the
relevant code.
But the `.eln` file is not because when generating the `.eln` our code
starts again from the `.el` file and passes it again to `bytecomp.el`
but this time it's done outside of the control of the makefile, and it
so happens that `mew-func.el` was not loaded before compiling (again)
that call to `mew-filter`.
So we really have 3 problems here:
1- The code in Mew should not rely on the makefile rule for
correct compilation.
Fixing this would also make it easier to distribute Mew via ELPA
(where a similar problem shows up since package.el will compile the
.el files in an unspecified order which could thus result in the
same kind of miscompilation).
2- The generation of the `.eln` file should start from the `.elc` file
rather than from the `.el` file because we sometimes lack the
information needed to correctly re-generate the `.elc` file from the
`.el` file.
-- Stefan
next prev parent reply other threads:[~2021-08-30 21:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 20:38 bug#50285: 28.0.50; Mew dosen't work correctly if .el files of Mew are native compiled Yasuhiro Kimura
2021-08-30 21:02 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-08-31 12:05 ` Eli Zaretskii
2021-08-31 19:01 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-30 17:05 ` Andrea Corallo
2022-08-22 19:01 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwno2acdw.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=50285@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=yasu@utahime.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.