[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 20760ac 097/298: Set default value of :parser to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 20760ac 097/298: Set default value of :parser to provider |
Date: |
Thu, 9 Dec 2021 18:59:52 -0500 (EST) |
branch: elpa/webpaste
commit 20760acf5eb352145b8347ba9e009d654a3c9261
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Set default value of :parser to provider
All my providers used 'buffer-string anyways. So it's now default for
a provider to make them a bit simpler.
---
webpaste.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 76cb047..13351d8 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -59,7 +59,12 @@ if that variable is nil, it will use the list of names from
‘webpaste-provider
each run.")
-(cl-defun webpaste-provider (&key domain (type "POST") parser post-data
post-field success)
+(cl-defun webpaste-provider (&key domain
+ (type "POST")
+ (parser 'buffer-string)
+ (post-data '())
+ post-field
+ success)
"Macro to create the lambda function for a provider.
This macro accepts the parameters :domain, :type, :parser, :post-data,
@@ -72,7 +77,7 @@ Usage:
:domain URL that we should do the request to to paste data.
:type HTTP Request type, defaults to POST.
:parser Defines how request.el parses the result. Look up :parser for
- `request`.
+ `request`. This defaults to 'buffer-string.
:post-data Default post fields sent to service. Defaults to nil.
:post-field Name of the field to insert the code into.
:success Callback sent to `request`, look up how to write these in the
@@ -101,7 +106,6 @@ Usage:
(list (list "ptpb.pw"
(webpaste-provider
:domain "https://ptpb.pw/"
- :parser 'buffer-string
:post-field "c"
:success
(cl-function (lambda (&key response &allow-other-keys)
@@ -111,7 +115,6 @@ Usage:
(list "ix.io"
(webpaste-provider
:domain "http://ix.io/"
- :parser 'buffer-string
:post-field "f:1"
:success
(cl-function (lambda (&key data &allow-other-keys)
@@ -122,7 +125,6 @@ Usage:
(list "sprunge.us"
(webpaste-provider
:domain "http://sprunge.us/"
- :parser 'buffer-string
:post-field "sprunge"
:success
(cl-function (lambda (&key data &allow-other-keys)
@@ -133,7 +135,6 @@ Usage:
(list "dpaste.com"
(webpaste-provider
:domain "http://dpaste.com/api/v2/"
- :parser 'buffer-string
:post-data '(("syntax" . "text")
("title" . "")
("poster" . "")
@@ -147,7 +148,6 @@ Usage:
(list "dpaste.de"
(webpaste-provider
:domain "https://dpaste.de/api/"
- :parser 'buffer-string
:post-data '(("lexer" . "text")
("format" . "url")
("expires" . 86400))
- [nongnu] elpa/webpaste 729e277 030/298: Paste to selected paste provider at the top of the list, (continued)
- [nongnu] elpa/webpaste 729e277 030/298: Paste to selected paste provider at the top of the list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 80f0afe 051/298: Added provider to todo-list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cb9cca7 054/298: Stop moving point and remove usage of save-excursion and therefore, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2250993 061/298: Fix eval of macros, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c60c712 062/298: Checkdoc, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 39809d8 063/298: Update documentation, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c57cd53 071/298: Changed string to number, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 78651c9 073/298: Avoid using eval, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c9d1de0 076/298: Added Makefile for running tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7770c88 080/298: Added first unit test to detect a working provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 20760ac 097/298: Set default value of :parser to provider,
ELPA Syncer <=
- [nongnu] elpa/webpaste e998ee4 099/298: Simplify one unit test, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e905bbc 066/298: Change value-type to catch-all sexp since it's not functions anymore, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b4c08a5 070/298: Spelling in docs, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste dc11b51 078/298: Added code for helper for unit tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 8e9f4e0 094/298: Bump required version for webpaste.el because I can't install older, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0b7ba72 098/298: Added coveralls for file coverage testing, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 25ea405 103/298: Added ERT test for message when returning URL, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f221c1a 104/298: Added test for pasting entire buffers and regions, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste acf9676 108/298: Added flag to disable failover for provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 4867c58 113/298: Backquotes for compacter list, ELPA Syncer, 2021/12/09