Skip to content

Overriding default `max-lisp-eval-depth' in batch emacs processes #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions elpaca.el
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ The keyword's value is expected to be one of the following:
(let* ((default-directory (elpaca<-repo-dir e))
(emacs (elpaca--emacs-path))
(program `(let ((load-prefer-newer t)
(max-lisp-eval-depth ,max-lisp-eval-depth)
(gc-cons-percentage 1.0))
(require 'elpaca)
(normal-top-level-add-subdirs-to-load-path)
Expand Down Expand Up @@ -1478,6 +1479,7 @@ This is the branch that would be checked out upon cloning."
(elpaca (expand-file-name "elpaca/" elpaca-repos-directory))
(program (let (print-level print-circle)
(format "%S" `(progn (setq gc-cons-percentage 1.0
max-lisp-eval-depth ,max-lisp-eval-depth
,@(when (stringp autoloads)
`(generated-autoload-file ,autoloads)))
(elpaca-generate-autoloads
Expand Down Expand Up @@ -1547,6 +1549,7 @@ Loads or caches autoloads."
for build-dir = (and dep (elpaca<-build-dir dep))
when build-dir collect build-dir))
(program `(let ((gc-cons-percentage 1.0) ;; trade memory for gc speed
(max-lisp-eval-depth ,max-lisp-eval-depth)
,@(when (boundp 'native-comp-eln-load-path)
`((native-comp-eln-load-path ',native-comp-eln-load-path))))
(dolist (dir ',(cons default-directory dependency-dirs))
Expand Down