all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Zhiwei Chen <condy0919@gmail.com>
To: Campbell Barton <ideasman42@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Error "load: Symbol’s value as variable is void: \213" since 261d6afd6e6f3ba2bbf4db0d9ac57b0cbacc0137
Date: Sat, 06 Aug 2022 23:50:12 +0800	[thread overview]
Message-ID: <87zgghcqx7.fsf@gmail.com> (raw)
In-Reply-To: <CAEcf3Nwk7L-Eo4TwncyaS8NOD6pY-9SqL5vYswi_SuCKinSBsA@mail.gmail.com> (Campbell Barton's message of "Sat, 6 Aug 2022 12:05:33 +1000")

Campbell Barton <ideasman42@gmail.com> writes:

> Hi ever since 261d6afd6e6f3ba2bbf4db0d9ac57b0cbacc0137 I'm getting an
> error starting emacs,
> to be sure there isn't anything strange going on, this happens with a
> clean build, ELN removed (with/without native compilation), and with a
> freshly installed package directory.
>
> --- error output ---
> Debugger entered--Lisp error: (void-variable ‹)
>   eval-buffer(#<buffer  *load*-527550> nil
> "/opt/emacs/share/emacs/29.0.50/lisp/calc/calc-loaddefs.el.gz" nil t)
> ; Reading at buffer position 3
>   load-with-code-conversion("/opt/emacs/share/emacs/29.0.50/lisp/calc/calc-load..."
> "/opt/emacs/share/emacs/29.0.50/lisp/calc/calc-loaddefs.el.gz" nil t)
>   load("calc-loaddefs.el" nil t)
>   require(calc)
> --- snip ---
>
> This error happens to be triggered by evil-mode but if I disable evil
> mode it gets triggered by lsp-mode, so it doesn't seem specific to a
> single package,
> although `emacs -Q` works without problems.
>
> I bisected the error to:
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=261d6afd6e6f3ba2bbf4db0d9ac57b0cbacc0137
>
> Is this a known problem or is it worth a fill bug report?

I suspect you're the victim of `file-name-handler-alist' optimization
[1]. Since it sets `file-name-handler-alist' to nil, it can't unpack
*.el.gz on-the-fly and then eval it.

    $ hexdump /usr/share/emacs/29.0.50/lisp/files.el.gz -C | head -n1
    00000000  1f 8b 08 00 00 00 00 00  02 03 ec 5c ff 73 db 46  |...........\.s.F|

The '\213' (0x8b) is the second byte of an el.gz file.

[1]: https://github.com/doomemacs/doomemacs/blob/master/early-init.el#L31-L48

-- 
Zhiwei Chen



  parent reply	other threads:[~2022-08-06 15:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-06  2:05 Error "load: Symbol’s value as variable is void: \213" since 261d6afd6e6f3ba2bbf4db0d9ac57b0cbacc0137 Campbell Barton
2022-08-06  9:16 ` Stefan Kangas
2022-08-06 12:22 ` Lars Ingebrigtsen
2022-08-06 15:50 ` Zhiwei Chen [this message]
2022-08-07  4:19   ` Campbell Barton

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=87zgghcqx7.fsf@gmail.com \
    --to=condy0919@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=ideasman42@gmail.com \
    /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.