cli/doctor: fix native json detection

This commit is contained in:
Henrik Lissner 2020-08-12 16:01:10 -04:00
parent 93636c862b
commit 8bb47f96d8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -62,7 +62,7 @@ in."
(when EMACS27+
(print! (start "Checking for great Emacs features..."))
(unless (and (functionp 'json-serialize)
(string-match-p "\\<_JSON\\_>" system-configuration-features))
(string-match-p "\\_<JSON\\_>" system-configuration-features))
(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. "