bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55278: json-parse-string


From: Daniel Mendler
Subject: bug#55278: json-parse-string
Date: Mon, 9 May 2022 12:57:37 +0200

On 5/9/22 12:45, Lars Ingebrigtsen wrote:
> Daniel Mendler <mail@daniel-mendler.de> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]