Skip to content

Commit 9372751

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 076388f commit 9372751

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)
@@ -1478,6 +1479,7 @@ This is the branch that would be checked out upon cloning."
14781479
(elpaca (expand-file-name "elpaca/" elpaca-repos-directory))
14791480
(program (let (print-level print-circle)
14801481
(format "%S" `(progn (setq gc-cons-percentage 1.0
1482+
max-lisp-eval-depth ,max-lisp-eval-depth
14811483
,@(when (stringp autoloads)
14821484
`(generated-autoload-file ,autoloads)))
14831485
(elpaca-generate-autoloads
@@ -1547,6 +1549,7 @@ Loads or caches autoloads."
15471549
for build-dir = (and dep (elpaca<-build-dir dep))
15481550
when build-dir collect build-dir))
15491551
(program `(let ((gc-cons-percentage 1.0) ;; trade memory for gc speed
1552+
(max-lisp-eval-depth ,max-lisp-eval-depth)
15501553
,@(when (boundp 'native-comp-eln-load-path)
15511554
`((native-comp-eln-load-path ',native-comp-eln-load-path))))
15521555
(dolist (dir ',(cons default-directory dependency-dirs))

0 commit comments

Comments
 (0)