[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql e6ce8ded45 326/427: Require url when running emacs
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql e6ce8ded45 326/427: Require url when running emacsql-sqlite-download |
Date: |
Tue, 13 Dec 2022 02:59:57 -0500 (EST) |
branch: elpa/emacsql
commit e6ce8ded45e93fad40332c9b6f6288bfea60d709
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
Require url when running emacsql-sqlite-download
Also suppress a byte-compile warning.
---
emacsql-sqlite.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el
index ab81150ff9..2abf63bd3d 100644
--- a/emacsql-sqlite.el
+++ b/emacsql-sqlite.el
@@ -174,7 +174,7 @@ If called with non-nil ASYNC the return value is
meaningless."
(defun emacsql-sqlite-download (url filename)
"Downlod URL to FILENAME, clobbering returning nil on failure.
This works like `url-copy-file' but actually checks for errors."
- (cl-declare (special url-http-end-of-headers))
+ (require 'url)
(let ((buffer (url-retrieve-synchronously url)))
(when buffer
(with-current-buffer buffer
@@ -182,7 +182,8 @@ This works like `url-copy-file' but actually checks for
errors."
(when (and (>= 200 response) (< response 300))
(mkdir (file-name-directory filename) t)
(let ((buffer-file-coding-system 'no-conversion))
- (write-region (1+ url-http-end-of-headers) (point-max) filename)
+ (write-region (1+ (with-no-warnings url-http-end-of-headers))
+ (point-max) filename)
:success)))))))
(defun emacsql-sqlite-mark-exec (file)
- [nongnu] elpa/emacsql c4036cbdc8 280/427: Move test print statement., (continued)
- [nongnu] elpa/emacsql c4036cbdc8 280/427: Move test print statement., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 1bf92bab9e 285/427: Add a special case for unary not., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql da2b137771 289/427: Fix the parameter naming in emacsql-show-last-sql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c1ede49bbe 283/427: Update headers., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 965039cec2 314/427: Adjust header lines for each back-end., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 57c40202e8 307/427: Set correct default transaction type in PostgreSQL., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7b505b6e94 309/427: Update back-end documentation., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 649fc6b0b4 312/427: Add emacsql-pg using pg.el as a back-end., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 4a535e2cca 318/427: Fix typo in emacsql-buffer's doc-string, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql a5a0c2f838 323/427: Fix typo, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e6ce8ded45 326/427: Require url when running emacsql-sqlite-download,
ELPA Syncer <=
- [nongnu] elpa/emacsql 01f3d3eb2b 316/427: Fallback to buffer-file-name when load-file-name is nil, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 02acd07072 328/427: Ensure executable variable is defined at compile time., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 2ffcc95c67 338/427: Fix a typo in the doc-string of emacsql-with-params., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 74bd11bc09 334/427: Fix up package description headers., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5df2891557 349/427: Use cl-generic package, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql e8c090e11f 353/427: Improve Makefile portability and dump Cask, ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 0ba12b89d5 084/427: Drop "work in progress.", ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 364bf466ea 086/427: Linkify the issue in the README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dd3f153406 089/427: Drop old with-errors macro., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 72c1954517 096/427: Block on connection until the output has flushed., ELPA Syncer, 2022/12/13