Homebrew-emacs-plus: emacs-plus was not built with native JSON support?

Created on 23 Aug 2020  路  3Comments  路  Source: d12frosted/homebrew-emacs-plus

I installed emacs-plus as:

brew install emacs-plus

It works fine with doom-emacs until run testing with doom docor

It report warning that Emacs was not built with native JSON support.

> Checking your Emacs version...
> Checking for Emacs config conflicts...
> Checking for great Emacs features...
! Emacs was not built with native JSON support
  Users will see a substantial performance gain by building Emacs with jansson
  support (i.e. a native JSON library), particularly LSP users. You must
  install a prebuilt Emacs binary with this included, or compile Emacs with
  the --with-json option.
> Checking for private config conflicts...
> Checking for stale elc files...
> Checking Doom Emacs...

Is it a decent warning? emacs-plus not come with native json support?

Should I uninstall emacs-plus and re-install it with emacs-plus --with-json

question

Most helpful comment

Good point, I will remove that options from Emacs 27 and Emacs 28.

All 3 comments

Not sure about meaning for doom emacs, but if you wish to install with native json support, please use --with-jansson option. Check options section of README for other available options.

This should probably be an opt-out now that 27.1 defaults to its use.

https://www.masteringemacs.org/article/whats-new-in-emacs-27-1

The new configure option '--with-json' adds native support for JSON.
This uses the Jansson library.  The option is on by default; use
'./configure --with-json=no' to build without Jansson support.  The
new JSON functions 'json-serialize', 'json-insert',
'json-parse-string', and 'json-parse-buffer' are typically much faster
than their Lisp counterparts from json.el.

Good point, I will remove that options from Emacs 27 and Emacs 28.

Was this page helpful?
0 / 5 - 0 ratings