* osm requires json-parse-string
@ 2022-03-17 10:00 Eric S Fraga
2022-03-17 10:05 ` Eric S Fraga
2022-03-17 10:08 ` Thibaut Verron
0 siblings, 2 replies; 6+ messages in thread
From: Eric S Fraga @ 2022-03-17 10:00 UTC (permalink / raw)
To: help-gnu-emacs
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?
--
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: osm requires json-parse-string
2022-03-17 10:00 osm requires json-parse-string Eric S Fraga
@ 2022-03-17 10:05 ` Eric S Fraga
2022-03-17 10:38 ` Robert Pluim
2022-03-17 10:08 ` Thibaut Verron
1 sibling, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2022-03-17 10:05 UTC (permalink / raw)
To: help-gnu-emacs
Ignore noise: it seems I need to actually build Emacs with json support.
--
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: osm requires json-parse-string
2022-03-17 10:00 osm requires json-parse-string Eric S Fraga
2022-03-17 10:05 ` Eric S Fraga
@ 2022-03-17 10:08 ` Thibaut Verron
2022-03-17 10:26 ` Eric S Fraga
2022-03-17 10:40 ` Joost
1 sibling, 2 replies; 6+ messages in thread
From: Thibaut Verron @ 2022-03-17 10:08 UTC (permalink / raw)
To: Eric S Fraga, help-gnu-emacs
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.
Best wishes,
Thibaut
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: osm requires json-parse-string
2022-03-17 10:08 ` Thibaut Verron
@ 2022-03-17 10:26 ` Eric S Fraga
2022-03-17 10:40 ` Joost
1 sibling, 0 replies; 6+ messages in thread
From: Eric S Fraga @ 2022-03-17 10:26 UTC (permalink / raw)
To: help-gnu-emacs
On Thursday, 17 Mar 2022 at 11:08, Thibaut Verron wrote:
> As far as I know, it is included in emacs, unless emacs was compiled
> with --without-json or --without-all.
Ah, true but only if the requisite library is available as well! I had
to delve into the configure script to figure out I needed to install the
jansson dev package.
All good now.
Thank you,
eric
PS - osm is fantastic! yet another thing I can do in Emacs.
--
Eric S Fraga with org 9.5.2 in Emacs 29.0.50 on Debian 11.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: osm requires json-parse-string
2022-03-17 10:08 ` Thibaut Verron
2022-03-17 10:26 ` Eric S Fraga
@ 2022-03-17 10:40 ` Joost
1 sibling, 0 replies; 6+ messages in thread
From: Joost @ 2022-03-17 10:40 UTC (permalink / raw)
To: fatiparty---
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-03-17 10:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-17 10:00 osm requires json-parse-string Eric S Fraga
2022-03-17 10:05 ` Eric S Fraga
2022-03-17 10:38 ` Robert Pluim
2022-03-17 10:08 ` Thibaut Verron
2022-03-17 10:26 ` Eric S Fraga
2022-03-17 10:40 ` Joost
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).