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

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

[nongnu] elpa/webpaste aff4e42 124/298: The error-lambda now has a defau


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste aff4e42 124/298: The error-lambda now has a default value and is now optional
Date: Thu, 9 Dec 2021 18:59:58 -0500 (EST)

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

    The error-lambda now has a default value and is now optional
---
 webpaste.el | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 09cd686..3d5239b 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -108,7 +108,7 @@ each run.")
                                   (sync nil)
                                   post-field
                                   (post-field-lambda 
webpaste/providers-default-post-field-lambda)
-                                  error-lambda
+                                  (error-lambda 
webpaste/providers-error-lambda)
                                   success-lambda)
   "Function to create the lambda function for a provider.
 
@@ -130,7 +130,7 @@ Usage:
 :success-lambda Callback sent to `request', look up how to write these in the
                 documentation for `request'.
 :error-lambda   Callback sent to `request', look up how to write these in the
-                documentation for `request'.  A good default value forr this is
+                documentation for `request'.  The default value for this is
                 `webpaste/providers-error-lambda', but there's also
                 `webpaste/providers-error-lambda-no-failover' available if you
                 need a provider that isn't allowed to failover."
@@ -155,22 +155,19 @@ Usage:
      ,(webpaste-provider
        :uri "https://ptpb.pw/";
        :post-field "c"
-       :success-lambda webpaste/providers-success-location-header
-       :error-lambda webpaste/providers-error-lambda))
+       :success-lambda webpaste/providers-success-location-header))
 
     ("ix.io"
      ,(webpaste-provider
        :uri "http://ix.io/";
        :post-field "f:1"
-       :success-lambda webpaste/providers-success-returned-string
-       :error-lambda webpaste/providers-error-lambda))
+       :success-lambda webpaste/providers-success-returned-string))
 
     ("sprunge.us"
      ,(webpaste-provider
        :uri "http://sprunge.us/";
        :post-field "sprunge"
-       :success-lambda webpaste/providers-success-returned-string
-       :error-lambda webpaste/providers-error-lambda))
+       :success-lambda webpaste/providers-success-returned-string))
 
     ("dpaste.com"
      ,(webpaste-provider
@@ -180,8 +177,7 @@ Usage:
                     ("poster" . "")
                     ("expiry_days" . 1))
        :post-field "content"
-       :success-lambda webpaste/providers-success-location-header
-       :error-lambda webpaste/providers-error-lambda))
+       :success-lambda webpaste/providers-success-location-header))
 
     ("dpaste.de"
      ,(webpaste-provider
@@ -190,8 +186,7 @@ Usage:
                     ("format" . "url")
                     ("expires" . 86400))
        :post-field "content"
-       :success-lambda webpaste/providers-success-returned-string
-       :error-lambda webpaste/providers-error-lambda)))
+       :success-lambda webpaste/providers-success-returned-string)))
 
   "Define all webpaste.el providers.
 Consists of provider name and lambda function to do the actuall call to the



reply via email to

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