[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/svg-lib 9115bf7 12/32: Fix string/array nil issue on wi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/svg-lib 9115bf7 12/32: Fix string/array nil issue on windows |
Date: |
Mon, 27 Sep 2021 16:57:47 -0400 (EDT) |
branch: externals/svg-lib
commit 9115bf78c94302a17cc3fb3f60d7b1071c074d9a
Author: chenyanming <elecming@gmail.com>
Commit: chenyanming <elecming@gmail.com>
Fix string/array nil issue on windows
This fixes the svg-lib-button/svg-lib-progress can not be used on
windows issue. Mentioned on issue #2.
---
svg-lib.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/svg-lib.el b/svg-lib.el
index 5ee0bba..40919ed 100644
--- a/svg-lib.el
+++ b/svg-lib.el
@@ -318,18 +318,15 @@ Cached version is returned if it exists unless
FORCE-RELOAD is t."
(write-region (point-min) (point-max) filename))))
;; Get data from cache
- (let ((buffer (generate-new-buffer " *temp*")))
+ (let ((buffer (url-fetch-from-cache url)))
(with-current-buffer buffer
- (url-cache-extract (url-cache-create-filename url)))
- (with-temp-buffer
- (url-insert-buffer-contents buffer url)
(xml-parse-region (point-min) (point-max))))))
(defun svg-lib-icon (icon &optional style &rest args)
"Create a SVG image displaying icon NAME from COLLECTION using
given STYLE and style elements ARGS."
-
+
(let* ((default svg-lib-style-default)
(style (if style (apply #'svg-lib-style nil style) default))
(style (if args (apply #'svg-lib-style style args) style))
- [elpa] branch externals/svg-lib created (now f9e1bbb), ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib f732499 02/32: Updated description, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 778ef64 04/32: Full rewrite, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 6a83751 01/32: Initial import, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 5787149 07/32: Added button object, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib fe5e099 13/32: Do not fetch svg if it is cached, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib a1bfa49 15/32: Add svg-lib-icons-dir, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 38b0bad 03/32: Typo, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 004ab08 05/32: Better handling of default style + style simplification, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib a5b06a8 09/32: Forgot screenshot, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 9115bf7 12/32: Fix string/array nil issue on windows,
ELPA Syncer <=
- [elpa] externals/svg-lib e66a2d0 17/32: Merge pull request #3 from chenyanming/fix-windows-string-or-array-nil-error, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 461c155 06/32: Update with new style, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib e2d2d68 10/32: Better screenshot, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 952016b 11/32: Fix tasks status, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib ebde091 22/32: Added progress pies, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib b67b120 30/32: Cosmetic changes, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 90bb561 18/32: Added tag example, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 0ce0302 19/32: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 83834c6 20/32: Fix usage example in comment., ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 6876d54 26/32: Fix `font-info` query format., ELPA Syncer, 2021/09/27