From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Mendler Newsgroups: gmane.emacs.bugs Subject: bug#55278: json-parse-string Date: Mon, 9 May 2022 12:57:37 +0200 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18689"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, Richard Stallman , 55278@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 09 13:21:47 2022 Return-path: Envelope-to: geb-bug-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 1no1SV-0004d0-GX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 13:21:47 +0200 Original-Received: from localhost ([::1]:59336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1no1SU-0003v2-8v for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 May 2022 07:21:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1no15W-0004Vp-NL for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:58:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1no15W-0006vB-CL for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1no15W-0007g2-Bk for bug-gnu-emacs@gnu.org; Mon, 09 May 2022 06:58:02 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 55278-submit@debbugs.gnu.org id=B55278.165209386729486 (code B ref 55278); Mon, 09 May 2022 10:58:02 +0000 Original-Received: (at 55278) by debbugs.gnu.org; 9 May 2022 10:57:47 +0000 Original-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 Original-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=; Content-Language: en-US In-Reply-To: <8735hj9e84.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231721 Archived-At: 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