[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm 7a50000e1e 58/77: Add separate resize function, re
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm 7a50000e1e 58/77: Add separate resize function, revert tile cache |
Date: |
Mon, 7 Mar 2022 08:58:08 -0500 (EST) |
branch: externals/osm
commit 7a50000e1ee01eff4c18a7221fcd2d1e31cc7b3d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Add separate resize function, revert tile cache
---
osm.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/osm.el b/osm.el
index 0dd3b9084c..8bdd572e2e 100644
--- a/osm.el
+++ b/osm.el
@@ -487,7 +487,7 @@ Should be at least 7 days according to the server usage
policies."
mwheel-scroll-left-function #'osm-left
mwheel-scroll-right-function #'osm-right
bookmark-make-record-function #'osm--make-bookmark)
- (add-hook 'window-size-change-functions #'osm--revert nil 'local))
+ (add-hook 'window-size-change-functions #'osm--resize nil 'local))
(defun osm--get-tile (x y)
"Get tile at X/Y."
@@ -539,6 +539,12 @@ Should be at least 7 days according to the server usage
policies."
(defun osm--revert (&rest _)
"Revert buffer."
+ (when (eq major-mode #'osm-mode)
+ (when osm--tiles (clrhash osm--tiles))
+ (osm--update)))
+
+(defun osm--resize (&rest _)
+ "Resize buffer."
(when (eq major-mode #'osm-mode)
(osm--update)))
- [elpa] externals/osm e8ed76566a 11/77: Rename settings, (continued)
- [elpa] externals/osm e8ed76566a 11/77: Rename settings, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 5815de2a73 29/77: Store server as part in bookmark and Org link, ELPA Syncer, 2022/03/07
- [elpa] externals/osm e7f38427ca 05/77: Document all variables, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 42b9222e93 06/77: Make download slightly more robust, ELPA Syncer, 2022/03/07
- [elpa] externals/osm ad12c93f57 01/77: Initial commit, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 7a1d920492 59/77: Display bookmarks in map, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 25d891088f 70/77: Emacs 27 base64 encoding fallback, ELPA Syncer, 2022/03/07
- [elpa] externals/osm ec97b1d1c0 23/77: Add separate hook function, ELPA Syncer, 2022/03/07
- [elpa] externals/osm ee64b96509 56/77: Add map variant, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 1bd4751bcf 34/77: Better link names, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 7a50000e1e 58/77: Add separate resize function, revert tile cache,
ELPA Syncer <=
- [elpa] externals/osm 4c9337bf79 69/77: Update README, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 76b41f5fb5 51/77: Add keybindings, ELPA Syncer, 2022/03/07
- [elpa] externals/osm a6335090e9 33/77: Handle multiple windows, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 2fbf12f0ef 46/77: seq is not needed, ELPA Syncer, 2022/03/07
- [elpa] externals/osm c2c7dff887 22/77: Compact server configuration, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 7ce1d26c88 67/77: Extract osm--make-tile, ELPA Syncer, 2022/03/07
- [elpa] externals/osm ff8ff68b4d 65/77: Check if bookmarks are present, ELPA Syncer, 2022/03/07
- [elpa] externals/osm cb191d426f 76/77: Version 0.2, ELPA Syncer, 2022/03/07
- [elpa] externals/osm 8e8e4583f5 74/77: More robust mouse dragging, ELPA Syncer, 2022/03/07
- [elpa] externals/osm d776cdb343 42/77: Fix melpa issues (See https://github.com/melpa/melpa/pull/7936), ELPA Syncer, 2022/03/07