[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 33d1b24e04 080/301: Fix compatible with Emacs 22 pro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 33d1b24e04 080/301: Fix compatible with Emacs 22 problem |
Date: |
Mon, 10 Jan 2022 22:58:52 -0500 (EST) |
branch: elpa/iedit
commit 33d1b24e042f55f7e7a679c06da58ab1ad942745
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Fix compatible with Emacs 22 problem
---
iedit.el | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/iedit.el b/iedit.el
index 75b4121cf2..90125cab9e 100644
--- a/iedit.el
+++ b/iedit.el
@@ -2,7 +2,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2012-03-04 22:41:30 Victor Ren>
+;; Time-stamp: <2012-03-04 23:55:19 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region replace simultaneous
;; Version: 0.95
@@ -51,7 +51,7 @@
;; buffer lines that match the current text being edited. This gives you the
;; effect of a temporary 'keep-lines' or 'occur'. To get this effect, hit `C-'
;; when in Iedit mode - it toggles hiding non-matching lines.
-
+;;
;; Renaming refactoring is convenient in iedit mode
;;
;; - The symbol under point is selected as occurrence by default and only
@@ -59,19 +59,11 @@
;; - With digit prefix argument 0, only symbols in current function are matched
;; - Restricting symbols in current region can be done by pressing C-; again
;; - Last renaming refactoring is remembered and can be applied to other
buffers
-;; - later
-
+;; later
+;;
;; There are also some other facilities you may never think about. Refer to
the
;; document of function `iedit-mode' (C-h f iedit-mode RET) for more details.
-;;; Default key bindings:
-;;
-;; (define-key global-map (kbd "C-;") 'iedit-mode)
-;; (define-key isearch-mode-map (kbd "C-;") 'iedit-mode)
-;; (define-key esc-map (kbd "C-;") 'iedit-execute-last-modification)
-;; (define-key help-map (kbd "C-;") 'iedit-mode-on-function)
-;; (define-key global-map [C-return] 'iedit-rectangle-mode)
-
;;; todo:
;; - Add more easy access keys for whole occurrence
@@ -143,6 +135,7 @@ For example, when invoking `iedit-mode' on the \"in\" in the
(nconc minor-mode-alist
(list '(iedit-mode iedit-mode))))
+;;; Default key bindings:
(define-key global-map (kbd "C-;") 'iedit-mode)
(define-key isearch-mode-map (kbd "C-;") 'iedit-mode)
(define-key esc-map (kbd "C-;") 'iedit-execute-last-modification)
@@ -220,7 +213,7 @@ current mode is iedit-rect. Otherwise it is nil.
\(car iedit-rectangle) is the top-left corner and
\(cadr iedit-rectangle) is the bottom-right corner" )
-(defvar iedit-current-keymap nil
+(defvar iedit-current-keymap 'iedit-occurrence-keymap
"The current keymap, `iedit-occurrence-keymap' or `iedit-rect-keymap'.")
(defvar iedit-occurrence-context-lines 1
@@ -461,7 +454,7 @@ Commands:
(setq complete-symbol t)))
(t (error "No candidate of the occurrence, cannot enable iedit
mode")))
(setq iedit-only-complete-symbol-local complete-symbol)
- (deactivate-mark t)
+ (set-mark nil)
(setq iedit-case-sensitive-local iedit-case-sensitive-default)
(iedit-start occurrence beg end))))
@@ -480,7 +473,7 @@ Commands:
(if (iedit-region-active)
(let ((beg (region-beginning))
(end (region-end)))
- (deactivate-mark t)
+ (set-mark nil)
(iedit-rectangle-start beg end)))))
(defun iedit-mode-on-action (&optional arg)
@@ -1080,7 +1073,7 @@ Return nil if occurrence string is empty string."
(when iedit-buffering
(iedit-stop-buffering))
(setq iedit-last-occurrence-local (iedit-current-occurrence-string))
- (deactivate-mark t)
+ (set-mark nil)
(iedit-show-all)
(iedit-cleanup-occurrences-overlays beg end inclusive)
(setq iedit-rectangle nil)
- [nongnu] elpa/iedit 232cd0e5ec 146/301: tweak to use isearch case sensitivity, (continued)
- [nongnu] elpa/iedit 232cd0e5ec 146/301: tweak to use isearch case sensitivity, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5883f9af54 211/301: Avoid overriding user's key bindings, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 95e7731a91 147/301: bugfix for when there are no occurrences, ELPA Syncer, 2022/01/10
- [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 <=
- [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, 2022/01/10
- [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