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

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

[nongnu] elpa/webpaste 53dcac8 046/298: Move definition position


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste 53dcac8 046/298: Move definition position
Date: Thu, 9 Dec 2021 18:59:41 -0500 (EST)

branch: elpa/webpaste
commit 53dcac833979248566e01f7e6012e85ff517cbb1
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>

    Move definition position
    
    It should be put before used.
---
 webpaste.el | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 393c5f0..100ef43 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -184,6 +184,12 @@ When we run out of providers to try, it will restart since
   (let ((text (buffer-substring (mark) (point))))
     (webpaste-paste-text text)))
 
+;;;###autoload
+(defmacro webpaste-save-mark-and-excursion (&rest body)
+  "Wraps usage of sending BODY to ‘save-mark-and-excursion’ / 
‘save-excursion’."
+  (if (< emacs-major-version 25)
+      `(save-excursion ,@body)
+    `(save-mark-and-excursion ,@body)))
 
 ;;;###autoload
 (defun webpaste-paste-buffer ()
@@ -195,15 +201,6 @@ When we run out of providers to try, it will restart since
    (goto-char (point-max))              ; Go to point-max
    (webpaste-paste-region)))            ; Paste region
 
-
-;;;###autoload
-(defmacro webpaste-save-mark-and-excursion (&rest body)
-  "Wraps usage of sending BODY to ‘save-mark-and-excursion’ / 
‘save-excursion’."
-  (if (< emacs-major-version 25)
-      `(save-excursion ,@body)
-    `(save-mark-and-excursion ,@body)))
-
-
 (provide 'webpaste)
 
 ;;; webpaste.el ends here



reply via email to

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