From 1811cae05c53150b883875e1013118604e4e8159 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Oct 2020 21:09:15 -0400 Subject: [PATCH] Fix #4124: void-variable read-process-output-max For Emacs 26 users, before this variable existed. --- modules/tools/lsp/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 3c77ad1da..c105ef365 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -27,7 +27,9 @@ killing and opening many LSP/eglot-powered buffers.") ;; Only apply these settings once! (unless +lsp--optimization-init-p (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 (default-value 'gcmh-high-cons-threshold)) ;; `read-process-output-max' is only available on recent development