[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/webpaste af0474e 139/298: Merge branch 'naclander-master'
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/webpaste af0474e 139/298: Merge branch 'naclander-master' |
Date: |
Thu, 9 Dec 2021 19:00:01 -0500 (EST) |
branch: elpa/webpaste
commit af0474eceba66570ed277a805ac0dc433b1299b4
Merge: 7d03ed3 b03b90f
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>
Merge branch 'naclander-master'
---
webpaste.el | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/webpaste.el b/webpaste.el
index fa7e5cf..2d303ed 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -68,6 +68,11 @@ default to all providers in order defined in
‘webpaste-providers’ list."
:type '(alist :key-type symbol :value-type string)
:group 'webpaste)
+(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.
@@ -372,8 +377,11 @@ Argument POINT Current point.
Argument MARK Current mark."
(interactive "r")
- ;; Extract the buffer contents with buffer-substring and paste it
- (webpaste-paste-text (buffer-substring point mark)))
+ ;; unless we wanted a paste confirmation and declined
+ (unless (and webpaste/paste-confirmation
+ (not (yes-or-no-p "paste entire region?")))
+ ;; Extract the buffer contents with buffer-substring and paste it
+ (webpaste-paste-text (buffer-substring point mark))))
;;;###autoload
@@ -381,8 +389,11 @@ Argument MARK Current mark."
"Paste current buffer to some paste service."
(interactive)
- ;; Extract the buffer contents with buffer-substring and paste it
- (webpaste-paste-text (buffer-substring (point-min) (point-max))))
+ ;; unless we wanted a paste confirmation and declined
+ (unless (and webpaste/paste-confirmation
+ (not (yes-or-no-p "paste entire buffer?")))
+ ;; Extract the buffer contents with buffer-substring and paste it
+ (webpaste-paste-text (buffer-substring (point-min) (point-max)))))
- [nongnu] elpa/webpaste f378ca9 075/298: Added Cask file, (continued)
- [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, 2021/12/09
- [nongnu] elpa/webpaste af0474e 139/298: Merge branch 'naclander-master',
ELPA Syncer <=
- [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
- [nongnu] elpa/webpaste 899e08e 157/298: Change install method of emacs in travis for faster build times, ELPA Syncer, 2021/12/09