-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,13 @@ | |
;; Author: Adam Porter <[email protected]> | ||
;; Maintainer: Adam Porter <[email protected]> | ||
;; URL: https://github.com/alphapapa/plz.el | ||
<<<<<<< HEAD | ||
;; Version: 0.10-pre | ||
||||||| 399ad3e | ||
;; Version: 0.9 | ||
======= | ||
;; Version: 0.9.1 | ||
>>>>>>> stable | ||
;; Package-Requires: ((emacs "27.1")) | ||
;; Keywords: comm, network, http | ||
|
||
|
@@ -359,7 +365,8 @@ It may be: | |
- `(file FILENAME)' to pass FILENAME after having saved the | ||
response body to it without decoding. FILENAME must be a | ||
non-existent file; if it exists, it will not be overwritten, | ||
and an error will be signaled. | ||
and an error will be signaled. FILENAME is passed through | ||
`expand-file-name', which see. | ||
- A function, which is called in the response buffer with it | ||
narrowed to the response body (suitable for, e.g. `json-read'). | ||
|
@@ -454,7 +461,9 @@ into the process buffer. | |
(`(file ,(and (pred stringp) as-filename)) | ||
(when (file-exists-p as-filename) | ||
(error "File exists, will not overwrite: %S" as-filename)) | ||
(setf filename as-filename) | ||
;; Use `expand-file-name' because curl doesn't | ||
;; expand, e.g. "~" into "/home/...". | ||
(setf filename (expand-file-name as-filename)) | ||
(list (cons "--output" filename)))))) | ||
((or 'put 'post) | ||
(append (list (cons "--dump-header" "-") | ||
|
@@ -466,7 +475,9 @@ into the process buffer. | |
(`(file ,(and (pred stringp) as-filename)) | ||
(when (file-exists-p as-filename) | ||
(error "File exists, will not overwrite: %S" as-filename)) | ||
(setf filename as-filename) | ||
;; Use `expand-file-name' because curl doesn't | ||
;; expand, e.g. "~" into "/home/...". | ||
(setf filename (expand-file-name as-filename)) | ||
(list (cons "--output" filename)))) | ||
(list | ||
;; It appears that this must be the last argument | ||
|
@@ -487,7 +498,9 @@ into the process buffer. | |
(`(file ,(and (pred stringp) as-filename)) | ||
(when (file-exists-p as-filename) | ||
(error "File exists, will not overwrite: %S" as-filename)) | ||
(setf filename as-filename) | ||
;; Use `expand-file-name' because curl doesn't | ||
;; expand, e.g. "~" into "/home/...". | ||
(setf filename (expand-file-name as-filename)) | ||
(list (cons "--output" filename)))))) | ||
('head | ||
(list (cons "--head" "") | ||
|