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

To reply to this bug, email your comments to 63638 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63638; Package emacs. (Mon, 22 May 2023 06:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Barbier <brubar.cs <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 22 May 2023 06:36:02 GMT) Full text and rfc822 format available.

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 348 days ago.

Previous Next


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