[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit c25992ef7f 199/301: Fix doc strings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit c25992ef7f 199/301: Fix doc strings |
Date: |
Mon, 10 Jan 2022 22:59:02 -0500 (EST) |
branch: elpa/iedit
commit c25992ef7f84eb5b72fb4ddfe626767c29125849
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Fix doc strings
---
iedit.el | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/iedit.el b/iedit.el
index 2f983c8935..2d48e7c57f 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-08 23:23:09 Victor Ren>
+;; Time-stamp: <2016-06-10 20:44:12 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous refactoring
;; Version: 0.97
@@ -82,7 +82,8 @@
(require 'iedit-lib)
(defcustom iedit-current-symbol-default t
- "If no-nil, use current symbol by default for the occurrence."
+ "If no-nil, use current symbol by default for the occurrence.
+Otherwise you have to activate a region to start iedit mode."
:type 'boolean
:group 'iedit)
@@ -95,7 +96,8 @@ For example, when invoking command `iedit-mode' on the \"in\"
in the
:group 'iedit)
(defcustom iedit-toggle-key-default (kbd "C-;")
- "If no-nil, the key is inserted into global-map, isearch-mode-map, esc-map
and help-map."
+ "If no-nil, the key is inserted into global-map,
+isearch-mode-map, esc-map and help-map."
:type 'vector
:group 'iedit)
@@ -143,7 +145,19 @@ point should be included in the replacement region.")
(defvar iedit-current-symbol '(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: todo")
+An example of how to use this variable:
+(add-hook 'perl-mode-hook
+ '(lambda ()
+ (setq iedit-only-at-symbol-boundaries nil)
+ (setq iedit-current-symbol
+ '(lambda ()
+ (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))
+ (buffer-substring-no-properties (car bound) (cdr
bound))))))))
+
+")
(make-variable-buffer-local 'iedit-mode)
(make-variable-buffer-local 'iedit-only-complete-symbol-local)
@@ -436,7 +450,7 @@ Keymap used within overlays:
(defun iedit-start2 (occurrence-regexp beg end)
"Refresh Iedit mode."
(setq iedit-occurrence-keymap iedit-mode-occurrence-keymap)
- (let ((counter(iedit-make-occurrences-overlays occurrence-regexp beg end)))
+ (let ((counter (iedit-make-occurrences-overlays occurrence-regexp beg end)))
(setq iedit-mode
(propertize
(concat " Iedit:" (number-to-string counter))
- [nongnu] elpa/iedit 13ecba138a 026/301: Merge branch 'upstream-master', (continued)
- [nongnu] elpa/iedit 13ecba138a 026/301: Merge branch 'upstream-master', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1d070b7d36 029/301: move init code for iedit-mode-map inside defvar, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit a75c44645a 031/301: fix bug with autopair and iedit-rect, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 20c1075948 032/301: remove conditions on setting `iedit-before-modification-string'., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c4091203ea 033/301: Merge pull request #3 from lewang/master, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b81b9d6025 034/301: Clean code., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 17ce97381b 035/301: Clean up code, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9b3aaa8f21 037/301: Fix occurrence from history does not exist problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b9ebb768b7 190/301: Merge pull request #60 from danrharms/issue-59-hotfix, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f7b2d60989 167/301: Make occurrence string the latest kill in the kill ring, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c25992ef7f 199/301: Fix doc strings,
ELPA Syncer <=
- [nongnu] elpa/iedit 19f35aa1a0 172/301: Change the default key binding for `iedit-rectangle-mode' to c-x-r-ret, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4864e17126 010/301: Merge remote-tracking branch 'tsdh/master', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit fc71952cf9 014/301: Boolean `t', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit df6c2ad919 017/301: fix search to use regexp-quote when needed, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 30971294b2 071/301: Remove a limitation of empty occurrence string, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit df9e958703 082/301: Add more short-cut to iedit on function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06fac017b4 087/301: explain what "quite different" means in rectangle context in README, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 1d32922c04 089/301: Run after-change-functions hook for every occurrence, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c935255053 083/301: minor change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d29bf65e5e 096/301: Do not update mode line when buffering modification, ELPA Syncer, 2022/01/10