Fix #2636: lsp init short circuits in Emacs <=26

This commit is contained in:
Henrik Lissner 2020-02-29 19:06:50 -05:00
parent 1ed06e68cc
commit 29650a67a2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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