From 29650a67a28692d73fa6088b47ad78df052ad5fc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 29 Feb 2020 19:06:50 -0500 Subject: [PATCH] Fix #2636: lsp init short circuits in Emacs <=26 --- modules/tools/lsp/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 0b2e4f7da..f65a68747 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -139,8 +139,8 @@ This also logs the resolved project root, if found, so we know where we are." (and arg (not (equal arg 1)))))) ;; read-process-output-max is only available on recent ;; development builds of Emacs 27 and above - (when (boundp 'read-process-output-max) - (setq-local read-process-output-max (* 1024 1024))) + (or (not (boundp 'read-process-output-max)) + (setq-local read-process-output-max (* 1024 1024))) (prog1 (lsp-mode 1) (setq-local lsp-buffer-uri (lsp--buffer-uri)) ;; Announce what project root we're using, for diagnostic purposes