bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34757: Invalid bytecode from byte compiler


From: Eli Zaretskii
Subject: bug#34757: Invalid bytecode from byte compiler
Date: Fri, 08 Mar 2019 15:18:31 +0200

> From: chuntaro <chuntaro@sakura-games.jp>
> Date: Tue, 5 Mar 2019 17:01:00 +0900
> 
> Invalid bytecode is output and error occurs when executed.
> 
> Byte compile the following code.
> 
> bug.el
> ----------------------------------------------------------------
> ;;; -*- lexical-binding: t; -*-
> 
> (let ((a 2))
>   (print 1)
>   (setq a 1))
> ----------------------------------------------------------------
> 
> $ emacs --batch -f batch-byte-compile bug.el
> 
> bug.elc
> ----------------------------------------------------------------
> ;ELC
> ...
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> 
> 
> (funcall 2 'print 1)
> 1
> ----------------------------------------------------------------
> 
> $ emacs --batch -l bug.elc
> Invalid function: 2

Why is that a problem?  The Lisp code is invalid, and the error
message says that much.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]