[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 1eabaa061a 210/301: Merge branch 'master' of github.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 1eabaa061a 210/301: Merge branch 'master' of github.com:victorhge/iedit |
Date: |
Mon, 10 Jan 2022 22:59:03 -0500 (EST) |
branch: elpa/iedit
commit 1eabaa061af0d9cee7f283be1ed46bf895681c56
Merge: b4c7e41049 607e82c7b0
Author: Victor Ren <victor.ren@ericsson.com>
Commit: Victor Ren <victor.ren@ericsson.com>
Merge branch 'master' of github.com:victorhge/iedit
Change-Id: I67a84523b03adc52337f3f70764d055ba9b38ed8
---
iedit.el | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/iedit.el b/iedit.el
index 91d166ce78..dedac44392 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-11 13:29:49 Victor Ren>
+;; Time-stamp: <2016-06-12 13:58:26 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.9.9
@@ -128,28 +128,30 @@ 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-current-symbol '(lambda () (current-word t))
+(defvar iedit-default-occurrence '(lambda () (current-word t))
"This is a function which returns a string as occurrence candidate.
-This local buffer varialbe can be configured in some modes.
-An example of how to use this variable:
+The default is the current symbol under the point. This local
+buffer varialbe can be configured in some modes. An example of
+how to use this variable:
(add-hook 'perl-mode-hook
'(lambda ()
- (setq iedit-current-symbol
+ (setq iedit-default-occurrence
'(lambda ()
- (setq iedit-only-complete-symbol-local nil)
(let* ((bound (bounds-of-thing-at-point 'symbol))
(prefix-char (char-after (1- (car bound)))))
(if (memq prefix-char '(?$ ?% ?@ ?*))
- (buffer-substring-no-properties (1- (car bound))
(cdr bound))
+ (progn
+ (setq iedit-only-complete-symbol-local nil)
+ (buffer-substring-no-properties (1- (car bound))
(cdr bound)))
(buffer-substring-no-properties (car bound) (cdr
bound))))))))
-'$%@*' will be included in the occurrences in perl mode")
+'$%@*' will be included in the occurrences in perl mode.")
(make-variable-buffer-local 'iedit-mode)
(make-variable-buffer-local 'iedit-only-complete-symbol-local)
(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-current-symbol)
+(make-variable-buffer-local 'iedit-default-occurrence)
(or (assq 'iedit-mode minor-mode-alist)
(nconc minor-mode-alist
@@ -284,7 +286,7 @@ 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-current-symbol') is used as the occurrence by default.
+`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
@@ -353,8 +355,8 @@ Keymap used within overlays:
(setq occurrence (buffer-substring-no-properties
(mark) (point)))
(setq iedit-only-complete-symbol-local nil))
- (t (setq iedit-only-complete-symbol-local t); might be changed by
iedit-current-symbol
- (setq occurrence (funcall iedit-current-symbol))
+ (t (setq iedit-only-complete-symbol-local t); might be changed by
iedit-default-occurrence
+ (setq occurrence (funcall iedit-default-occurrence))
(unless occurrence
(error "No candidate of the occurrence, cannot enable Iedit
mode"))))
;; Get the scope
- [nongnu] elpa/iedit d89ee51834 148/301: Merge branch 'redo-prs' of github.com:lewang/iedit, (continued)
- [nongnu] elpa/iedit d89ee51834 148/301: Merge branch 'redo-prs' of github.com:lewang/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit fd801e77df 165/301: Merge pull request #38 from mgalgs/narrow-around-current-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 52c4865e5b 197/301: Add special prefix argument 1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8d20094a11 182/301: Use the original case in the iedit-replace default value, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1242c675d2 164/301: Add save-window-excursion, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b5a3415b00 180/301: Merge pull request #47 from zhenya1007/help-char-can-be-meta, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6019d3c376 170/301: defvar iedit-current-symbol, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 22f4729ae9 150/301: Add test case for iedit-hide-unmatched-lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4884f61a3b 188/301: Merge branch 'master' of github.com:victorhge/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 607e82c7b0 208/301: rename `iedit-current-symbol` to `iedit-default-occurrence`, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1eabaa061a 210/301: Merge branch 'master' of github.com:victorhge/iedit,
ELPA Syncer <=
- [nongnu] elpa/iedit a6d8568379 161/301: Merge pull request #35 from lewang/ensure-skip-mofication-once, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 54b2495af7 214/301: More default occurrence types, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5b0b618a20 219/301: Quit iedit-mode in `before-revert-hook', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7a6a0d65ab 252/301: Replace deprecated cl with cl-lib, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c1b672cfc9 270/301: Fix bug #115. Now properly disable iedit-mode during desktop restore., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 76ff4aa6b9 218/301: Merge pull request #64 from justbur/sgml-error, ELPA Syncer, 2022/01/10
- [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