Commit 9d3ec6a4 authored by Ryan C. Thompson's avatar Ryan C. Thompson

Prevent stack overflow on very long command lists.

In "el-get-start-process-list", increase "max-specpdl-size" by 100 for
each command in in the list. This allows
"el-get-start-process-list" (but not other functions) to recurse
indefinitely.

This is needed for the emacs-goodies-el recipe, which generates many
build commands and will overflow the default of max-specpdl-size
during the build.
parent 4ad42c3b
......@@ -388,7 +388,12 @@ makes it easier to conditionally splice a command into the list.
(error "el-get: %s %s" cname errorm))
(when cbuf (kill-buffer cbuf))
(if next
(el-get-start-process-list package next final-func)
;; Prevent stack overflow on very long command
;; lists. This allows
;; `el-get-start-process-list' (but not other
;; functions) to recurse indefinitely.
(let ((max-specpdl-size (+ 100 max-specpdl-size)))
(el-get-start-process-list package next final-func))
(when (functionp final-func)
(funcall final-func package)))))
;; async case
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment