From 4fb8873d2d2073bfab60aec395fd9b188f33e37d Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sat, 8 Oct 2016 07:42:15 +0200 Subject: [PATCH] Changed emacs version requires from 25 to 24 --- webpaste.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webpaste.el b/webpaste.el index 385e5ab..8493f0c 100644 --- a/webpaste.el +++ b/webpaste.el @@ -7,7 +7,7 @@ ;; Package-Version: 0.0.1 ;; Version: 0.0.1 ;; Keywords: convenience, comm, paste -;; Package-Requires: ((emacs "25.1") (request "0.2.0")) +;; Package-Requires: ((emacs "24.1") (request "0.2.0")) ;;; Commentary: @@ -184,6 +184,13 @@ When we run out of providers to try, it will restart since (webpaste-paste-region))) ; Paste region +;; Define macro for emacs <25 compability +(eval-when-compile + (when (< emacs-major-version 25) + (defmacro save-mark-and-excursion (&rest body) + `(save-excursion ,@body)))) + + (provide 'webpaste) ;;; webpaste.el ends here