[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 745ea6f812 239/301: Rename iedit-toggle-unmatched-li
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 745ea6f812 239/301: Rename iedit-toggle-unmatched-lines-visible to iedit-show/hide-unmatched-lines |
Date: |
Mon, 10 Jan 2022 22:59:05 -0500 (EST) |
branch: elpa/iedit
commit 745ea6f81230d6fe0394fdc299c6130971aff86b
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Rename iedit-toggle-unmatched-lines-visible to
iedit-show/hide-unmatched-lines
Fix some spell errors also
---
iedit-lib.el | 33 +++++++++++++++++++++------------
iedit-rect.el | 5 +++--
iedit-tests.el | 6 +++---
iedit.el | 14 ++++++++------
4 files changed, 35 insertions(+), 23 deletions(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index 5efd812654..f9b4738642 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2017-09-14 23:10:36 Victor Ren>
+;; Time-stamp: <2017-09-15 00:05:18 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous rectangle refactoring
;; Version: 0.9.9
@@ -33,8 +33,14 @@
;; - Create occurrence overlays
;; - Navigate in the occurrence overlays
;; - Modify the occurrences
-;; - Hide/unhide
+;; - Hide/show
;; - Other basic support APIs
+;;
+;; A few concepts that help you understand what this is about:
+;; Occurrence
+;; Occurrence overlay
+;; Unmatched lines
+;; Context lines
;;; todo:
;; - Update comments for APIs
@@ -45,7 +51,8 @@
(eval-when-compile (require 'cl))
(defgroup iedit nil
- "Edit multiple regions in the same way simultaneously."
+ "Edit multiple regions in the same way simultaneously.
+The regions are usually the same, called occurrences in the mode."
:prefix "iedit-"
:group 'replace
:group 'convenience)
@@ -96,7 +103,8 @@ If no-nil, matching is case sensitive.")
(defvar iedit-unmatched-lines-invisible nil
"This is buffer local variable which indicates whether
-unmatched lines are hided.")
+unmatched lines are hided.
+Unmatched lines are the lines that don't have occurrences.")
(defvar iedit-forward-success t
"This is buffer local variable which indicates the moving
@@ -158,7 +166,7 @@ is not applied to other occurrences when it is true.")
(define-key map (kbd "<S-tab>") 'iedit-prev-occurrence)
(define-key map (kbd "<S-iso-lefttab>") 'iedit-prev-occurrence)
(define-key map (kbd "<backtab>") 'iedit-prev-occurrence)
- (define-key map (kbd "C-'") 'iedit-toggle-unmatched-lines-visible)
+ (define-key map (kbd "C-'") 'iedit-show/hide-unmatched-lines)
map)
"Keymap used while Iedit mode is enabled.")
@@ -188,7 +196,7 @@ is not applied to other occurrences when it is true.")
(when (require 'multiple-cursors-core nil t)
(defun iedit-switch-to-mc-mode ()
"Switch to multiple-cursors-mode. So that you can navigate
-out of the occurrence and edit simutaneously with multiple
+out of the occurrence and edit simultaneously with multiple
cursors."
(interactive "*")
(iedit-barf-if-buffering)
@@ -205,9 +213,9 @@ cursors."
(multiple-cursors-mode 1)
))
;; `multiple-cursors-mode' runs `post-command-hook' function for all the
- ;; currors. `post-command-hook' is setup in `iedit-switch-to-mc-mode' So the
- ;; function is excuted after `iedit-switch-to-mc-mode'. It is not expected.
- ;; `mc/cmds-to-runn-once' is for skipping this.
+ ;; cursors. `post-command-hook' is setup in `iedit-switch-to-mc-mode' So the
+ ;; function is executed after `iedit-switch-to-mc-mode'. It is not expected.
+ ;; `mc/cmds-to-run-once' is for skipping this.
(add-to-list 'mc/cmds-to-run-once 'iedit-switch-to-mc-mode)
(define-key iedit-occurrence-keymap-default (kbd "M-M")
'iedit-switch-to-mc-mode))
@@ -549,8 +557,8 @@ the buffer."
(setq pos (previous-single-char-property-change pos
'iedit-occurrence-overlay-name)))
pos))
-(defun iedit-toggle-unmatched-lines-visible (&optional arg)
- "Toggle whether to display unmatched lines.
+(defun iedit-show/hide-unmatched-lines (&optional arg)
+ "Show or hide unmatched lines.
A prefix ARG specifies how many lines before and after the
occurrences are not hided; negative is treated the same as zero.
@@ -957,4 +965,5 @@ it just means mark is active."
;; LocalWords: substring cadr keymap defconst purecopy bkm defun princ prev
;; LocalWords: iso lefttab backtab upcase downcase concat setq autoload arg
;; LocalWords: refactoring propertize cond goto nreverse progn rotatef eq elp
-;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed
+;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed yas
+;; LocalWords: defface alists SPC mc cmds
diff --git a/iedit-rect.el b/iedit-rect.el
index f12a632a65..ff25028a36 100644
--- a/iedit-rect.el
+++ b/iedit-rect.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-09-28 00:03:47 Victor Ren>
+;; Time-stamp: <2017-09-15 00:07:28 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous rectangle refactoring
;; Version: 0.9.9
@@ -185,4 +185,5 @@ The behavior is the same as `kill-rectangle' in rect mode."
;; LocalWords: substring cadr keymap defconst purecopy bkm defun princ prev
;; LocalWords: iso lefttab backtab upcase downcase concat setq autoload arg
;; LocalWords: refactoring propertize cond goto nreverse progn rotatef eq elp
-;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed
+;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed Ren
+;; LocalWords: cua ctl RET
diff --git a/iedit-tests.el b/iedit-tests.el
index efb9c44e0b..a83f438949 100644
--- a/iedit-tests.el
+++ b/iedit-tests.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-09-20 00:28:29 Victor Ren>
+;; Time-stamp: <2017-09-14 23:49:18 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Version: 0.97
;; X-URL: http://www.emacswiki.org/emacs/Iedit
@@ -34,8 +34,8 @@
(ert-deftest iedit-compile-test ()
(let ((byte-compile-error-on-warn t ))
- (should (byte-compile-file "~/.emacs.d/site-lisp/iedit/iedit.el"))
- (delete-file "~/.emacs.d/site-lisp/iedit/iedit.elc" nil)))
+ (should (byte-compile-file "./iedit.el"))
+ (delete-file "./iedit.elc" nil)))
(defmacro with-iedit-test-buffer (buffer-name &rest body)
(declare (indent 1) (debug t))
diff --git a/iedit.el b/iedit.el
index 99ccd86952..b0e16bd6bc 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-12-19 14:15:36 Victor Ren>
+;; Time-stamp: <2017-09-15 00:07:02 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.9.9.9
@@ -97,7 +97,7 @@ isearch-mode-map, esc-map and help-map."
(defvar iedit-use-symbol-boundaries t
"If no-nil, matches have to start and end at symbol boundaries. Otherwise,
-matches starts and end at word bondaries.")
+matches starts and end at word boundaries.")
(defvar iedit-occurrence-type-local 'symbol
"This is buffer local variable which indicates the occurrence
@@ -135,7 +135,7 @@ point should be included in the replacement region.")
(defvar iedit-default-occurrence-local nil
"This is a function which returns a string as occurrence candidate.
It is called in `iedit-default-occurrence'. This buffer local
-varialbe can be configured in some modes. An example of how to
+variable can be configured in some modes. An example of how to
use this variable:
(add-hook 'perl-mode-hook
'(lambda ()
@@ -488,7 +488,7 @@ If the cursor is on a markup tag, the position of the
opening and
closing markup tags are saved in `iedit-occurrence-overlays'
temporarily.
-The code is adpated from
+The code is adapted from
`sgml-electric-tag-pair-before-change-function'.
Return the tag if succeeded, nil if failed."
@@ -746,8 +746,10 @@ prefix, bring the top of the region back down one
occurrence."
;;; iedit.el ends here
;; LocalWords: iedit el MERCHANTABILITY kbd isearch todo ert Lindberg Tassilo
-;; LocalWords: eval defgroup defcustom boolean defvar assq alist nconc
+;; LocalWords: eval defgroup defcustom boolean defvar assq alist nconc Ren
;; LocalWords: substring cadr keymap defconst purecopy bkm defun princ prev
;; LocalWords: iso lefttab backtab upcase downcase concat setq autoload arg
;; LocalWords: refactoring propertize cond goto nreverse progn rotatef eq elp
-;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed
+;; LocalWords: dolist pos unmatch args ov sReplace iedit's cdr quote'ed RET
+;; LocalWords: sgml esc num perl memq url functionp funcall str alnum endp
+;; LocalWords: sexp bol eol
- [nongnu] elpa/iedit d335d6842a 183/301: Check if the default keybinding of iedit-mode is taken, (continued)
- [nongnu] elpa/iedit d335d6842a 183/301: Check if the default keybinding of iedit-mode is taken, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e575cbf569 256/301: Allow adding a incremented number in each occurence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 796ee5298d 237/301: fix the key conflict with yas-minor-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e1decb37e5 245/301: Fix verion numbers, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f09b675c67 249/301: Add an option 'iedit-auto-narrow', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 44601e01fa 269/301: fix an issue with electric pair, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3f9eed229e 232/301: Allow custom mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c-before-change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 01767ddca3 258/301: Fix a failed testcase in batch mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7e507b370b 255/301: Set the FIXEDCASE argument of replace-match in iedit-replace-occurrences to T to allow preserving case., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 745ea6f812 239/301: Rename iedit-toggle-unmatched-lines-visible to iedit-show/hide-unmatched-lines,
ELPA Syncer <=
- [nongnu] elpa/iedit dfed75064e 285/301: Save and restore `line-move-ignore-invisible', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c448864424 216/301: Remove iedit-unmatched-lines-invisible-default, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5fdf89edc9 238/301: Fix switch to mc mode problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit de54411d0e 220/301: Detect markup tag only if region inactive, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ac51555341 282/301: New feature: ignore hidden occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 31986b640a 289/301: Take iedit-goto-first-occurrence back, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5e7253c36e 274/301: Update documents and comments, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d4a878d52e 280/301: Minor docstring typo fix: covert -> convert., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4765fa7a4d 271/301: Fix a conjoined overlay issue, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 68233e302d 300/301: Fix some byte-compiler warnings in Emacs 28, ELPA Syncer, 2022/01/10