[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/osm 9b416ff84d: Fix download filter for Windows (#33)
From: |
ELPA Syncer |
Subject: |
[elpa] externals/osm 9b416ff84d: Fix download filter for Windows (#33) |
Date: |
Mon, 6 Feb 2023 08:57:56 -0500 (EST) |
branch: externals/osm
commit 9b416ff84d3f336557961be918e14f3840f39f84
Author: fw623 <maximilian.obermayer@gmail.com>
Commit: GitHub <noreply@github.com>
Fix download filter for Windows (#33)
Previously the tiles were blank on my Windows machine because the parsed
`output` in `osm--download-filter` had a trailing `\r`. This also caused the
`delete-file` call to error.
Changing the regex like this fixes the problem.
---
osm.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/osm.el b/osm.el
index 520765a6f8..7704200f70 100644
--- a/osm.el
+++ b/osm.el
@@ -492,7 +492,7 @@ Should be at least 7 days according to the server usage
policies."
(defun osm--download-filter (output)
"Filter function for the download process which receives OUTPUT."
(while (string-match
- "\\`\\([0-9]+\\)
\\(.*?/\\([^/]+\\)/\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)\\..+\\)\n"
+ "\\`\\([0-9]+\\)
\\(.*?/\\([^/]+\\)/\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)\\.[^\r\n]+\\)\r?\n"
output)
(let ((status (match-string 1 output))
(file (match-string 2 output))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/osm 9b416ff84d: Fix download filter for Windows (#33),
ELPA Syncer <=