GNU bug report logs - #77048
30.1; Macro `cl-load-time-value` malfunctioning at compile-time and runtime

Previous Next

Package: emacs;

Reported by: Bohong Huang <bohonghuang <at> qq.com>

Date: Sun, 16 Mar 2025 12:10:03 UTC

Severity: normal

Found in version 30.1

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Bohong Huang <bohonghuang <at> qq.com>
Cc: 77048 <at> debbugs.gnu.org
Subject: bug#77048: 30.1; Macro `cl-load-time-value` malfunctioning at compile-time and runtime
Date: Tue, 18 Mar 2025 14:00:17 -0400
>    In ltvt-test:
>    cl-load-time-value-test.el:41:4: Warning: reference to free variable
>        ‘--cl-load-time--281’

That's not an error, but a warning.

>    cl-load-time-value-test.el: Error: End of file during parsing

This usually means a missing closing paren somewhere.
My crystal ball tells me you're not using the same code as the one in
the Git repo you sent.

> However, my previous way of reproducing the issue was through
> `package-vc-install`, which can be successfully native-compiled.
> Confirmed by checking the function's documentation:
>
>    ltvt-test is an autoloaded interactive native-comp-function in
>    ‘cl-load-time-value-test.el’.
>
>    (ltvt-test)
>
>    Inferred type: (function nil t)
>
>    Not documented.
>
>    [back]
>
> Yet running the command reports the following error:
>
>    Debugger entered--Lisp error: (void-variable --cl-load-time--0)
>      ltvt-test()
>      funcall-interactively(ltvt-test)
>      command-execute(ltvt-test record)
>      execute-extended-command(nil "ltvt-test" nil)
>      funcall-interactively(execute-extended-command nil "ltvt-test" nil)
>      command-execute(execute-extended-command)

As long as I can't reproduce it here, I can't really
investigate further.


        Stefan





This bug report was last modified 90 days ago.

Previous Next


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