[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste 14a1e6e 022/298: Added general function to paste
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste 14a1e6e 022/298: Added general function to paste text |
Date: |
Thu, 9 Dec 2021 18:59:37 -0500 (EST) |
branch: elpa/webpaste
commit 14a1e6e09220443cb86e09fcd491bf1d2df327e7
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Added general function to paste text
---
webpaste.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/webpaste.el b/webpaste.el
index cbbfb55..61fb607 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -52,7 +52,7 @@
(interactive)
(let ((text (buffer-substring (mark) (point))))
- (funcall (cdr (car webpaste-providers)) text)))
+ (webpaste-paste-text text)))
;;;###autoload
@@ -66,6 +66,13 @@
(webpaste-paste-region))) ; Paste region
+;; Function to do pasting
+(defun webpaste-paste-text (text)
+ "Paste TEXT to some paste service."
+
+ (funcall (cdr (car webpaste-providers)) text))
+
+
;;; Define providers
(defcustom webpaste-providers
'(("ix.io" .
- [nongnu] elpa/webpaste 68ebb2c 006/298: Add request.el as dependency, (continued)
- [nongnu] elpa/webpaste 68ebb2c 006/298: Add request.el as dependency, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 6c9f1ff 007/298: Add ix.io as provider, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste f3794ea 009/298: Send data to ix.io, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste 8f074b4 013/298: Autoload the two pasting functions, ELPA Syncer, 2021/12/09
- [nongnu] elpa/webpaste ff4194e 014/298: Make new code section for providers, ELPA Syncer, 2021/12/09
- [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 <=
- [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, 2021/12/09
- [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