[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste f08a2dc 136/298: Rename internal variable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste f08a2dc 136/298: Rename internal variable |
Date: |
Thu, 9 Dec 2021 19:00:00 -0500 (EST) |
branch: elpa/webpaste
commit f08a2dcf67503afa76225a981eef8e6270b3adf6
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Rename internal variable
---
webpaste.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 8370555..e9cceaa 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -69,7 +69,7 @@ default to all providers in order defined in
‘webpaste-providers’ list."
:group 'webpaste)
-(defvar webpaste-tested-providers ()
+(defvar webpaste/tested-providers ()
"Variable for storing which providers to try in which order while running.
This list will be re-populated each run based on ‘webpaste-provider-priority’
or
if that variable is nil, it will use the list of names from
‘webpaste-providers’
@@ -320,7 +320,7 @@ return it to the user."
"Return RETURNED-URL to user from the result of the paste service."
;; Reset tested providers after successful paste
- (setq webpaste-tested-providers nil)
+ (setq webpaste/tested-providers nil)
;; Add RETURNED-URL to killring for easy pasting
(kill-new returned-url)
@@ -344,25 +344,25 @@ make `webpaste-paste-text' do less magic things all at
once."
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
+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
+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."
+‘webpaste/tested-providers’ will be empty and then populated again."
;; Populate tested providers for this request if needed
- (unless webpaste-tested-providers
- (setq webpaste-tested-providers (webpaste/get-provider-priority)))
+ (unless webpaste/tested-providers
+ (setq webpaste/tested-providers (webpaste/get-provider-priority)))
;; Get name of provider at the top of the list
- (let ((provider-name (car webpaste-tested-providers)))
+ (let ((provider-name (car webpaste/tested-providers)))
;; Drop the name at the top of the list
- (setq webpaste-tested-providers (cdr webpaste-tested-providers))
+ (setq webpaste/tested-providers (cdr webpaste/tested-providers))
;; Run pasting function
(webpaste-paste-text-to-provider text provider-name)))
- [nongnu] elpa/webpaste 6e34759 072/298: Added another privider to list to implement, (continued)
- [nongnu] elpa/webpaste 6e34759 072/298: Added another privider to list to implement, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f378ca9 075/298: Added Cask file, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2bb8a4c 077/298: Set up tests directory, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f338ca7 083/298: Added Travis-CI build status image, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f658339 096/298: Bump version number for stable release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e485847 107/298: Break out pasting to provider to own function, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 406d713 115/298: Shared success lambdas between different paste providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7f62fed 118/298: Tidy up some lists in tests with backquotes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0e4ac51 132/298: Added support for buffer-language depending on mode for some providers, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 9ddc617 133/298: Simplify webpaste/get-lang-alist-with-overrides implementation, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f08a2dc 136/298: Rename internal variable,
ELPA Syncer <=
- [nongnu] elpa/webpaste af0474e 139/298: Merge branch 'naclander-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b9b2ce0 143/298: Added support for languages for providers that appends language to the URL, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c091dab 146/298: Change some types based on actual use, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 0144016 147/298: Remove unused variable, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste b5491ab 150/298: Bump version for stable release, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 29d10d7 151/298: Added paste.pound-python.org as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 410e286 152/298: Added webpaste confirmation tests, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste db8c605 154/298: Rewrite test to cover both if link is opened in external browser or not, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6b93c89 153/298: Merge branch 'naclander-master', ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d2ed48a 156/298: Added unit test for appending of language to returning links, ELPA Syncer, 2021/12/09