Questions tagged [byte-compilation]

is for the Emacs Lisp compiler in Emacs that compiles lisp code to byte-code for faster execution compared to uncompiled lisp code. Byte-compiled code is read by the byte-code interpreter.

13 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
103 views

How to build Emacs without byte-compiling Lisp files

Q:  Is there an option to build Emacs without byte-compiling the Lisp files? BACKGROUND:  The length of time needed to build Emacs makes debugging / developing an extremely slow process. For example,...
4
votes
0answers
85 views

Which Lisp objects are byte-compiled?

A compiled program and a source code can be interpreted differently at runtime. The issue is that some Lisp objects should not be modified because of the byte-compilation. Emacs Lisp manual: 2.7 ...
4
votes
0answers
1k views

byte-compile much slower in X (vs. -nw)

Setup Windows 10 host with X server (VcXsrv) Linux guest (Arch) in virtual machine (VMware) Benchmark (defmacro measure-time (&rest body) "Measure the time it takes to evaluate BODY." `(let ...
4
votes
0answers
41 views

A workflow for managing compiled elisp packages with different versions of emacs

I am using different versions of emacs, on different computers. On some of those (work computers) I don't really have a choice to update, whereas for my personal computers, I like to run the latest ...
4
votes
0answers
195 views

Is there an ELISP decompiler?

I'm thinking of writing one so that when I get those horrible tracebacks from bytecode files, I can better see where I was at. Is there one already? Are there any other tools for showing an error ...
3
votes
0answers
277 views

Byte-compiling a file loads macros with `(eval-and-compile)` but not `(eval-when-compile)`

I created a buffer, test1.el: (eval-when-compile (defmacro dummy-macro (_) nil) (dummy-macro s)) Trying to compile this file, I get the following errors: In toplevel form: test1.el:3:16:Warning:...
2
votes
0answers
64 views

byte-compiling in presence of pcase patterns

TIL that trying to compile anything with pcase matching in it may lead to an explosion of code generated during expansion. Even the most innocent looking patterns may generate hundreds of branches and ...
1
vote
0answers
284 views

byte-recompilation of files under a directory

As I move all my emacs.d between my machines using Git, and, obviously, I don’t version control byte-compiled files (*.elc), I sometimes get into a situation when my .el files are newer then the ...
1
vote
0answers
192 views

Compiled configuration cannot find package

I am trying to have configuration byte-compiled to improve performances further. The original code works with no issue. However, adding the optional compile argument: (require 'ob-tangle) (org-babel-...
0
votes
0answers
26 views

Flycheck and analysis at byte compile time

I have a trivial question related to annoyed Flycheck warnings. Why for such trivial code: (add-hook 'after-init-hook #'(lambda () (require 'server) (unless (...
0
votes
0answers
82 views

How to manually byte-compile a package?

Looking at the package installed under elpa directory I see that it have been byte compiled and the structure is different from the source. Consider the following example https://github.com/hlissner/...
0
votes
0answers
56 views

Slow package installation and multiple warnings

I have noticed that my emacs startup the first time while fetching all my packages using use-package and byte compiling everything is quite slow even though the number of packages is only 18. My ...
0
votes
0answers
64 views

Byte Compiling Functions Using `defalias` for `progn`

The following code: (defalias 'new-progn 'progn) (defun foo () (new-progn "foo")) (byte-compile 'foo) (foo) gives this error: Debugger entered--Lisp error: (invalid-function #<subr progn>) ...