emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste 1a1144f 110/298: Exposed sync parameter of reques


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 1a1144f 110/298: Exposed sync parameter of request for debugging/test purposes
Date: Thu, 9 Dec 2021 18:59:55 -0500 (EST)

branch: elpa/webpaste
commit 1a1144f56306f8c12e25b0c91895e66efbd011f6
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Exposed sync parameter of request for debugging/test purposes
---
 webpaste.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/webpaste.el b/webpaste.el
index b2a4aff..0c7450b 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -66,6 +66,7 @@ each run.")
                                   (parser 'buffer-string)
                                   (post-data '())
                                   (no-failover nil)
+                                  (sync nil)
                                   post-field
                                   success)
   "Macro to create the lambda function for a provider.
@@ -84,6 +85,8 @@ Usage:
 :post-data   Default post fields sent to service. Defaults to nil.
 :post-field  Name of the field to insert the code into.
 :no-failover Set to t to not allow doing failovers, Defaults to nil.
+:sync        Set to t to wait until request is done.  Defaults to nil.
+             This should only be used for debugging purposes.
 :success     Callback sent to `request`, look up how to write these in the
              documentation for `request`"
   (lambda (text)
@@ -98,6 +101,7 @@ Usage:
              :data post-data
              :parser parser
              :success success
+             :sync sync
              :error
              (cl-function (lambda (&key error-thrown &allow-other-keys)
                             (message "Got error: %S" error-thrown)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]