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

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

[nongnu] elpa/webpaste 7688876 058/298: Interactive r for pasting region


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 7688876 058/298: Interactive r for pasting region
Date: Thu, 9 Dec 2021 18:59:44 -0500 (EST)

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

    Interactive r for pasting region
---
 webpaste.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 9c1403a..0222d8c 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -173,12 +173,12 @@ When we run out of providers to try, it will restart since
 
 
 ;;;###autoload
-(defun webpaste-paste-region ()
+(defun webpaste-paste-region (point mark)
   "Paste selected region to some paste service."
-  (interactive)
+  (interactive "r")
 
   ;; Extract the buffer contents with buffer-substring and paste it
-  (webpaste-paste-text (buffer-substring (mark) (point))))
+  (webpaste-paste-text (buffer-substring point mark)))
 
 
 ;;;###autoload



reply via email to

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