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

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

[nongnu] elpa/webpaste 6694269 018/298: Add resulting url to kill ring f


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 6694269 018/298: Add resulting url to kill ring for easy pasting
Date: Thu, 9 Dec 2021 18:59:36 -0500 (EST)

branch: elpa/webpaste
commit 6694269ef31144f4b5839c3c0bcad6e4149b0308
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Add resulting url to kill ring for easy pasting
---
 webpaste.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/webpaste.el b/webpaste.el
index 3a4d94b..34958ae 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -39,7 +39,11 @@
 (defun webpaste-return-url (returned-url)
   "Return RETURNED-URL to user from the result of the paste service."
 
-  (message (concat "We got this URL back: " returned-url)))
+  ;; Add RETURNED-URL to killring for easy pasting
+  (kill-new returned-url)
+
+  ;; Notify user
+  (message (concat "Added " returned-url " to kill ring.")))
 
 
 ;;;###autoload



reply via email to

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