From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Newsgroups: gmane.emacs.help Subject: Re: osm requires json-parse-string Date: Thu, 17 Mar 2022 11:40:45 +0100 Message-ID: References: <875yocew5u.fsf@ucl.ac.uk> <9f54d627-add9-e5f5-4b1d-e92f3b77ef44@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35749"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4907-g25ce6f34a9-fm-20220311.001-g25ce6f34 To: fatiparty--- Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 17 12:00:57 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUnsE-00093h-M8 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 12:00:56 +0100 Original-Received: from localhost ([::1]:56098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUnsD-0005bU-LI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Mar 2022 07:00:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUnZH-00017f-18 for help-gnu-emacs@gnu.org; Thu, 17 Mar 2022 06:41:22 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUnZ4-0000jC-UY for help-gnu-emacs@gnu.org; Thu, 17 Mar 2022 06:41:09 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ECA545C0154 for ; Thu, 17 Mar 2022 06:41:05 -0400 (EDT) Original-Received: from imap45 ([10.202.2.95]) by compute1.internal (MEProxy); Thu, 17 Mar 2022 06:41:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=6ys/RM/LSpTPGj1chXKiLfUaICp/rPIY3hOxLg hAOTc=; b=XofGvPENX5tE5871T18FaYQCGbSC7IuXHFeJzdetCUrX52nVgoycdK +strk9eBqoze0FWMGLet5HOJYij9mbiPWA3pyqBivw2S10T//egWI8UoNwb6zD6f 4yVCb9GzoRLo0MyVxzQoeVrQuq5o+M1u4ZDAajibmNYyVpBSd2ZrN8Ndsu30ynR4 GWT0DaSBoUALwH8O3kc9v1MNUA78wGBmL8mx7KptPYFA+1jEMtbcmcod8Sf7xoNh 5ByXgXHeMP7pRl0pkxTGzLKKrKPAoNn3HxAY1qN/xpIapbUZ6vFIOTRQ/Lijk7es /pLGi9smskyO7HoefgtloIf5Txzg8hkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6ys/RM/LSpTPGj1ch XKiLfUaICp/rPIY3hOxLghAOTc=; b=PXyJo5Hug1QigZ+ZWAzmnCl44+pKfZAUm MhlDk0TyKwUdEoYoxUIb4yzcu0kL9mIc9/TWA48+/rVR1ACBEjw3UXU/RjwG/1gz OSVQcYHeIVa7I6/E99oSVUJcCOSh5dCWISQ5GY+0g5W9UYkVbNS8bThdB0T7Qcil i1gllgtrNA31ytCKN74Os2NJtwkjsIE258WRpxj5FuzmmU/pFnfRoDtIMsU/hUNH BpjXJwtZ47wck382ZMLElwvHugzOWSPbqFxKVLsMEOJPnjAS15EhX7nXTnQmPiTj oZh+dB6Q7cBfkzZYHlzm/Q38ZDHEH+/gmIXmZqOTulvKdv49A5nVA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefgedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpeflohhoshhtuceojhhoohhsthhkrhgvmhgvrhhssehfrghs thhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpedtffejgfetffevveektefgvdfghf eiveeftdeuvefhjeevffdulefhlefhgfekjeenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrih hlrdhfmh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id C89AA24A007C; Thu, 17 Mar 2022 06:41:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <9f54d627-add9-e5f5-4b1d-e92f3b77ef44@gmail.com> Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136634 Archived-At: 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