From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 May 2022 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 55278@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: rms@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165177590417472 (code B ref -1); Thu, 05 May 2022 18:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2022 18:38:24 +0000 Received: from localhost ([127.0.0.1]:46469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmgMp-0004Xk-Jp for submit@debbugs.gnu.org; Thu, 05 May 2022 14:38:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:41906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmgMn-0004Xc-SX for submit@debbugs.gnu.org; Thu, 05 May 2022 14:38:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgMl-0005a8-MP for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 14:38:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgMk-0001xC-UN for bug-gnu-emacs@gnu.org; Thu, 05 May 2022 14:38:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:Subject:To:From:mime-version:in-reply-to: references; bh=+apcOYWZqxHzq0S63kFF6vjhg+Qt3ttiawsTPUapu8k=; b=XGmwqpo+N97oQo PAm+j8LybD5hhRJwiGEQq2q2grFlDMcsUx6Vj5IEcab37VBFTHGlGUK/Gl9cfb7UlZk9vxmigUJv9 MHrmFU0XE7ln5iZYLy5dwW7ZH9V1HZhiskTcw2eRgkJBLu+3+AUBlLBiAPbr7/6JnFJ1b5UuIoa5d 6JCbw9288LtmC9a0QZSLJd7/mRra/j8EoSudfFFYlNyiG5fzgUZZKcFnVMTA2iaA5MV0JyeJDPz/t mxkJ6iQxto2iGfhSo8Gw3dpW9hcKRq+Cnfo6dROJP+I9NOgoUEfS8G34OHq1aPN+fN0rlrS7egd63 UcFK+T0vV793eo5Tixjg==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nmgMk-0001zv-ME; Thu, 05 May 2022 14:38:18 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman Message-Id: Date: Thu, 05 May 2022 14:38:18 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I did M-x osm-search RET London RET just after starting the package, and I got an error that function json-parse-string is undefined. None pf the Lisp sources in my checkout defines that function. Is it in some ELPA package? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.16.0) of 2022-04-13 built on freetop Repository revision: ed6237e039e6fb51229054d0fce74df074903f19 Repository branch: master System Description: Trisquel GNU/Linux Nabia (10.0) Configured using: 'configure 'CFLAGS=-O0 -g' --with-gnutls=ifavailable' Configured features: CAIRO DBUS FREETYPE GIF GLIB GPM GSETTINGS HARFBUZZ JPEG LIBOTF LIBSELINUX LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK2 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t gpm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: linux auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow emacsbug org-element avl-tree ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus nnheader range wid-edit ol-docview doc-view image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 ol rx org-keys oc org-compat org-macs org-loaddefs format-spec ispell cl-extra cal-move cal-menu calendar cal-loaddefs help-fns radix-tree cl-print debug backtrace find-func etags fileloop generator xref project mule-util unrmail epa-mail rmailsum jka-compr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check shr pixel-fill kinsoku url-file url-dired svg xml dom rmailkwd rmailout qp mailalias shell pcomplete thingatpt files-x grep compile comint ansi-color ring misearch multi-isearch quail help-mode dabbrev rmailmm message sendmail yank-media rmc puny rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux dired dired-loaddefs t-mouse term/linux view derived advice finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 810373 84371) (symbols 48 35124 37) (strings 32 115214 8073) (string-bytes 1 3031048) (vectors 16 74948) (vector-slots 8 1703386 84678) (floats 8 278 443) (intervals 56 100719 2724) (buffers 992 83)) [[[ 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. ]]] -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 May 2022 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165177814621083 (code B ref 55278); Thu, 05 May 2022 19:16:01 +0000 Received: (at 55278) by debbugs.gnu.org; 5 May 2022 19:15:46 +0000 Received: from localhost ([127.0.0.1]:46506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmgwz-0005Tz-VT for submit@debbugs.gnu.org; Thu, 05 May 2022 15:15:46 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmgwy-0005Tc-9b for 55278@debbugs.gnu.org; Thu, 05 May 2022 15:15:44 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgws-0000i5-SM for 55278@debbugs.gnu.org; Thu, 05 May 2022 15:15:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=qqEwvyQJNaFAfC1/PzwqKDkTLuO/Jav0cvcgtXuymvY=; b=D3/EIzgS1zMO SSzDDaBpkETbq7URlfPQUN30KNu1PPugMpfzwnav8xLiJu3ZwUfjAER8IVu63tCFa5XRnlS/m94Iz PTW1wgta0dnhfTj2+kN3AxgWLdzLj+eZHwbl18jnIvAChYj7TfjIXryeaGHts3RK4VG9p6QjqE8HZ rcK+HCH0iX/yjhsWUf/KGPxCBoDiqwHxjbIRwFQlquyYyza5GWv0qH5LHdI0bkeGLMcN7qR0fz4k1 yCXYhNsOYH1RV3QAKenbZtDFY7SJzRDiio4trIqZ2BHgEZRDS3YoUXpBK6SGmMZfHfZnbr2TOXJR4 7L1Lm8mRU3Jc4Fw3zf/3eQ==; Received: from [87.69.77.57] (port=2490 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmgwr-00037J-Kx; Thu, 05 May 2022 15:15:37 -0400 Date: Thu, 05 May 2022 22:15:23 +0300 Message-Id: <83v8uj23lg.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Richard Stallman on Thu, 05 May 2022 14:38:18 -0400) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Richard Stallman > Date: Thu, 05 May 2022 14:38:18 -0400 > > > I did M-x osm-search RET London RET > just after starting the package, and I got an error > that function json-parse-string is undefined. > > None pf the Lisp sources in my checkout defines that function. > Is it in some ELPA package? No, it's implemented in json.c in the Emacs sources. But to have that function defined, you need to build Emacs with libjansson, which is an optional dependency of Emacs. The OSM package says in its README: The package is available on GNU ELPA and can be installed with =package-install=. Note that osm.el requires Emacs 27 and depends on the external =curl= program. Emacs must be built with libxml, libjansson, librsvg, libjpeg and libpng support. The following is an example configuration which relies on =use-package=. Please take a look at the [[https://github.com/minad/osm/wiki][wiki]] for additional configuration. So it looks like you must to have those optional libraries installed and you must build Emacs with them, in order to use OSM. From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 May 2022 12:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: rms@gnu.org, 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165183935627372 (code B ref 55278); Fri, 06 May 2022 12:16:02 +0000 Received: (at 55278) by debbugs.gnu.org; 6 May 2022 12:15:56 +0000 Received: from localhost ([127.0.0.1]:47358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmwsF-00077P-LN for submit@debbugs.gnu.org; Fri, 06 May 2022 08:15:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmwsE-000777-0g for 55278@debbugs.gnu.org; Fri, 06 May 2022 08:15:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YQB+smMvQZ4yeHkiXg21N4esml/PtI2+yd2DEK9la9o=; b=jCAHnDXkJpuG/O20yoIypgpQ0l DZWet7utunrzTsyR8TxqChki9QW3DQr4iccZRRPQE9dNpOT9iYwCDSGoE9L9ijEZPxhaYh69sPBdQ y2+du78NlNk98Ru0d2sfWcUjVLY00BHdmc4iUEx0MXgID+p70TELZC0N8tOWHzbrGbVs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmws5-0006OI-Ix; Fri, 06 May 2022 14:15:47 +0200 From: Lars Ingebrigtsen References: <83v8uj23lg.fsf@gnu.org> X-Now-Playing: The Cure's _The Head On The Door_: "Sinking" Date: Fri, 06 May 2022 14:15:45 +0200 In-Reply-To: <83v8uj23lg.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 May 2022 22:15:23 +0300") Message-ID: <87zgjuluvi.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > So it looks like you must to have those optional libraries installed > and you must build Emacs with them, in order to use OSM. So this doesn't seem to be a bug, and I'm closing this bug report. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > So it looks like you must to have those optional libraries installed > and you must build Emacs with them, in order to use OSM. So this doesn't seem to be a bug, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri May 06 08:15:59 2022 Received: (at control) by debbugs.gnu.org; 6 May 2022 12:15:59 +0000 Received: from localhost ([127.0.0.1]:47361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmwsI-00077e-TO for submit@debbugs.gnu.org; Fri, 06 May 2022 08:15:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nmwsH-00077E-VH for control@debbugs.gnu.org; Fri, 06 May 2022 08:15:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MVIY7atB/z1pcyKf7yJGzTBhANEzMr9F4YJkmr7zhS4=; b=pNBt65JqGcj+/IgN46lPokViq8 HSswJYGwnYLm69y90lcttXdCV130heB6zARWsWvOb+TWyyTGzvPLRjoRTizUuQ5ClGqHVseeWWeyY A+KUm9LEZLdH5VbdEIeAWFcaX+i/syG5FbmeJhJ2cN7F73qRP4oy5w9+zjBTw2ig2bMY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmwsA-0006OS-Cp for control@debbugs.gnu.org; Fri, 06 May 2022 14:15:52 +0200 Date: Fri, 06 May 2022 14:15:49 +0200 Message-Id: <87y1zeluve.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55278 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 55278 notabug close 55278 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 55278 notabug close 55278 quit From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 May 2022 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165187918113139 (code B ref 55278); Fri, 06 May 2022 23:20:01 +0000 Received: (at 55278) by debbugs.gnu.org; 6 May 2022 23:19:41 +0000 Received: from localhost ([127.0.0.1]:50069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn7Ea-0003Pr-T3 for submit@debbugs.gnu.org; Fri, 06 May 2022 19:19:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn7EZ-0003Pe-5f for 55278@debbugs.gnu.org; Fri, 06 May 2022 19:19:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nn7ES-0001GM-Mb for 55278@debbugs.gnu.org; Fri, 06 May 2022 19:19:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=X0J3r9ra5nX4Xz14nK086jUneEiLFHNokbfmy/HwWCc=; b=GGgT5QmBgQYA NsJAPk9GoNazqC1JomqWcT4Brv6omQyu1w0i4xl+tgbrLUDMWXRQ2nTcT3F0e7kPRPJrEUtud2Jch qFjZa1Y+iCSTWkYaLAK/35H7Y7KEaXmVGnZXxxJO8r+0vfzzxuPIG8OuB8NpCTW5X8nQCjdeDx17d bQ1bxpoYhFTZxntKu9OglfxxW2NK9gt+zQmDuw3uI9KPp80A3qJ32bbtso2Q1MVK5/GqfpjcplB3H qiGLAbZ48suPzizbPu3PjptjfBvgbJ2GOFHRDm1sLqMFI19A2RuogiFU7ZUAfXrDNOX3T9Z7LTron DCOJJcmmgvvA3HrQtInlLA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nn7ES-0001jX-D1; Fri, 06 May 2022 19:19:32 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <83v8uj23lg.fsf@gnu.org> (message from Eli Zaretskii on Thu, 05 May 2022 22:15:23 +0300) References: <83v8uj23lg.fsf@gnu.org> Message-Id: Date: Fri, 06 May 2022 19:19:32 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > No, it's implemented in json.c in the Emacs sources. But to have that > function defined, you need to build Emacs with libjansson, which is an > optional dependency of Emacs. That is strange. If the function json-parse-string is defined in the Emacs sources, why compile it only if something else is enabled? Does OSM depend on anything about jansson other than json-parse-string? What does jansson do? -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2022 03:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Richard Stallman Cc: Eli Zaretskii , 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165189439217636 (code B ref 55278); Sat, 07 May 2022 03:34:01 +0000 Received: (at 55278) by debbugs.gnu.org; 7 May 2022 03:33:12 +0000 Received: from localhost ([127.0.0.1]:50169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnBBw-0004aO-Ha for submit@debbugs.gnu.org; Fri, 06 May 2022 23:33:12 -0400 Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:44545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnBBv-0004aA-5c for 55278@debbugs.gnu.org; Fri, 06 May 2022 23:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651894385; bh=XfrTl+8U/Zt8tMo79DhfPI6YieYKvoF1s14lt7uZ/CI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=VtuGTbbqjdV/Hvu5VKx7Ecl+XuOUMQHpZZdl3SlpxlvBfp4leJ27sCnNKYVtxvN0/6NQ8rUp0WZORb7UcxGWDIIlp7KyeF34fHkftG2m+iBtmqyWcgWAR2ktQeNoktA89Ikn3nwBpSSihB44HM7yZPnbkptLpk91ZyENTBIEWrJSZBE9zkrt+Ps9tc6ZUPnR2JvN9EiTXdbOGBf+jrwE84dOYkM2zQI4mptsUw/CaVA/sKYKlIe3p3KvefbdosGSyv/bRgHGnkX1Pnv3xWN9QdvQu82dQ/pf7lEi073HmjeyIG5FCzwXn6UcxPu0UZhUWsMS0rsHtk278kFRUqZSeQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1651894385; bh=5SeNINVRWrMKJgOeMX2PYXn+QDRqUxvxukIMYgPcYDK=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=oYVFiWmvFVI2mrIFgnQeJ0nFkN5QHBoLIyzj+CAsQHWVOp+a0UGf9+/bHkD5yAawkIW9aqqX7s8b+QOL+4+SKWBDmZ/Ms7Mcy1mIrMzyby1vk0kEH52+/lhM+wk2W04GATIrDZXtBi09kbuf/VZVtbcxn2GDREIdZnRYdHmArCaFPgfE6eULp3AsgtJc/oV5FNEe5ss/NsoKeUSSoO+s88hUfSwmlzVCh7cEUJ4QOXNuCzwjTQyRUZb2sOk5t6/JtoqwRaM1QwK8wZb2U4VIICBPu76jEQBJijoorAwatBbGuym5eI+0LkIus6T001ZXPGvsFEnOP8FnfPU5SxnPzw== X-YMail-OSG: 3LSlJsMVM1kmwS.zLbO3B3DBT1xSbZJ6zg..PUam_T3yqhC9KfmbGjkpN82DTZt 4LN_Z49Mn5Fqh0e5EyVM4PpZlj8DxTFEc3cuFVcfH0f8.eD4qpIzAB6H9V.3ulKhddHyVkcZf29f qXd.0teCYIOVBG_J4lIzSlst56wfcm8bDEmwX7cC8bKccG5OZCN03XKq0Oz6dp5TjeujaTR6_5X0 afCiQ.M8I3gKNBie615ABuPUwjQK5PMNy0tdjcIwmzvaOcABof_G7UsQmcgzueNaAYiKh3lbBJSR Qhn9PoNrUh2zQ1TB3BgKg5aSNgx5cXdBbaFemoy3g8kF03zW5vYLZeXhsJGjNvUTK4d0TrYvJ7Gj tjFLJSivHIOAyJ6fPeRAljAmi5KnhLWczgKcRor0zb4_T8nakku3_H2_fWmj4..S1MCkNsv.0VuS HbgwcXYPzYtur_C1dkLg4Dv5uajqDWaOgUYcC6vZFpiRvBPKnKNwDUqAOfqsUe_Q1oEZXt_qRbPD q4WtIc3VIambHmFofXYnNGsQ_PA09PJ.Cv0OrBPqfVOuaiScbtnlhdyu8f7vfluvWMn3aCz2R0Wx tNYmvy29hWuLwxbfmKj.T_vkRmoSZlX6gvgIU0egoM7UbJBwOjqA7mbMigiY3tqfoMLXnNSCWCmj rIgg.5H6tMxdZTaE8DLLFK71EwgzzbqvW2Gual7VFddMYir_AnseZ28lfUUPgC2jkg6l6ofYu4C7 DdNh6TtYOKCoIL6HkJaQ78JAjR3d2GsfVobsNuGpu.BTnq38Vo8s_nFkn_YCvYagesYR2OU2xu_X XK08Bohdjx.KIhdcrF0Q1j2eollVNnpUyWtH_9yl7oO2X3rdkK4ZPQideHaKZ..xETrX7EDAy5Uq 4P4TRzLGhEzfuVH5rFlVMmZCJWcJ73A3BnJCt8P04eVneyd8IEmSI1uzQg.D99Koua01IGggr9Xp ncLUI.UdPuEzkhEVeRarwhwA47IzEIAjx0nUrzUJ644CYHF4__kfvrn8V1bhHosgTWPxH3qoByJx qc0AQ_vccIXH8LhFV8.DwxqOAE7IYlBpS9N1UNVnjCVCgbnvp2a0JuOohSBdHu4f8Yo8PTFchKYI rAXm3MAz0yOxqM1IXX6IkqYV92nlnxAAsdiOPF_FEFfLx9VUZjB4J85VUgcqA1dnNofih.hIdd_0 uVKK_qPEKNe4aBvZBKol0RqzO8JDeDN3rHHvUKyBNmpJjZiUvqaLq1hxNVQkMPLQWkyhAl.EbhBU XaTCYedw65nK7fr9xr6yiAXrzL62YbsiQMNsTnE6gL_Mkm4x0ni6rhP9nV8BU8OL2eKo8KIqOSxD MoEkDeijKJVqDKkDlaKU6w1z_JlF3CHsE6cIC4TvMGmxKMmmxs6OaDHKO8Xma8dXgEb1CWtcQjZA vlJ1m0WLmY8nzqD8zlP5tymE2NTdDKncLyv3QtG3h1j6zEyJ81XxlQkx9oUF_8IUU53fR4yWV8ZO Ka6ja6GmxgASRBktBtjmsC0Ju7uWKBr2sF0XpMTkgyM9uTKOP.ccDTXdyemLmX.COMJbonNGHLSi 86i0QSzztwCjizy.PNXHcxAyHvmtmLHw4j5PCA5XCtF6wBvnUVoD.OOqZqQVHD5JWUYwsPTleQIs bpJlRFWMPaVNKO3b7yMeNNYu.RedtAJh56H25FP33G8AAoRI2Nb0W5hiMHHBXxOzSAjb2dKu4Tls XcRDDdW3A3Abb_GDOv0OiEXHFNuCdXpuRu_ZyahABeZe.7R0u32XHn3DbhdPYIKdu7YOG52mQg_j 26KV0ofsX5FOaK8Yhg3.4B3AhrYAtGSBppMNgCyIuP.DBtrRRoBlx6CdCmm753Z5W8JcC_g9zMdr HLF9k35t8VYlSONo54Yg9CXa51fTC8uzq5H9Rke80n2t8aD1BIpwHi2dGbUzb.SCdHoF.2krmtX. yTFemm67K7FA4BR58AxflrcxlRB4BmrCS.gu30YiDuEtwikzLp22BsViBc0jLdpUmO2i4RwrzpaL YALmglDOdTp0GYpEjjfb3NuhHx.l2ufoStT8ovm4GmdBg9QieHpn_s29VxYtziBhhj9TiYZ6.9Os ChAqVdP975V6ZiW9XsJmOguB.80_u.GlZvKR7rsm_8FvE13jr_pgyZJVxejPjLBTGJ76HbH_xy_i PP.9QL3uNSdd4JInhVXhPiVYffLAvlYUWwAbfg4H90qurGEV6LwcIKl8nKrGGPxtqiz5_0Ox_tF_ eKW34_KCpqq5LQBMxMpciw_MWhuoDxj97lD9DchARbXuew.NbYcFOOVGNtNFr8g4- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sat, 7 May 2022 03:33:05 +0000 Received: by hermes--canary-production-sg3-795d7b4d54-92ng7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2caa1c76e508fcb100e2c8b10dcbc94a; Sat, 07 May 2022 03:33:02 +0000 (UTC) From: Po Lu References: <83v8uj23lg.fsf@gnu.org> Date: Sat, 07 May 2022 11:32:56 +0800 In-Reply-To: (Richard Stallman's message of "Fri, 06 May 2022 19:19:32 -0400") Message-ID: <87y1ze6mqf.fsf@yahoo.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.20188 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 1085 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Stallman writes: > That is strange. If the function json-parse-string is defined in the > Emacs sources, why compile it only if something else is enabled? Jansson is a library for parsing JSON. Emacs provides two mechanisms for parsing JSON into Lisp data, one of which is based on the Jansson library, and the other is implemented in Lisp inside json.el. OSM uses the former, but it can trivially be made to use the latter: --- a/osm.el +++ b/osm.el @@ -39,6 +39,7 @@ (require 'bookmark) (require 'dom) +(require 'json) (eval-when-compile (require 'cl-lib) (require 'subr-x)) @@ -1376,14 +1377,12 @@ (defun osm--fetch-json (url) "Get json from URL." - (json-parse-string + (json-read-from-string (let ((default-process-coding-system '(utf-8-unix . utf-8-unix))) (shell-command-to-string (concat "curl " osm-curl-options " " - (shell-quote-argument url)))) - :array-type 'list - :object-type 'alist)) + (shell-quote-argument url)))))) ;;;###autoload (defun osm-search (search &optional lucky) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2022 06:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: rms@gnu.org Cc: 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.1651903727898 (code B ref 55278); Sat, 07 May 2022 06:09:02 +0000 Received: (at 55278) by debbugs.gnu.org; 7 May 2022 06:08:47 +0000 Received: from localhost ([127.0.0.1]:50246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnDcU-0000EQ-SJ for submit@debbugs.gnu.org; Sat, 07 May 2022 02:08:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnDcS-0000EC-0t for 55278@debbugs.gnu.org; Sat, 07 May 2022 02:08:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnDcM-0005xK-Qd for 55278@debbugs.gnu.org; Sat, 07 May 2022 02:08:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bHcLmsfklM2R1fcUX0ngo+aVGLqVvWg6iGWJrvMYt1U=; b=qygCv6Snwnhe 2Aq4TmOQyebin2JEz6+ylRPXcse9UM/osRCfHlXNZlcXRjj0wnyhmpuOh81Dfb9xVGGQEtamobQ1o oR1u9h2xZS17MDtT5Evi09aBB0mmFz7DGzWXOh5SjXscHSMetE61Ln4m/M0FOIXtkT0qNcCwRPdAe Z6bHDGZD8L4dEQ4cC8+UANarOBqvTZ3kGBCT0V+ZIqDc8V1hpUcBa1uVIRukWYNFbvg0enIGzJ3qr T5ZQp/iYQBbUlK2hKCPACwd2jWb/p/qBTpBgBLx7W1wxVt99JLY7VBFgh/+M6KDK7ENxrqWiTjDHE EuQpXZm/5/1xddb/yHL2wA==; Received: from [87.69.77.57] (port=4145 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnDcL-0000SX-7v; Sat, 07 May 2022 02:08:37 -0400 Date: Sat, 07 May 2022 09:08:28 +0300 Message-Id: <83mtftzxgj.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Richard Stallman on Fri, 06 May 2022 19:19:32 -0400) References: <83v8uj23lg.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Richard Stallman > Cc: 55278@debbugs.gnu.org > Date: Fri, 06 May 2022 19:19:32 -0400 > > > No, it's implemented in json.c in the Emacs sources. But to have that > > function defined, you need to build Emacs with libjansson, which is an > > optional dependency of Emacs. > > That is strange. If the function json-parse-string is defined in the > Emacs sources, why compile it only if something else is enabled? Because the actual implementation is in the libjansson library; the Emacs sources only wrap that by a glue to allow use to use JSON with Emacs Lisp objects. > Does OSM depend on anything about jansson other than json-parse-string? > What does jansson do? The library implements most of JSON handling. From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: 29.0.50; OSM package Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 May 2022 23:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.1651964930554 (code B ref 55278); Sat, 07 May 2022 23:09:02 +0000 Received: (at 55278) by debbugs.gnu.org; 7 May 2022 23:08:50 +0000 Received: from localhost ([127.0.0.1]:53085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnTXe-00008s-IT for submit@debbugs.gnu.org; Sat, 07 May 2022 19:08:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnTXc-00008Q-29 for 55278@debbugs.gnu.org; Sat, 07 May 2022 19:08:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnTXW-0000P2-Ro for 55278@debbugs.gnu.org; Sat, 07 May 2022 19:08:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=05WKB+xlfmdlhmQhf/ytuh3rBJP8XXZPHLfM9xQxnhI=; b=hqJEctJejawk e2iPZfZH+PTL1mJkTzpG3zR+TxNzrS7kcd+PUlC9ReuR41Izljc56IA1nZQE1Fr4XvVNxMlDRFbRD CEDcPF56oW+aD1XgM6fLlmhXjWKxlDeFLzGeMq3F0IE//Q/iBkHxvHW/LMvXotzXhpQNQm/l2pBcX uGTJuPSmKO2QamnK6IcqYYLD9EalYXCBBnaDZDjJOk2Q3LCeq2auDI2xyg14esYyUrm719XoqMkkE a0bBkx4NyLvvhxrbFPmRYVTx84tOoJtMxLQdLv0iCO298MTJmHstIcslM+DMPIWCvVBIua1z7sWgc sMG97lLFIebVrQexbFbvPA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nnTXV-0003vh-P8; Sat, 07 May 2022 19:08:41 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <83mtftzxgj.fsf@gnu.org> (message from Eli Zaretskii on Sat, 07 May 2022 09:08:28 +0300) References: <83v8uj23lg.fsf@gnu.org> <83mtftzxgj.fsf@gnu.org> Message-Id: Date: Sat, 07 May 2022 19:08:41 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > Because the actual implementation is in the libjansson library; the > Emacs sources only wrap that by a glue to allow use to use JSON with > Emacs Lisp objects. That makes sense, by itself. But the end result is that the proper functioning of a user-level feature depends on compiling Emacs with a special library that most users have never heard of. If Emacs is compiled without libpng and therefore can't display png files, that will make sense to the user, because the user can see the relationship between one and the other. Users will accept that. But users won't see any relationship between Open Street Map and libjansson. They will say, "How was I supposed to know that???" I think we had better fix this somehow. Po Lu wrote: > Jansson is a library for parsing JSON. Emacs provides two mechanisms > for parsing JSON into Lisp data, one of which is based on the Jansson > library, and the other is implemented in Lisp inside json.el. > OSM uses the former, but it can trivially be made to use the latter: > --- a/osm.el > +++ b/osm.el > @@ -39,6 +39,7 @@ > (require 'bookmark) > (require 'dom) > +(require 'json) > (eval-when-compile > (require 'cl-lib) > (require 'subr-x)) > @@ -1376,14 +1377,12 @@ > (defun osm--fetch-json (url) > "Get json from URL." > - (json-parse-string > + (json-read-from-string > (let ((default-process-coding-system '(utf-8-unix . utf-8-unix))) > (shell-command-to-string > (concat > "curl " osm-curl-options " " > - (shell-quote-argument url)))) > - :array-type 'list > - :object-type 'alist)) > + (shell-quote-argument url)))))) How about making osm.el determine whether the C-level one is available, and use the fastest available one? Or perhaps define a common interface for the two, so we only need to document that interface. That would simplify Emacs overall. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string References: In-Reply-To: Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2022 08:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: 55278@debbugs.gnu.org Cc: Philip Kaludercic , rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165199937925105 (code B ref 55278); Sun, 08 May 2022 08:43:02 +0000 Received: (at 55278) by debbugs.gnu.org; 8 May 2022 08:42:59 +0000 Received: from localhost ([127.0.0.1]:53383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nncVH-0006Wq-3C for submit@debbugs.gnu.org; Sun, 08 May 2022 04:42:59 -0400 Received: from server.qxqx.de ([178.63.65.180]:58193 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nncVE-0006Wd-LT for 55278@debbugs.gnu.org; Sun, 08 May 2022 04:42:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:Subject:From:Cc:To :MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YCnRbrhiDVArTyzXmR3WVt4Zrzw1zDklR95YrmS8Jwg=; b=Uo9qP1b59CRAgZ/AoZCZQVQZdz AgOCj4tQhIEjndW3aVjsJEqX0Sm2LZr1icywlz/RKfTzr8TJ18FKhbT2e3lGNB3/PaYxO211PMZ9Y eJ9VcCKa0MdBDFuNVBPdaPXrmuSKvhhcq8xnRkGFG4/NpCOx3M88JHfNTTFbT8eQG1tg=; Message-ID: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> Date: Sun, 8 May 2022 10:42:48 +0200 MIME-Version: 1.0 Content-Language: en-US From: Daniel Mendler Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Regarding `json-parse-string` - the `compat` package, which is available on GNU ELPA ensures that `json-parse-string` is always available. If you install that, the problem should be fixed. I've talked to Philip (compat maintainer) about including the `json-parse-string` fallback directly into Emacs. This should simply Emacs itself slightly, since multiple packages in Emacs, among them python.el and jsonrpc.el, currently have to check for the availability of the libjansson-APIs and implement their own fallback. Daniel From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 May 2022 23:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Daniel Mendler Cc: philipk@posteo.net, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165205319330779 (code B ref 55278); Sun, 08 May 2022 23:40:01 +0000 Received: (at 55278) by debbugs.gnu.org; 8 May 2022 23:39:53 +0000 Received: from localhost ([127.0.0.1]:55509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnqVF-00080N-6G for submit@debbugs.gnu.org; Sun, 08 May 2022 19:39:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnqVD-000809-3Q for 55278@debbugs.gnu.org; Sun, 08 May 2022 19:39:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnqV7-0004JL-CO; Sun, 08 May 2022 19:39:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=j8KiloMCC9VPuffiwD3pQl4DoxoJ+YkM5921mPYzwcg=; b=rn5ZnyW6CZeD IkeC559ZLk1dksAGVm2bxQujqV+Gygk4Bei1AUOQRqhAhHaOsybRKgttZwWNBTGYzIwzGpoZDo2nT RtqIDgG+NH1v0jXKixrEJVZQk9Mn9MrqroDnVLv+68A0llH1GbPqdGMNGVehquK4IjGQcEMM2JPLP +Kq/MdCqUvZ3tO+ZBgQvzdl2qPyodIvMl249IacZ8sXHL0AvSW9rUXEFpSM/gp9PbwZI7jJj1DDN3 u5vsZopwLSOuj/mq/P5lJKny6f5K6K8hnyS6Ptm9BhZ0CSKSSn6cX/3DnymY4JeL5kK+y90OuSBkd YVTL5x28SLRA9gGOtzFLSA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nnqV7-0006eo-2m; Sun, 08 May 2022 19:39:45 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> (message from Daniel Mendler on Sun, 8 May 2022 10:42:48 +0200) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> Message-Id: Date: Sun, 08 May 2022 19:39:45 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > This should simply Emacs itself slightly, since multiple > packages in Emacs, among them python.el and jsonrpc.el, currently have > to check for the availability of the libjansson-APIs and implement their > own fallback. I agree that we should implement some built-in fallback mechanism so that it works for all packages that use json parsing. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 10:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Richard Stallman Cc: Daniel Mendler , philipk@posteo.net, 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.16520920659335 (code B ref 55278); Mon, 09 May 2022 10:28:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:27:45 +0000 Received: from localhost ([127.0.0.1]:56284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0cC-0002QV-Sd for submit@debbugs.gnu.org; Mon, 09 May 2022 06:27:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0cB-0002QI-6Z for 55278@debbugs.gnu.org; Mon, 09 May 2022 06:27:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=NvP8Nus7gCf3+S53nQHjbQ7eqA17zDZ+ERIYEmaWYV0=; b=soz254b1YbebnMtF/iamf/RT7S /YlEL5CxLT4DhcnujJF9lXw1JAeQGbJMNg7vG2ayrrg3+RUDO+ztGNE8ibIfIvr3KkVwzm06atAJW HdIFRwFMlgAYtVg6JxnVfHFbe03/uVJ3TvBVJQn3UgV4re9FU7nlxK1tyx7HW05p05SE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no0bw-0004cP-4F; Mon, 09 May 2022 12:27:35 +0200 From: Lars Ingebrigtsen References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUYLokiNYkHHYFK U5Whp757hK7l5NqnKjuaK03QJSvnJykoLHpgNmsYKn3///+HV1tMAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YFCQoYH7ulgr8AAAFHSURBVDjLlZRLTsMwEIZnEPLOki2VXIAeAIjYF4ktUmnZIlHR5goN N+gRmp4AsWLPkiVepAfwXRiPk5LEU4n+VaRqvszT4wCQrAVrgGXoB2jJEsxBBtEwiMLw8PsGoaPL K46BxrahGo1vgKPBwB7B0MhgBrGABMyBHSwOgHoCIU7wuKe0EhoX1AkKQBVA3R0BUrUR2BMAnhdx tj1j48Gy7WF0QuWka5RylLuPdwmYcldt4T/AHsCb7PFZrqttmmMJP5tKAitwm7UcypWVALIlfMnl rmK5OBxk9ho8qPMETCD/ds6lOaYgK7vj8zAJUHNedpCAEVdOPfbA2R+YkllYOKNmAPImPjMXwIu4 oNTHIr1l0WNxpHP1cCoY9ePrw7+LfdtHvzh9W0P3W6F93cwmr2m42F4D7VvAMeiO84novfeB6Np7 jfgLnydHi4QKkrgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMDlUMTA6MjQ6MzArMDA6MDCD OtM4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTA5VDEwOjI0OjMwKzAwOjAw8mdrhAAAAABJ RU5ErkJggg== X-Now-Playing: Minny Pops's _Sparks in a Dark Room_: "Trance" Date: Mon, 09 May 2022 12:27:27 +0200 In-Reply-To: (Richard Stallman's message of "Sun, 08 May 2022 19:39:45 -0400") Message-ID: <87o8079f1s.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Stallman writes: > I agree that we should implement some built-in fallback mechanism > so that it works for all packages that use json parsing. The two libraries aren't really compatible without reparsing the entire parse tree returned by them. For instance, the C library returns: Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Richard Stallman writes: > I agree that we should implement some built-in fallback mechanism > so that it works for all packages that use json parsing. The two libraries aren't really compatible without reparsing the entire parse tree returned by them. For instance, the C library returns: (json-parse-string "null") => :null While json.el says: (json-read-from-string "null") => nil Libraries like osm.el depend on the former type, and it parses a lot of data, making compat transformations prohibitively slow. We'd be doing our users a disservice if we were to just be slow here instead of telling them the real story: Build your Emacs with jansson support, already. (This happens by default if you have the library installed.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 10:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Lars Ingebrigtsen , Richard Stallman Cc: Philip Kaludercic , 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165209281919224 (code B ref 55278); Mon, 09 May 2022 10:41:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:40:19 +0000 Received: from localhost ([127.0.0.1]:56309 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0oN-000500-4e for submit@debbugs.gnu.org; Mon, 09 May 2022 06:40:19 -0400 Received: from server.qxqx.de ([178.63.65.180]:39377 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0o7-0004z2-3N for 55278@debbugs.gnu.org; Mon, 09 May 2022 06:40:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=P6pejEQ/UqpcURPLE4sUjon3baFFjDMRSisdiM0cXHM=; b=gq9l1zQmT2Gmw3SpY/QMiJWlOV fYSYCOv0GfypykB9RVQPoSQUnDloqEGKWPmbWlE/lC37t3X4Ty84BUMZpWsZuxcQ4uPLEFxiXVD9Q BR7EUVb2YfDbSeVd3UeJ4LHYOsSCWjL+HFPXlszS5UJfRi9LkAUIzsMP3e8yXUEbV/vU=; Message-ID: <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> Date: Mon, 9 May 2022 12:39:54 +0200 MIME-Version: 1.0 Content-Language: en-US References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> From: Daniel Mendler In-Reply-To: <87o8079f1s.fsf@gnus.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 5/9/22 12:27, Lars Ingebrigtsen wrote: > Richard Stallman writes: > >> I agree that we should implement some built-in fallback mechanism >> so that it works for all packages that use json parsing. > > The two libraries aren't really compatible without reparsing the entire > parse tree returned by them. For instance, the C library returns: The json-parse-string implementation in compat.el should be compatible as far as I understood Philip and it relies on json.el. > Libraries like osm.el depend on the former type, and it parses a lot of > data, making compat transformations prohibitively slow. We'd be doing > our users a disservice if we were to just be slow here instead of > telling them the real story: Build your Emacs with jansson support, > already. (This happens by default if you have the library installed.) Yes, that's a good point. Should we rather bail out or try to do our best by falling back to a slower implementation? For example eww bails out if libxml is missing, probably rightly so. In osm-mode I have a list of requirements which must be satisfied before it can be used reasonably. These requirements are also listed in the README and in the Commentary of the package. (unless (display-graphic-p) (warn "osm: Graphical display is required")) (dolist (type '(svg jpeg png)) (unless (image-type-available-p type) (warn "osm: Support for %s images is missing" type))) (unless (libxml-available-p) (warn "osm: libxml is not available")) (unless (ignore-errors (equal [] (json-parse-string "[]"))) (warn "osm: libjansson is not available")) Daniel From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 10:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Daniel Mendler Cc: philipk@posteo.net, Richard Stallman , 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165209313722014 (code B ref 55278); Mon, 09 May 2022 10:46:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:45:37 +0000 Received: from localhost ([127.0.0.1]:56325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0tU-0005iW-IZ for submit@debbugs.gnu.org; Mon, 09 May 2022 06:45:37 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no0tK-0005ST-MH for 55278@debbugs.gnu.org; Mon, 09 May 2022 06:45:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HDiqvkmd+mBBYPt1bisLTByGytxZ6Aj6gAs+ZSMgiAI=; b=IWWVOc+C7UQmgYB0Bzp3pTYMZM OFl780Kx+JtWU08/9bPtaKF8dQR3ewS5J4Mn9M9JosvaQTHQHTflSDUr7h4mMIBiSHApNNeFeoKTb DGp82cOhr4wCY+pmIE/89lEG3OyNj65DBUsjaPd1zTMdyYiVSdbe+jmWXYXUZTnmWkPM=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no0tA-0004lQ-SI; Mon, 09 May 2022 12:45:19 +0200 From: Lars Ingebrigtsen References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEUYLokiNYkHHYFK U5Whp757hK7l5NqnKjuaK03QJSvnJykoLHpgNmsYKn3///+HV1tMAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+YFCQoYH7ulgr8AAAFHSURBVDjLlZRLTsMwEIZnEPLOki2VXIAeAIjYF4ktUmnZIlHR5goN N+gRmp4AsWLPkiVepAfwXRiPk5LEU4n+VaRqvszT4wCQrAVrgGXoB2jJEsxBBtEwiMLw8PsGoaPL K46BxrahGo1vgKPBwB7B0MhgBrGABMyBHSwOgHoCIU7wuKe0EhoX1AkKQBVA3R0BUrUR2BMAnhdx tj1j48Gy7WF0QuWka5RylLuPdwmYcldt4T/AHsCb7PFZrqttmmMJP5tKAitwm7UcypWVALIlfMnl rmK5OBxk9ho8qPMETCD/ds6lOaYgK7vj8zAJUHNedpCAEVdOPfbA2R+YkllYOKNmAPImPjMXwIu4 oNTHIr1l0WNxpHP1cCoY9ePrw7+LfdtHvzh9W0P3W6F93cwmr2m42F4D7VvAMeiO84novfeB6Np7 jfgLnydHi4QKkrgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDUtMDlUMTA6MjQ6MzArMDA6MDCD OtM4AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA1LTA5VDEwOjI0OjMwKzAwOjAw8mdrhAAAAABJ RU5ErkJggg== X-Now-Playing: Minny Pops's _Sparks in a Dark Room_: "Blue Roses" Date: Mon, 09 May 2022 12:45:15 +0200 In-Reply-To: <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> (Daniel Mendler's message of "Mon, 9 May 2022 12:39:54 +0200") Message-ID: <8735hj9e84.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Daniel Mendler writes: > In osm-mode I have a list of requirements which must be satisfied before > it can be used reasonably. These requirements are also listed in the > README and in the Commentary of the package. > > (un [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Daniel Mendler writes: > In osm-mode I have a list of requirements which must be satisfied before > it can be used reasonably. These requirements are also listed in the > README and in the Commentary of the package. > > (unless (display-graphic-p) > (warn "osm: Graphical display is required")) > (dolist (type '(svg jpeg png)) > (unless (image-type-available-p type) > (warn "osm: Support for %s images is missing" type))) > (unless (libxml-available-p) > (warn "osm: libxml is not available")) > (unless (ignore-errors (equal [] (json-parse-string "[]"))) > (warn "osm: libjansson is not available")) Perhaps it should be signalling errors here instead of warnings? (And it would probably be nice if it collected all the requirements and said "Error: Need libjansson, libxml and" etc in one go.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 10:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Lars Ingebrigtsen Cc: philipk@posteo.net, Richard Stallman , 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165209386729486 (code B ref 55278); Mon, 09 May 2022 10:58:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:57:47 +0000 Received: from localhost ([127.0.0.1]:56345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no15G-0007fW-Q7 for submit@debbugs.gnu.org; Mon, 09 May 2022 06:57:46 -0400 Received: from server.qxqx.de ([178.63.65.180]:34999 helo=mail.qxqx.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1no15F-0007fI-HW for 55278@debbugs.gnu.org; Mon, 09 May 2022 06:57:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=qxqx.de; s=mail1392553390; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=vCFLS+RXs7HM1rtWWs3OnvZsnmmQwLi9H1qDmZMlh88=; b=gvNXaLaq+WafxS12yVIpJliMK/ I/XYlj1tPxES4ZpzD/AzpDmqfROK+0+zVy/NSJmYA5LnIa5L3X3MqLqWhWDoHN9j3onsjt6mXQbf0 Gr2arYvTHD2FWxS0K1gXYAAgZbotcKsrEKjbQWUUJ+eAz8yRsKACQnVButBBBLjrVzlU=; Message-ID: Date: Mon, 9 May 2022 12:57:37 +0200 MIME-Version: 1.0 Content-Language: en-US References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> <8735hj9e84.fsf@gnus.org> From: Daniel Mendler In-Reply-To: <8735hj9e84.fsf@gnus.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On 5/9/22 12:45, Lars Ingebrigtsen wrote: > Daniel Mendler writes: > >> In osm-mode I have a list of requirements which must be satisfied before >> it can be used reasonably. These requirements are also listed in the >> README and in the Commentary of the package. >> >> (unless (display-graphic-p) >> (warn "osm: Graphical display is required")) >> (dolist (type '(svg jpeg png)) >> (unless (image-type-available-p type) >> (warn "osm: Support for %s images is missing" type))) >> (unless (libxml-available-p) >> (warn "osm: libxml is not available")) >> (unless (ignore-errors (equal [] (json-parse-string "[]"))) >> (warn "osm: libjansson is not available")) > > Perhaps it should be signalling errors here instead of warnings? (And > it would probably be nice if it collected all the requirements and said > "Error: Need libjansson, libxml and" etc in one go.) Okay, I will do that. Daniel From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Lars Ingebrigtsen Cc: mail@daniel-mendler.de, philipk@posteo.net, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165213844713450 (code B ref 55278); Mon, 09 May 2022 23:21:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 23:20:47 +0000 Received: from localhost ([127.0.0.1]:59704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgC-0003UZ-8Y for submit@debbugs.gnu.org; Mon, 09 May 2022 19:20:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgA-0003UJ-CY for 55278@debbugs.gnu.org; Mon, 09 May 2022 19:20:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noCg5-0007hK-09; Mon, 09 May 2022 19:20:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=VWI/joHYKC3V1KdLsVFBE4V3LnohnaFBCgc/+HqjePU=; b=Rk4qOBKA4xAm znWwMWa+wRbbt5Jwdlznnpp5Z9RluKUETIJg75VoLW8DDNxpYRb+/dDWqsnvNJflaoqKeBiRbeE8H xFjcd5v058kA81a3pCcaH8oB0ez6nqTRHpgbFfxPmBt4j75xcVdrCyg/YDK/0s52t0pdlsvrIiPNY SZiCmLFqyayg1o8dQGfdE3NmzaGuzLUocfg4Z1qkaLm06Ht37uvxDMZDfg2B54gE++Ek7GQ6hyXUv GaAzZh1JczwdJlMth4reFQHhwGcsw0bBjdsK5MIVZbrrog6/MI1Gxw/LVtx4CcFwTYbCrx6hYnW2o vKPPhQ5TNZ6rVpBGe1rrOw==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1noCg4-0002zG-5q; Mon, 09 May 2022 19:20:32 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <87o8079f1s.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 09 May 2022 12:27:27 +0200) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> Message-Id: Date: Mon, 09 May 2022 19:20:32 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > The two libraries aren't really compatible without reparsing the entire > parse tree returned by them. For instance, the C library returns: > (json-parse-string "null") > => :null > While json.el says: > (json-read-from-string "null") > => nil No deep difference between them is visible in this example. What is the a deep difference? Is there a reason why they _must_ give different output formats or is that difference just for historical reasons? Could we make a version of the Lisp code that produces the same output as jansson? It would be slower but that is better than not running. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Lars Ingebrigtsen Cc: mail@daniel-mendler.de, philipk@posteo.net, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165213844813458 (code B ref 55278); Mon, 09 May 2022 23:21:02 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 23:20:48 +0000 Received: from localhost ([127.0.0.1]:59710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgJ-0003Ut-Nu for submit@debbugs.gnu.org; Mon, 09 May 2022 19:20:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgD-0003UM-BB for 55278@debbugs.gnu.org; Mon, 09 May 2022 19:20:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noCg6-0007hi-4j; Mon, 09 May 2022 19:20:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=81gFI8UvIVwO7gcMp4iBpGSgh4Z41P3Qt7WzHOYTIW0=; b=IpUasA+jO19d wWxVKbjWSGePYxQiFgo2cmQa0dZmKChpS2jHkQs/AT2mu+TLyD9mMH9Z5D5yhoEWcc2FzQYGcik41 XRduS79mdNbkINb8yuPLt0Dku7oPCURHL2DdZAfey8d1ULJtvy4+XK9Dq+9Tfht/A6yEdEKyC0xK/ Rp5run07cLIcX+buljg82ueM9rhQgJF70eB89hHpEX5kyWb1jgrLwMiQ8JSVJg6aWpRpb5DsF9YCw +HS6qhyiwLa8nHpNebBTXWLPwKhDt4025+B6JDx73xaKVt0HbFYcbHTHcIxCVBCHAYe0QXQ2OZAuV pYL52VSug7rsVOimC5ADfg==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1noCg5-0002za-7v; Mon, 09 May 2022 19:20:33 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <87o8079f1s.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 09 May 2022 12:27:27 +0200) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> Message-Id: Date: Mon, 09 May 2022 19:20:33 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > We'd be doing > our users a disservice if we were to just be slow here instead of > telling them the real story: Build your Emacs with jansson support, > already. We do not tell users that, not now. What we tell them is that the function `json-parse-string' is undefined. Even when they investigate why, it is hard to find out that this is because of a library called janssen. The current situation shows we have failed to think in terms of reliable clear results for the user. If it is normal for user packages to fail to work unless Emacs is linked with libjannson, Emacs should give an error unless libjannson is loaded. (Or unless the option --nojansson is explicitly given.) -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 May 2022 23:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Daniel Mendler Cc: larsi@gnus.org, philipk@posteo.net, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165213844813464 (code B ref 55278); Mon, 09 May 2022 23:21:03 +0000 Received: (at 55278) by debbugs.gnu.org; 9 May 2022 23:20:48 +0000 Received: from localhost ([127.0.0.1]:59712 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgK-0003V1-3l for submit@debbugs.gnu.org; Mon, 09 May 2022 19:20:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCgE-0003UQ-HW for 55278@debbugs.gnu.org; Mon, 09 May 2022 19:20:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noCg9-0007iS-B6; Mon, 09 May 2022 19:20:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=Gzn8K5cJoc/fTo52YkpJHnHo79rALpfsorFkZVAsQXc=; b=Uzg+NSEn6IhY urDwO7WJ5hWENc7k9wsWxB/tVNJU8F2UdkhrfOmDH1uvafEoQN2iovh2TwbYT8gTMgMQmOCSL+4Y+ JQtST6o7sntpvHNUxIO5ThovtgXvaoOqxl94Lu/hOaGB8pdXUvl0VaC4gbGuBgWCi4NQ81Z/KfO7E UPxllqUpOho0rDQflz8ZrFvkxu+KI3GWqXuGlsaevjOuCWIdIgJVNf9PeFloeCFT3iwgrtzIlVf31 5fCrXt+DKvXWYcw9M34dSL5HLn0WXaLjdrNszWC5lghH9vbynWNzQ+j1r2uD+cZKY4gnKvMvrPBk6 +n78ro2DQnMPUQp2nhSjbw==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1noCg8-00030H-Fu; Mon, 09 May 2022 19:20:36 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> (message from Daniel Mendler on Mon, 9 May 2022 12:39:54 +0200) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> Message-Id: Date: Mon, 09 May 2022 19:20:36 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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")) I don't think I saw that warning. Perhaps it was displayed in a way that was difficult to see. I just ran osm-home in a fresh Emacs, and that warning did not appear. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2022 23:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Daniel Mendler Cc: larsi@gnus.org, philipk@posteo.net, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.16527435412140 (code B ref 55278); Mon, 16 May 2022 23:26:02 +0000 Received: (at 55278) by debbugs.gnu.org; 16 May 2022 23:25:41 +0000 Received: from localhost ([127.0.0.1]:55278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqk5t-0000YR-5H for submit@debbugs.gnu.org; Mon, 16 May 2022 19:25:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqk5q-0000YF-L1 for 55278@debbugs.gnu.org; Mon, 16 May 2022 19:25:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46884) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nqk5j-0007Cm-Mp; Mon, 16 May 2022 19:25:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=nFVavIh7Xc1nkcvenRnY7IZC+z3dUIFduLAWpKClJzo=; b=V1t65wkYl0it nMyylIrG1NTE5FJLh792VhFlr6wdNUDE6uhZY6YGRpjS2S1WX7utrR+9fdbPpi8XLmdLVyiu+mW8G MH+4lKmBcltQhbQoNs/8j8WDXKctk6lQR0IhfYrUD38IMVelpUoQs/fDQF4x0BKmpho/vZ/zsah7d aFz6eLppp4ghlIiCwpSUgLD2sCf7HxH1qm6TX/7Bavg3x2ZEQIr5qWvbCJGHVfMHmMpJC6C1LLlrI DacM71FuN5n6B2aO7XiHC5xz64g9i1ZJQxozzckYOcyBhxEpmNOXzXP2ASQXwQf695Mo1HNar+Zzu Y46GFShufJVj3IKUttHclA==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nqk5j-0000GV-7l; Mon, 16 May 2022 19:25:31 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> (message from Daniel Mendler on Mon, 9 May 2022 12:39:54 +0200) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> Message-Id: Date: Mon, 16 May 2022 19:25:31 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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." -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 May 2022 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Richard Stallman Cc: Daniel Mendler , larsi@gnus.org, 55278@debbugs.gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165281475915890 (code B ref 55278); Tue, 17 May 2022 19:13:02 +0000 Received: (at 55278) by debbugs.gnu.org; 17 May 2022 19:12:39 +0000 Received: from localhost ([127.0.0.1]:57970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2cY-00048E-Lx for submit@debbugs.gnu.org; Tue, 17 May 2022 15:12:39 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nr2cJ-00047T-PU for 55278@debbugs.gnu.org; Tue, 17 May 2022 15:12:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B582824010A for <55278@debbugs.gnu.org>; Tue, 17 May 2022 21:12:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1652814737; bh=XYi249Ijy9k5nW+uH/myB2qgGd7dJ0L2bzDaq2u+lYQ=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=gF1RZ4nqMs+KFNFB6y430SCKZOghNsL4RShCpoBHTuWkb9TyZyig7ZWcAN6U4uPyJ NwzKZ1nSIKpXM7xahsGhq0+XlQc6S7idesjwPVYw9sEItiVVTmOECewKWnZ+W4BUV6 r3TcYqz1K1gdJ/3djrlypZ+6dTOSPkOtoDQ8KDvFsdm+7FZrDnnddOO/KIftDuaks9 wwgL2DDNqiKSaRwDb68s7l24qaLcgotTJE62XocMIUip1loSslegFrm5L2UO387p5Y XSRqtyiN08oC8eSnGbB4FzDvSmB0RZ+hxrDh3CncVxrckBw3XTdPoeeFDvWO1Dt08r CjZstHnJIdjpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4L2m2m6bj3z9rxF; Tue, 17 May 2022 21:12:16 +0200 (CEST) From: Philip Kaludercic References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> X-Hashcash: 1:20:220517:rms@gnu.org::RGOmuhB1EMj14/t3:0000000boE X-Hashcash: 1:20:220517:mail@daniel-mendler.de::3xOm2ViJonD4hRjI:000000000000000000000000000000000000000119e X-Hashcash: 1:20:220517:larsi@gnus.org::7j82yhi9rlS0ifnN:00048S1 X-Hashcash: 1:20:220517:55278@debbugs.gnu.org::NyFS7pMtaBl41tlp:000000000000000000000000000000000000000045kA Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Tue, 17 May 2022 19:12:16 +0000 In-Reply-To: (Richard Stallman's message of "Mon, 16 May 2022 19:25:31 -0400") Message-ID: <87wnekug6n.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Richard Stallman 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 From unknown Tue Jun 24 03:27:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#55278: json-parse-string Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 May 2022 22:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55278 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Philip Kaludercic Cc: mail@daniel-mendler.de, larsi@gnus.org, 55278@debbugs.gnu.org Reply-To: rms@gnu.org Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165291245925222 (code B ref 55278); Wed, 18 May 2022 22:21:01 +0000 Received: (at 55278) by debbugs.gnu.org; 18 May 2022 22:20:59 +0000 Received: from localhost ([127.0.0.1]:33862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrS2N-0006Yk-9I for submit@debbugs.gnu.org; Wed, 18 May 2022 18:20:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrS2L-0006YY-O1 for 55278@debbugs.gnu.org; Wed, 18 May 2022 18:20:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrS2F-00073z-MV; Wed, 18 May 2022 18:20:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=SheQYZIlA4hr9AXmuFPV5SwGxfEBTRxI6qfJacd3JDY=; b=qRm2hzYocbMj 6fLmKWQeYiPq9ddtM2FkoxgBproZRQQpjKJyRBOXKAq6Zm7cTCmCgAzh/VF2MZ76Z1JbS4uhjXsOb KgnkGycN2FJyyq3FXUE0vKdpmiIBxpumnJxK5hbn55H/rYbiMq7nKsSRZjtr1aa6W9f7tPrYR8/ma HO/eo9L5KWWrNe1cWpUYf+dL+wId2u+05zo1Ez0aHyEdOVZvz8Ivv3BMiFODu9ncaJqnNbeJvvI3V LbxjHYdooM5ecmexe9WGwsdrl9OGQVgl/OBDqzo8U5GDnjUt9gni3GT+6g7qZG/LkYeGO89HgOFfM RiuuIX4WLxuLAmp5kpZppQ==; Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1nrS2F-0007Cr-CG; Wed, 18 May 2022 18:20:51 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <87wnekug6n.fsf@posteo.net> (message from Philip Kaludercic on Tue, 17 May 2022 19:12:16 +0000) References: <4f91dfed-1563-fd76-a9a0-b5405718ae20@daniel-mendler.de> <87o8079f1s.fsf@gnus.org> <4534cafd-6e16-1ec6-1986-3ef441a5d5e8@daniel-mendler.de> <87wnekug6n.fsf@posteo.net> Message-Id: Date: Wed, 18 May 2022 18:20:51 -0400 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) [[[ 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. ]]] > > 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 That's good. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)