emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste 5505685 226/298: Drop simpleclip support


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 5505685 226/298: Drop simpleclip support
Date: Thu, 9 Dec 2021 19:00:19 -0500 (EST)

branch: elpa/webpaste
commit 5505685f9f579d9e3583335bf4cfdf739589d070
Author: Elis Hirwing <elis@hirwing.se>
Commit: Elis Hirwing <elis@hirwing.se>

    Drop simpleclip support
---
 README.org  |  9 +++++----
 webpaste.el | 15 ---------------
 2 files changed, 5 insertions(+), 19 deletions(-)

diff --git a/README.org b/README.org
index a5e36cc..ece5046 100644
--- a/README.org
+++ b/README.org
@@ -99,12 +99,13 @@ If you have 
[[https://github.com/rolandwalker/simpleclip][simpleclip]] installed
 clipboard. You can enable this with
 
 #+BEGIN_SRC emacs-lisp
-(setq webpaste-copy-to-clipboard t)
+  ;; To build your own hook to use simpleclip, you could do like this:
+  (add-hook 'webpaste-return-url-hook
+            (lambda (url)
+              (message "Copied URL to clipboard: %S" url)
+              (simpleclip-set-contents url)))
 #+END_SRC
 
-Warning: This option is deprecated and will be dropped in the future. Please
-use a custom hook instead.
-
 *** Open the recently created paste in the browser
 To enable opening of recently created pastes in an external browser, you can
 enable the option =webpaste-open-in-browser= by setting this value to a
diff --git a/webpaste.el b/webpaste.el
index dea11af..b87405b 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -68,16 +68,6 @@ This uses `browse-url-generic' to open URLs."
   :type 'boolean)
 
 
-(defcustom webpaste-copy-to-clipboard nil
-  "Uses simpleclip to send the provider's returned URL to the clipboard.
-This uses `simpleclip-set-contents' to copy to clipboard.
-
-Warning: This option is deprecated and will be dropped in the future.  Please
-use a hook with `webpaste-return-url-hook' in the future."
-  :group 'webpaste
-  :type 'boolean)
-
-
 (defcustom webpaste-add-to-killring t
   "Add the returned URL to the killring after paste."
   :group 'webpaste
@@ -431,11 +421,6 @@ Optional params:
   (when webpaste-open-in-browser
     (browse-url-generic returned-url))
 
-  ;; Send RETURNED-URL to the clipboard using simpleclip
-  (when webpaste-copy-to-clipboard
-    (simpleclip-set-contents returned-url)
-    (message "URL copied to clipboard. -- Warning: This option is deprecated, 
please use a hook instead."))
-
   ;; Add RETURNED-URL to killring for easy pasting
   (when webpaste-add-to-killring
     (kill-new returned-url)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]