all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost <joostkremers@fastmail.fm>
To: fatiparty--- <help-gnu-emacs@gnu.org>
Subject: Re: osm requires json-parse-string
Date: Thu, 17 Mar 2022 11:40:45 +0100	[thread overview]
Message-ID: <e6ea2565-addd-4332-a3a1-45b95512b9a5@www.fastmail.com> (raw)
In-Reply-To: <9f54d627-add9-e5f5-4b1d-e92f3b77ef44@gmail.com>

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



      parent reply	other threads:[~2022-03-17 10:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e6ea2565-addd-4332-a3a1-45b95512b9a5@www.fastmail.com \
    --to=joostkremers@fastmail.fm \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.