[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm db20223911 27/77: Minor cleanup
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm db20223911 27/77: Minor cleanup |
Date: |
Mon, 7 Mar 2022 08:58:05 -0500 (EST) |
branch: externals/osm
commit db2022391149e09afc556527d26ed3bede021674
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Minor cleanup
---
osm.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/osm.el b/osm.el
index 279cb53542..cfc96a4264 100644
--- a/osm.el
+++ b/osm.el
@@ -34,8 +34,8 @@
(eval-when-compile (require 'cl-lib))
(defgroup osm nil
- "OpenStreetMap."
- :group 'network
+ "OpenStreetMap viewer."
+ :group 'web
:prefix "osm-")
(defcustom osm-server-list
@@ -87,11 +87,11 @@
:type '(alist :key-type symbol :value-type plist))
(defcustom osm-large-step 256
- "Movement step in pixel."
+ "Scroll step in pixel."
:type 'integer)
(defcustom osm-small-step 16
- "Movement step in pixel."
+ "Scroll step in pixel."
:type 'integer)
(defcustom osm-server 'default
@@ -103,8 +103,8 @@
"Tile cache directory."
:type 'string)
-(defcustom osm-max-age (* 60 60 24 14)
- "Maximum tile age.
+(defcustom osm-max-age 14
+ "Maximum tile age in days.
Should be at least 7 days according to the server usage policies."
:type '(choice (const nil) integer))
@@ -386,7 +386,7 @@ We need two distinct images which are not `eq' for the
display properties.")
(defun osm--clean-cache ()
"Clean tile cache."
(when (and (integerp osm-max-age)
- (> (- (float-time) osm--clean-cache) osm-max-age))
+ (> (- (float-time) osm--clean-cache) (* 60 60 24)))
(setq osm--clean-cache (float-time))
(run-with-idle-timer
30 nil
@@ -400,11 +400,11 @@ We need two distinct images which are not `eq' for the
display properties.")
(time-since
(file-attribute-modification-time
(file-attributes file))))
- osm-max-age)
+ (* 60 60 24 osm-max-age))
(delete-file file)))))))
(define-derived-mode osm-mode special-mode "Osm"
- "Open Street Map mode."
+ "OpenStreetMap viewer mode."
:interactive nil
(osm--clean-cache)
(setq-local osm-server osm-server
- [elpa] externals/osm 2a0bd8c7eb 50/77: Improve header line, (continued)
- [elpa] externals/osm 2a0bd8c7eb 50/77: Improve header line, ELPA Syncer, 2022/03/07
- [elpa] externals/osm e546671a0e 38/77: Minor cleanup, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 7657cb1b3b 71/77: Add check for image format support, ELPA Syncer, 2022/03/07
- [elpa] externals/osm e78a337477 44/77: Rename commands, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 1b7f4020b3 73/77: Fix caching, ELPA Syncer, 2022/03/07
- [elpa] externals/osm d27892f63a 40/77: Add some utility functions, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 3c0950a24b 31/77: Simplify bookmark handling, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 11a04bb5b9 66/77: osm-server: Improve completion command, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 88e7e36e43 49/77: Rename function, ELPA Syncer, 2022/03/07
- [elpa] externals/osm a9d0ec74e3 07/77: Simplify placeholder, ELPA Syncer, 2022/03/07
- [elpa] externals/osm db20223911 27/77: Minor cleanup,
ELPA Syncer <=
- [elpa] externals/osm 92fb0c72dd 62/77: Add osm-bookmark-delete, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 6f14067777 26/77: add mwheel scroll functions, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 9ffe9592ba 55/77: Simplify code, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 28afc293f9 47/77: Improve bookmark and Org link support, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 5af320c57f 10/77: Add Stamen servers, support jpeg tiles, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 593b95a50c 17/77: Add more maps, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 305aea000b 03/77: Use cl-loop, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 5f002af18c 24/77: Fix file extraction, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 5f47b77d20 45/77: Move predeclared variables, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 585346b5e0 53/77: Improve bookmark command, ELPA Syncer, 2022/03/07