Fix #4124: void-variable read-process-output-max

For Emacs 26 users, before this variable existed.
This commit is contained in:
Henrik Lissner 2020-10-21 21:09:15 -04:00
parent 562cb45ef5
commit 1811cae05c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -27,7 +27,9 @@ killing and opening many LSP/eglot-powered buffers.")
;; Only apply these settings once! ;; Only apply these settings once!
(unless +lsp--optimization-init-p (unless +lsp--optimization-init-p
(setq +lsp--default-read-process-output-max (setq +lsp--default-read-process-output-max
(default-value 'read-process-output-max) ;; DEPRECATED Remove check when 26 support is dropped
(if (boundp 'read-process-output-max)
(default-value 'read-process-output-max))
+lsp--default-gcmh-high-cons-threshold +lsp--default-gcmh-high-cons-threshold
(default-value 'gcmh-high-cons-threshold)) (default-value 'gcmh-high-cons-threshold))
;; `read-process-output-max' is only available on recent development ;; `read-process-output-max' is only available on recent development