[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 7e277119fc 221/301: Fix doc string for markup tag
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 7e277119fc 221/301: Fix doc string for markup tag |
Date: |
Mon, 10 Jan 2022 22:59:04 -0500 (EST) |
branch: elpa/iedit
commit 7e277119fccc606511d7f8299a8ed445f9c68542
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Fix doc string for markup tag
---
iedit.el | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/iedit.el b/iedit.el
index 30762667ea..412c38d6fd 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-21 22:54:56 Victor Ren>
+;; Time-stamp: <2016-06-22 23:58:50 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.9.9
@@ -67,7 +67,6 @@
;;; todo:
;; - Add more easy access keys for whole occurrence
-;; - pair in html
;;; Contributors
;; Adam Lindberg <eproxus@gmail.com> added a case sensitivity option that can
be toggled.
@@ -134,14 +133,14 @@ point should be included in the replacement region.")
"This is a global variable indicating how many lines down from
point should be included in the replacement region.")
-(defvar iedit-default-occurrence-mode-local nil
- "This is a mode special function get a string as occurrence candidate.
-It is called in `iedit-default-occurrence'. This local buffer
+(defvar iedit-default-occurrence-local nil
+ "This is a buffer local function get 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
use this variable:
(add-hook 'perl-mode-hook
'(lambda ()
- (setq iedit-default-occurrence-mode-local
+ (setq iedit-default-occurrence-local
'(lambda ()
(let* ((bound (bounds-of-thing-at-point 'symbol))
(prefix-char (char-after (1- (car bound)))))
@@ -158,7 +157,7 @@ use this variable:
(make-variable-buffer-local 'iedit-last-occurrence-local)
(make-variable-buffer-local 'iedit-initial-string-local)
(make-variable-buffer-local 'iedit-initial-region)
-(make-variable-buffer-local 'iedit-default-occurrence-mode-local)
+(make-variable-buffer-local 'iedit-default-occurrence-local)
(or (assq 'iedit-mode minor-mode-alist)
(nconc minor-mode-alist
@@ -288,12 +287,10 @@ region in the buffer (possibly narrowed) or a region are
highlighted. If one occurrence is modified, the change are
propagated to all other occurrences simultaneously.
-If region is not active, the current symbol (returns from
-`iedit-default-occurrence') is used as the occurrence by default.
-The occurrences of the current symbol, but not include
-occurrences that are part of other symbols, are highlighted. If
-you still want to match all the occurrences, even though they are
-parts of other symbols, you may have to mark the symbol first.
+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) .
In the above two situations, with digit prefix argument 0, only
occurrences in current function are matched. This is good for
@@ -423,7 +420,7 @@ Keymap used within overlays:
(progn
(setq iedit-occurrence-keymap iedit-occurrence-keymap-default)
(iedit-make-markers-overlays iedit-occurrences-overlays)
- (setq counter (length iedit-occurrences-overlays)))
+ (setq counter 2))
(setq iedit-occurrence-keymap iedit-mode-occurrence-keymap)
(setq counter (iedit-make-occurrences-overlays occurrence-regexp beg
end)))
(message "%d matches for \"%s\""
@@ -442,7 +439,8 @@ Keymap used within overlays:
(add-hook 'iedit-aborting-hook 'iedit-done nil t))
(defun iedit-default-occurrence()
- "This function returns a string as occurrence candidate."
+ "This function returns a string as occurrence candidate.
+The candidate depends on the thing at point."
(let (occurrence-str)
(cond
((thing-at-point 'url)
@@ -453,8 +451,8 @@ Keymap used within overlays:
(setq occurrence-str (thing-at-point 'email))
(setq iedit-occurrence-type-local 'email))
- (iedit-default-occurrence-mode-local
- (funcall iedit-default-occurrence-mode-local))
+ (iedit-default-occurrence-local
+ (funcall iedit-default-occurrence-local))
;; Try to mark sgml pair anyway
((and (not (bound-and-true-p sgml-electric-tag-pair-mode))
(setq occurrence-str (iedit-mark-sgml-pair)))
- [nongnu] elpa/iedit 2221a517a8 227/301: Fix comments, (continued)
- [nongnu] elpa/iedit 2221a517a8 227/301: Fix comments, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 0ef1410ec5 259/301: Add iedit-show/hide-occurrence-lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 326b6f7787 263/301: Merge `iedit-number-occurrences' and `iedit-increment-occurrences', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 02bad3e3b9 240/301: Fix compile warnings, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit abb577e447 236/301: Merge pull request #77 from EdwardBetts/spelling, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 39919478f9 230/301: fix C-R-RET key binding problem in term, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 77e1661134 246/301: Readme.org: add melpa/stable version badges, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f566ade5e4 264/301: Workaround for slow `c-before-change', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 64c3505d04 235/301: correct spelling mistake, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2f0c484817 283/301: Move iedit-buffering related to `iedit-lib', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7e277119fc 221/301: Fix doc string for markup tag,
ELPA Syncer <=
- [nongnu] elpa/iedit 50b7da10ac 251/301: Add option `iedit-auto-buffering`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3211c2ee6c 228/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 93b642f0a8 286/301: A few small fixes, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 02b4a6553e 243/301: Add the index of the current occurrence on mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06e600aae2 222/301: Fix: use return value of iedit-default-occurrence-mode-local, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit abcc27a9f0 231/301: Add Installation instruction, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8b620efacb 262/301: Replace `inhibit-modification-hooks' with `iedit-updating', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6d2694356c 253/301: Move "declare-function" invocations outside of "when" statement., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f6682186f0 242/301: Replace eval-after-load with require check, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 14376a97e0 223/301: Ignore error in `iedit-mark-sgml-pair', ELPA Syncer, 2022/01/10