[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 25f0b32 033/298: More documentation for webpaste-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 25f0b32 033/298: More documentation for webpaste-paste-text function |
Date: |
Thu, 9 Dec 2021 18:59:39 -0500 (EST) |
branch: elpa/webpaste
commit 25f0b3227a9be5ae94e11abf1e96a10b33845767
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
More documentation for webpaste-paste-text function
---
webpaste.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 35f602a..22cb677 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -117,9 +117,22 @@ return it to the user."
(message (concat "Added " returned-url " to kill ring.")))
-;; Function to do pasting
+;;;###autoload
(defun webpaste-paste-text (text)
- "Paste TEXT to some paste service."
+ "Paste TEXT to some paste service.
+If ‘webpaste-provider-priority’ isn't populated, it will populate it with the
+default providers.
+
+Then if ‘webpaste-tested-providers’ isn't populated it will be populated by
+‘webpaste-provider-priority’.
+
+Then it extracts the first element of ‘webpaste-tested-providers’ and drops
+the first element from that list and gets the lambda for the provider and
+runs the lambda to paste TEXT to the paste service. The paste-service in turn
+might call this function again with TEXT as param to retry if it failed.
+
+When we run out of providers to try, it will restart since
+‘webpaste-tested-providers’ will be empty and then populated again."
;; Populate webpaste-provider-priority if needed
(if (eq webpaste-provider-priority nil)
- [nongnu] elpa/webpaste 1114813 017/298: Move providers to customizable list with lambdas, (continued)
- [nongnu] elpa/webpaste 1114813 017/298: Move providers to customizable list with lambdas, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0c0f31b 020/298: Checkdoc checkup, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6694269 018/298: Add resulting url to kill ring for easy pasting, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1c7b313 021/298: Added variable for providers priority when running, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste bf8f03c 023/298: Spacing, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 14a1e6e 022/298: Added general function to paste text, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0423f3f 024/298: Reorder file overall to have autoloads at the end, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 5b34fda 027/298: Rename providers list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 3d18f0b 028/298: Added code to auto-populate webpaste-provider-priority if needed, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e1b98bd 032/298: Updated readme, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 25f0b32 033/298: More documentation for webpaste-paste-text function,
ELPA Syncer <=
- [nongnu] elpa/webpaste 4fb8873 037/298: Changed emacs version requires from 25 to 24, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d4357d7 042/298: Autoload excursion-wrapper as well, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e579ecb 044/298: Specify parent group, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste aaa690a 016/298: Spelling in comments, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c298428 043/298: Reset tested-providers list after successful paste, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ddfe2c6 015/298: Added dpaste support, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9632f3f 026/298: Lines, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7b0859f 029/298: Populate tested providers list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c6eb2a1 031/298: Add error callbacks to try to paste again (to, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e354e30 034/298: Update commentary, package-version, keywords and readme, ELPA Syncer, 2021/12/09