branch: externals/osm
commit f42b67ff57766a7025e1351e7c8cfa1d553c9ee4
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
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