Simplify doctor's native JSON detection

This commit is contained in:
Henrik Lissner 2021-03-07 14:32:10 -05:00
parent f0d601d2ac
commit cf44c43f41

View file

@ -67,8 +67,7 @@ in."
(when EMACS27+
(print! (start "Checking for great Emacs features..."))
(unless (and (functionp 'json-serialize)
(string-match-p "\\_<JSON\\_>" system-configuration-features))
(unless (functionp 'json-serialize)
(warn! "Emacs was not built with native JSON support")
(explain! "Users will see a substantial performance gain by building Emacs with "
"jansson support (i.e. a native JSON library), particularly LSP users. "