[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 03b647be8b 234/301: Expand or collapse mutiple lines
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 03b647be8b 234/301: Expand or collapse mutiple lines |
Date: |
Mon, 10 Jan 2022 22:59:05 -0500 (EST) |
branch: elpa/iedit
commit 03b647be8bd35ca82916f2ace27a95d5b85e8ecf
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Expand or collapse mutiple lines
---
iedit.el | 37 +++++++++++++++++--------------------
1 file changed, 17 insertions(+), 20 deletions(-)
diff --git a/iedit.el b/iedit.el
index 9a054fe905..040008b267 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-10-27 10:28:30 Victor Ren>
+;; Time-stamp: <2016-12-19 14:15:36 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.9.9.9
@@ -301,7 +301,7 @@ propagated to all other occurrences simultaneously.
If region is not active, `iedit-default-occurrence' is called to
get an occurrence candidate, according to the thing at point. It
might be url, email address, markup tag or current symbol(or
-word) .
+word).
In the above two situations, with digit prefix argument 0, only
occurrences in current function are matched. This is good for
@@ -632,9 +632,8 @@ the initial string globally."
"Expands the top or bottom of the search region upwards or
downwards by `amount' lines. The region being acted upon is
controlled with `where' ('top to act on the top, anything else
-for the bottom). With a prefix, collapses the top or bottom of
-the search region by `amount' lines."
- (interactive "P")
+for the bottom). If amount is negative, collapses the top or
+bottom of the search region by `-amount' lines."
(let ((occurrence (iedit-current-occurrence-string)))
(iedit-cleanup)
(if (eq where 'top)
@@ -651,23 +650,21 @@ the search region by `amount' lines."
(length iedit-occurrences-overlays)
(if (= 1 (length iedit-occurrences-overlays)) "" "es"))))
-(defun iedit-expand-up-a-line (&optional arg)
+(defun iedit-expand-up-a-line (&optional N)
"After start iedit-mode only on current symbol or the active
-region, this function expands the search region upwards by one
-line. With a prefix, bring the top of the region back down one
-line."
- (interactive "P")
- (iedit-expand-by-a-line 'top
- (if arg -1 1)))
-
-(defun iedit-expand-down-a-line (&optional arg)
+region, this function expands the search region upwards by N
+line. N defaults to 1. If N is negative, collapses the top of
+the search region by `-N' lines."
+ (interactive "p")
+ (iedit-expand-by-a-line 'top N))
+
+(defun iedit-expand-down-a-line (&optional N)
"After start iedit-mode only on current symbol or the active
-region, this function expands the search region downwards by one
-line. With a prefix, bring the bottom of the region back up one
-line."
- (interactive "P")
- (iedit-expand-by-a-line 'bottom
- (if arg -1 1)))
+region, this function expands the search region downwards by N
+line. N defaults to 1. If N is negative, collapses the bottom
+of the search region by `-N' lines."
+ (interactive "p")
+ (iedit-expand-by-a-line 'bottom N))
(defun iedit-expand-down-to-occurrence (&optional arg)
"Expand the search region downwards until reaching a new occurrence.
- [nongnu] elpa/iedit 19abf6e871 247/301: Update URLs to emacswiki, (continued)
- [nongnu] elpa/iedit 19abf6e871 247/301: Update URLs to emacswiki, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ed52608a0d 268/301: Fix conjoined occurrences issues, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 890a11657c 226/301: Merge pull request #66 from pstray/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a5ce38a9c3 123/301: fix deleting char at end of overlay with mirror at EOB, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8219304d9c 051/301: Fix problem when iedit-stop-buffering is called when current point is at any occurrence., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d872cb77e5 058/301: Update comments for restricting, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 75552aa1c8 090/301: Rename, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 33d1b24e04 080/301: Fix compatible with Emacs 22 problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ad8fd96f86 215/301: Add support for markup tags, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5b14cc9fca 241/301: Add a demo gif and update document, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 03b647be8b 234/301: Expand or collapse mutiple lines,
ELPA Syncer <=
- [nongnu] elpa/iedit 88101571fe 288/301: Make it an option to save occurrence in the kill ring, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ca844b40f4 265/301: Fix package URLs in commentaries, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3a892bac38 277/301: Enhance a test case to compile iedit under clean environment, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f79846e639 275/301: Fix issue #117, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f74ae491f3 291/301: fix failed test cases, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3bd4c15e3d 301/301: Add license file with GPLv3, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 344ff8de91 299/301: Add iedit-autoloads.el to .gitignore, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f88df1072b 116/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1bced99a26 109/301: Fix bugs when undo is in progress, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a5d117a75a 122/301: add test-case for deleting char at end of overlay with mirror at EOB, ELPA Syncer, 2022/01/10