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

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

[nongnu] elpa/webpaste c33f341 019/298: Added custom for provider priori


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste c33f341 019/298: Added custom for provider priority
Date: Thu, 9 Dec 2021 18:59:36 -0500 (EST)

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

    Added custom for provider priority
---
 webpaste.el | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 34958ae..e103550 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -108,8 +108,16 @@
                                (webpaste-return-url
                                 (request-response-header response 
"Location"))))))
        nil)))
-  "Define all webpaste.el providers.")
-
+  "Define all webpaste.el providers. Consists of provider name and lambda
+function to do the actuall call to the provider. The lamda should call
+webpaste-return-url with resulting url to return it to the user."
+  :group 'webpaste)
+
+(defcustom webpaste-provider-priority ()
+  "Define provider priority of which providers to try in which order. This
+variable should be a list of strings and if it isn't defined it will default
+to all providers in order defined in webpaste-providers list."
+  :group 'webpaste)
 
 (provide 'webpaste)
 



reply via email to

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