branch: externals/osm commit 70167f04c0fbf3fdddfbc306e26f70848e3b60a7 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Add more library checks --- osm.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osm.el b/osm.el index 299408197c..d655fbf328 100644 --- a/osm.el +++ b/osm.el @@ -1397,6 +1397,7 @@ Optionally place transient pin with ID and NAME." (defun osm--fetch-json (url) "Get json from URL." + (osm--check-libraries) (json-parse-string (let ((default-process-coding-system '(utf-8-unix . utf-8-unix))) (shell-command-to-string @@ -1455,6 +1456,7 @@ If the prefix argument LUCKY is non-nil take the first result and jump there." (defun osm-gpx-show (file) "Show the tracks of gpx FILE in an `osm-mode' buffer." (interactive "fGPX file: ") + (osm--check-libraries) (let ((dom (with-temp-buffer (insert-file-contents file) (libxml-parse-xml-region (point-min) (point-max))))