Subject: bug#55278: json-parse-string

From: Philip Kaludercic <[email-masked]>
Date: Tue, 17 May 2022 19:12:16 +0000

Richard Stallman <[email-masked]> writes:

> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
>
>     > (unless (ignore-errors (equal [] (json-parse-string "[]")))
>     >   (warn "osm: libjansson is not available"))
>
> Assuming that now this warning will actually appear,
> it still has two problems.
>
> The text of the warning is not clear.  It fails to say what the
> practical consequences are: that OSM simply will not work.

> It should be an error, not a warning.  And I suggest text
> saying "OSM can't run, because Emacs was built without libjansson."

This has already been done, the current error message looks like

     Osm: Please compile Emacs with the required libraries, [list of libraries] needed to proceed