[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-exchange 22d9b6ce1b 19/46: bump version and rename in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-exchange 22d9b6ce1b 19/46: bump version and rename internal function |
Date: |
Thu, 6 Jan 2022 03:59:51 -0500 (EST) |
branch: elpa/evil-exchange
commit 22d9b6ce1b979c0560b32637d0c2b28bf4082d2b
Author: Dewdrops <v_v_4474@126.com>
Commit: Dewdrops <v_v_4474@126.com>
bump version and rename internal function
---
evil-exchange.el | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/evil-exchange.el b/evil-exchange.el
index 4f334a6a9e..431bacf570 100644
--- a/evil-exchange.el
+++ b/evil-exchange.el
@@ -4,7 +4,7 @@
;; Author: Dewdrops <v_v_4474@126.com>
;; URL: http://github.com/Dewdrops/evil-exchange
-;; Version: 0.2
+;; Version: 0.21
;; Keywords: evil, plugin
;; Package-Requires: ((evil "1.0.7") (cl-lib "0.3"))
@@ -66,19 +66,19 @@
:type 'sexp
:group 'evil-exchange)
-(defvar evil-exchange-position nil "Text position which will be exchanged")
+(defvar evil-exchange--position nil "Text position which will be exchanged")
-(defvar evil-exchange-overlays nil "Overlays used to highlight marked area")
+(defvar evil-exchange--overlays nil "Overlays used to highlight marked area")
-(defun evil-exchange-highlight (beg end)
+(defun evil-exchange--highlight (beg end)
(let ((o (make-overlay beg end nil t nil)))
(overlay-put o 'face evil-exchange-highlight-face)
- (add-to-list 'evil-exchange-overlays o)))
+ (add-to-list 'evil-exchange--overlays o)))
-(defun evil-exchange-remove-overlays ()
- (mapc 'delete-overlay evil-exchange-overlays)
- (setq evil-exchange-overlays nil))
+(defun evil-exchange--remove-overlays ()
+ (mapc 'delete-overlay evil-exchange--overlays)
+ (setq evil-exchange--overlays nil))
;;;###autoload
(autoload 'evil-exchange "evil-exchange"
@@ -90,17 +90,17 @@
(interactive "<R>")
(let ((beg-marker (copy-marker beg t))
(end-marker (copy-marker end nil)))
- (if (null evil-exchange-position)
- ;; call without evil-exchange-position set: store region
+ (if (null evil-exchange--position)
+ ;; call without evil-exchange--position set: store region
(progn
- (setq evil-exchange-position (list beg-marker end-marker type))
+ (setq evil-exchange--position (list beg-marker end-marker type))
;; highlight area marked to exchange
(if (eq type 'block)
- (evil-apply-on-block #'evil-exchange-highlight beg end nil)
- (evil-exchange-highlight beg end)))
+ (evil-apply-on-block #'evil-exchange--highlight beg end nil)
+ (evil-exchange--highlight beg end)))
;; secondary call: do exchange
(cl-destructuring-bind
- (orig-beg orig-end orig-type) evil-exchange-position
+ (orig-beg orig-end orig-type) evil-exchange--position
(cond
;; exchange block region
((and (eq orig-type 'block) (eq type 'block))
@@ -127,15 +127,15 @@
(funcall insert-fn curr-text)
(goto-char curr-beg)
(funcall insert-fn orig-text)))
- (setq evil-exchange-position nil)
- (evil-exchange-remove-overlays))
+ (setq evil-exchange--position nil)
+ (evil-exchange--remove-overlays))
;;;###autoload
(defun evil-exchange-cancel ()
"Cancel current pending exchange."
(interactive)
- (setq evil-exchange-position nil)
- (evil-exchange-remove-overlays)
+ (setq evil-exchange--position nil)
+ (evil-exchange--remove-overlays)
(message "Exchange cancelled"))
;;;###autoload
- [nongnu] elpa/evil-exchange ee17ab47fe 02/46: improve doc, (continued)
- [nongnu] elpa/evil-exchange ee17ab47fe 02/46: improve doc, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange ba64a66e26 11/46: correct autoloads, try to fix #2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 3efefb1bd7 07/46: Add a Bitdeli badge to README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 37fd36065d 10/46: Merge https://github.com/Dewdrops/evil-exchange, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 1e3ba07be4 18/46: Merge pull request #5 from fbergroth/remove-transpose-regions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 7cd34aea03 13/46: use non-advancable marker to mark the end of the region to exchange, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 7f1436b781 14/46: highlight the area marked to exchange, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange d35ebe9a7d 16/46: doc improvement, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 5b0c4ab07c 20/46: add vim-compatible key bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 2ae6e0a203 24/46: ignore tags, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 22d9b6ce1b 19/46: bump version and rename internal function,
ELPA Syncer <=
- [nongnu] elpa/evil-exchange 51c830b65d 21/46: better error message, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 328370e898 23/46: vim compatible bindings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 47c017cc9a 22/46: Fix weird behaviour for adjacent areas, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange e7e3d679b9 27/46: implement exchange across buffers, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 19b4b6277e 29/46: Merge pull request #8 from Dewdrops/cross-buffer, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 9d59144066 30/46: improve doc, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 492c6f7ff0 33/46: Merge pull request #9 from sooheon/support-lispyville, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 6e80e2509b 35/46: mention compatibility issues in doc, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange 8902966aec 36/46: add melpa badge, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-exchange a17eca6d0d 38/46: Merge pull request #11 from Dewdrops/add-test, ELPA Syncer, 2022/01/06