GNU bug report logs - #63638
29.0.91; byte-compile-file + load-file => Invalid read syntax: "#"

Previous Next

Package: emacs;

Reported by: Bruno Barbier <brubar.cs <at> gmail.com>

Date: Mon, 22 May 2023 06:36:02 UTC

Severity: normal

Found in version 29.0.91

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Barbier <brubar.cs <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.91; byte-compile-file + load-file => Invalid read syntax: "#"
Date: Mon, 22 May 2023 08:35:37 +0200
[Message part 1 (text/plain, inline)]
Hi,

The code below works fine when evaluated, but emacs fails to load its
compiled version.

      (defmacro my-identity-macro ()
        (let ((fct (indirect-function 'identity)))
          `(lambda (x) (funcall ,fct x))))


      (defun my-identity-builder ()
        (my-identity-macro))

I can run it like this:

      (funcall (my-identity-builder) 2)
      => 2

      
But, if I compile it (byte-compile-file), emacs cannot load the
compiled version (load-file). It raises the error:

      Invalid read syntax: "#"

Emacs should fail to compile, or, it should load the compiled version.

I've attached the compiled version.

Bruno.


[bug.elc (application/octet-stream, attachment)]

This bug report was last modified 2 years and 27 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.