emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/osm f42b67ff57 3/3: osm-mode: Add warning for missing l


From: ELPA Syncer
Subject: [elpa] externals/osm f42b67ff57 3/3: osm-mode: Add warning for missing libjansson dependency
Date: Sat, 7 May 2022 04:57:40 -0400 (EDT)

branch: externals/osm
commit f42b67ff57766a7025e1351e7c8cfa1d553c9ee4
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    osm-mode: Add warning for missing libjansson dependency
---
 osm.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/osm.el b/osm.el
index c318b98972..53767de5db 100644
--- a/osm.el
+++ b/osm.el
@@ -751,8 +751,9 @@ Should be at least 7 days according to the server usage 
policies."
   (unless (libxml-available-p)
     (warn "osm: libxml is not available"))
   ;; json-available-p is not available on Emacs 27
-  ;; (unless (json-available-p)
-  ;;   (warn "osm: libjansson is not available"))
+  (unless (and (fboundp 'json-parse-string)
+               (equal (json-parse-string "[]") []))
+    (warn "osm: libjansson is not available"))
   (setq-local osm-server osm-server
               line-spacing nil
               cursor-type nil



reply via email to

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