[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste c091dab 146/298: Change some types based on actua
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste c091dab 146/298: Change some types based on actual use |
Date: |
Thu, 9 Dec 2021 19:00:02 -0500 (EST) |
branch: elpa/webpaste
commit c091daba87002a199e6379f381464561b0ee3804
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Change some types based on actual use
---
webpaste.el | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index 2517971..d542f43 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -54,24 +54,11 @@ default to all providers in order defined in
‘webpaste-providers’ list."
:type '(repeat string))
-(defcustom webpaste/default-lang-alist
- '((css-mode . "css")
- (fundamental-mode . "text")
- (html-mode . "html")
- (java-mode . "java")
- (js-mode . "js")
- (go-mode . "go")
- (php-mode . "php")
- (python-mode . "python")
- (yaml-mode . "yaml"))
- "Alist that maps `major-mode' names to language names."
- :type '(alist :key-type symbol :value-type string))
-
-
(defcustom webpaste/paste-confirmation nil
"Prompt for a yes/no confirmation before attempting to paste a region or
buffer."
:group 'webpaste)
+
(defvar webpaste/tested-providers ()
"Variable for storing which providers to try in which order while running.
@@ -91,7 +78,20 @@ some providers want to append the language to the resulting
URL.")
This list will be populated when you add providers to have the languages
precalculated, and also available both for pre and post request access.")
-
+
+(defvar webpaste/default-lang-alist
+ '((css-mode . "css")
+ (fundamental-mode . "text")
+ (html-mode . "html")
+ (java-mode . "java")
+ (js-mode . "js")
+ (go-mode . "go")
+ (php-mode . "php")
+ (python-mode . "python")
+ (yaml-mode . "yaml"))
+ "Alist that maps `major-mode' names to language names."
+ :type '(alist :key-type symbol :value-type string))
+
;;; Predefined error lambda for providers
(defvar webpaste/providers-error-lambda
@@ -263,7 +263,7 @@ Optional params:
;;; Define providers
-(defcustom webpaste-providers-alist
+(defvar webpaste-providers-alist
`(("ptpb.pw"
,(webpaste-provider
:uri "https://ptpb.pw/"
- [nongnu] elpa/webpaste f338ca7 083/298: Added Travis-CI build status image, (continued)
- [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, 2021/12/09
- [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 <=
- [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
- [nongnu] elpa/webpaste 899e08e 157/298: Change install method of emacs in travis for faster build times, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e87a37c 158/298: Switched from ert to buttercup for testing, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 865ff10 159/298: Disable this test for now since it breaks, ELPA Syncer, 2021/12/09