[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm 70167f04c0 2/2: Add more library checks
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm 70167f04c0 2/2: Add more library checks |
Date: |
Wed, 11 May 2022 02:58:04 -0400 (EDT) |
branch: externals/osm
commit 70167f04c0fbf3fdddfbc306e26f70848e3b60a7
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@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))))