[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 1c2a9b8 047/298: Merge pull request #1 from syohe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 1c2a9b8 047/298: Merge pull request #1 from syohex/fix-package |
Date: |
Thu, 9 Dec 2021 18:59:41 -0500 (EST) |
branch: elpa/webpaste
commit 1c2a9b85882277592df0e60e84b3d3a129f7ece6
Merge: c298428 53dcac8
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #1 from syohex/fix-package
Fix package about byte-compile warnings
---
webpaste.el | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index ba030c5..100ef43 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -39,14 +39,16 @@
(defgroup webpaste nil
"Configuration options for webpaste.el where you can define paste providers,
-provider priority for which order which provider should be tried when used.")
+provider priority for which order which provider should be tried when used."
+ :group 'web)
(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)
+ :group 'webpaste
+ :type '(repeat string))
(defvar webpaste-tested-providers ()
@@ -110,7 +112,9 @@ each run.")
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)
+ :group 'webpaste
+ :type '(alist :key-type (string :tag "provider name")
+ :value-type (function :tag "lambda function to the
provider")))
;; Function we use to return the RETURNED-URL from the service
@@ -180,6 +184,12 @@ When we run out of providers to try, it will restart since
(let ((text (buffer-substring (mark) (point))))
(webpaste-paste-text text)))
+;;;###autoload
+(defmacro webpaste-save-mark-and-excursion (&rest body)
+ "Wraps usage of sending BODY to ‘save-mark-and-excursion’ /
‘save-excursion’."
+ (if (< emacs-major-version 25)
+ `(save-excursion ,@body)
+ `(save-mark-and-excursion ,@body)))
;;;###autoload
(defun webpaste-paste-buffer ()
@@ -191,15 +201,6 @@ When we run out of providers to try, it will restart since
(goto-char (point-max)) ; Go to point-max
(webpaste-paste-region))) ; Paste region
-
-;;;###autoload
-(defmacro webpaste-save-mark-and-excursion (&rest body)
- "Wraps usage of sending BODY to ‘save-mark-and-excursion’ /
‘save-excursion’."
- (if (< emacs-major-version 25)
- `(save-excursion ,@body)
- `(save-mark-and-excursion ,@body)))
-
-
(provide 'webpaste)
;;; webpaste.el ends here
- [nongnu] elpa/webpaste b8eb0ad 052/298: Change while to dolist, (continued)
- [nongnu] elpa/webpaste b8eb0ad 052/298: Change while to dolist, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste abe4fd5 053/298: Change from add-to-list to cl-pushnew, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 015bb9d 057/298: Refactored away add-to-list in favor of cl-pushnew in two more places, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 7688876 058/298: Interactive r for pasting region, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste e12faa5 059/298: Added macro to create provider lambdas, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f860028 060/298: Migrate providers to macro, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ccef003 064/298: Replace away newlines from ix.io output, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6039591 065/298: Added sprunge.us as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 984f838 068/298: Added dpaste.de as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 53dcac8 046/298: Move definition position, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 1c2a9b8 047/298: Merge pull request #1 from syohex/fix-package,
ELPA Syncer <=
- [nongnu] elpa/webpaste 6d2e063 048/298: Spacing between blocks, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste d7700eb 050/298: Merge pull request #2 from syohex/cl-lib, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c33f341 019/298: Added custom for provider priority, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cc05738 025/298: Added some TODO notes, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 729e277 030/298: Paste to selected paste provider at the top of the list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 80f0afe 051/298: Added provider to todo-list, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste cb9cca7 054/298: Stop moving point and remove usage of save-excursion and therefore, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 2250993 061/298: Fix eval of macros, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste c60c712 062/298: Checkdoc, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 39809d8 063/298: Update documentation, ELPA Syncer, 2021/12/09