Skip to content

Commit df721a8

Browse files
committed
Overriding default `max-lisp-eval-depth'
Some packages like yaml.el sligthly exceed the default `max-lisp-eval-depth' value of 1600, yielding an "Eager macro-expansion failure". Changing this variable's value had no effect on elpaca's batch emacs processes, so this patch explicitly passes the current `max-lisp-eval-depth' value to any batch processes.
1 parent 400eb4c commit df721a8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elpaca.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ The keyword's value is expected to be one of the following:
10941094
(let* ((default-directory (elpaca<-repo-dir e))
10951095
(emacs (elpaca--emacs-path))
10961096
(program `(let ((load-prefer-newer t)
1097+
(max-lisp-eval-depth ,max-lisp-eval-depth)
10971098
(gc-cons-percentage 1.0))
10981099
(require 'elpaca)
10991100
(normal-top-level-add-subdirs-to-load-path)
@@ -1477,6 +1478,7 @@ This is the branch that would be checked out upon cloning."
14771478
(elpaca (expand-file-name "elpaca/" elpaca-repos-directory))
14781479
(program (let (print-level print-circle)
14791480
(format "%S" `(progn (setq gc-cons-percentage 1.0
1481+
max-lisp-eval-depth ,max-lisp-eval-depth
14801482
,@(when (stringp autoloads)
14811483
`(generated-autoload-file ,autoloads)))
14821484
(elpaca-generate-autoloads
@@ -1546,6 +1548,7 @@ Loads or caches autoloads."
15461548
for build-dir = (and dep (elpaca<-build-dir dep))
15471549
when build-dir collect build-dir))
15481550
(program `(let ((gc-cons-percentage 1.0) ;; trade memory for gc speed
1551+
(max-lisp-eval-depth ,max-lisp-eval-depth)
15491552
,@(when (boundp 'native-comp-eln-load-path)
15501553
`((native-comp-eln-load-path ',native-comp-eln-load-path))))
15511554
(dolist (dir ',(cons default-directory dependency-dirs))

0 commit comments

Comments
 (0)