[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: osm requires json-parse-string
From: |
Joost |
Subject: |
Re: osm requires json-parse-string |
Date: |
Thu, 17 Mar 2022 11:40:45 +0100 |
User-agent: |
Cyrus-JMAP/3.5.0-alpha0-4907-g25ce6f34a9-fm-20220311.001-g25ce6f34 |
On Thu, 17 Mar 2022, at 11:08, Thibaut Verron wrote:
> On 17/03/2022 11:00, Eric S Fraga wrote:
>> The osm package requires json-parse-string which is not built-in to
>> Emacs, as far as I can see. Should the package indicate requirements
>> and/or auto-install them if using package-install?
>
> As far as I know, it is included in emacs, unless emacs was compiled
> with --without-json or --without-all.
>
> If the function is missing, as it is a C function, I don't know if there
> is a drop-in elisp replacement one could install as a fallback.
There is an Elisp library `json.el` that comes with Emacs, which is also
available in Emacs 26 (and perhaps earlier versions, dunno). But it's not a
drop-in replacement, because the functionality of the two isn't entirely
equivalent (and function names are different). So if `osm` isn't set up to work
with it as an alternative, native json support is gonna be necessary.
--
Joost Kremers
Life has its moments