Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67559 - [emacs] Adding support for native JSON parsing

Attached to Project: Arch Linux
Opened by Ivan Deschenaux (idx) - Wednesday, 12 August 2020, 09:26 GMT
Last edited by Jürgen Hötzel (juergen) - Thursday, 13 August 2020, 18:39 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jürgen Hötzel (juergen)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 13
Private No

Details

Description:

Emacs 27.1 has introduced native support for JSON parsing, which drastically improves performance with some emacs packages (e.g. lsp-mode). This must be enabled by passing --with-json to ./configure.

I do not know of any downside to adding this by default, and have used abs to test it on my system, where I encountered no problem (jansson is required for compilation). Could this be included in the official package?

REFS
https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00237.html
https://emacs-lsp.github.io/lsp-mode/page/performance/


This task depends upon

Closed by  Jürgen Hötzel (juergen)
Thursday, 13 August 2020, 18:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  emacs-27.1-2
Comment by Jürgen Hötzel (juergen) - Wednesday, 12 August 2020, 19:24 GMT
Of Course. I will prepare the 27.1-2 release
Comment by pancho horrillo (pancho) - Thursday, 13 August 2020, 05:29 GMT
The option --with-json is on by default, it just requires the jansson library to be present when ./configure is run.

See https://www.gnu.org/savannah-checkouts/gnu/emacs/news/NEWS.27.1
Comment by Ivan Deschenaux (idx) - Thursday, 13 August 2020, 10:20 GMT
Thank you; I did not realise the option is on by default.

Just for clarity: support for native JSON parsing can be verified inside of emacs using "M-: (functionp 'json-serialize)". Doing so confirms that the feature is not active in the current build, so a new version of the package would still be welcome.
Comment by pancho horrillo (pancho) - Thursday, 13 August 2020, 10:36 GMT
Yes, I just meant that the only update required to the PKGFILE is to add 'jansson' to the depends array. New version of the package most welcome :-)

Loading...