[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit f9f87a0dd9 212/301: Add key bindings for iedit-quit
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit f9f87a0dd9 212/301: Add key bindings for iedit-quit |
Date: |
Mon, 10 Jan 2022 22:59:03 -0500 (EST) |
branch: elpa/iedit
commit f9f87a0dd946ede8aab9f512ce6d2cfbb4f39ce6
Author: Victor Ren <victorhge@gmail.com>
Commit: Victor Ren <victorhge@gmail.com>
Add key bindings for iedit-quit
---
iedit-lib.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index 7047df511e..60c43115cf 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2010, 2011, 2012 Victor Ren
-;; Time-stamp: <2016-06-11 23:31:41 Victor Ren>
+;; Time-stamp: <2016-06-14 10:16:52 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
;; Keywords: occurrence region simultaneous rectangle refactoring
;; Version: 0.9.9
@@ -175,6 +175,8 @@ is not applied to other occurrences when it is true.")
(define-key map (kbd "M-<") 'iedit-goto-first-occurrence)
(define-key map (kbd "M->") 'iedit-goto-last-occurrence)
(define-key map (kbd "C-?") 'iedit-help-for-occurrences)
+ (define-key map [remap keyboard-escape-quit] 'iedit-quit)
+ (define-key map [remap keyboard-quit] 'iedit-quit)
map)
"Default keymap used within occurrence overlays.")
@@ -197,6 +199,11 @@ It should be set before occurrence overlay is created.")
(substitute-command-keys "\\[iedit-goto-last-occurrence]")
":first/last "
)))
+(defun iedit-quit ()
+ "Quit the current mode."
+ (interactive)
+ (run-hooks 'iedit-aborting-hook))
+
(defun iedit-make-occurrences-overlays (occurrence-regexp beg end)
"Create occurrence overlays for `occurrence-regexp' in a region.
Return the number of occurrences."
- [nongnu] elpa/iedit 4b1416f83f 131/301: refactor out common test code in "test-util", (continued)
- [nongnu] elpa/iedit 4b1416f83f 131/301: refactor out common test code in "test-util", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ceb729863b 153/301: Update iedit-lib.el, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b3ebd84769 137/301: Merge pull request #29 from jorgenschaefer/elpa-package, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 27de77eda5 133/301: add test to ensure padding of EOL happens to make up rectangle, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7a35f3bd06 157/301: Add overlay priority option, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c274e6423b 200/301: Quit iedit mode if the number of occurrence is zero, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 8c2316693a 198/301: Fix bug: C-u M-p does not work, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c7abe595b4 159/301: Remove confusing messages "Locate the fist occurrence", ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 2fe78a5ec9 201/301: Remove two confusing options, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f707cce0b8 193/301: Remove the key binding to M-[, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit f9f87a0dd9 212/301: Add key bindings for iedit-quit,
ELPA Syncer <=
- [nongnu] elpa/iedit b4c7e41049 209/301: More doc for iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 18b99c1fb4 169/301: Fix compile warning and test case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit bd3fd44691 173/301: Added the default value for iedit-replace-occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b73b977839 204/301: Merge branch 'default-occurrence', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 6e6d4bc478 151/301: Merge branch 'master' of https://github.com/mbneedham/iedit, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 06bdb68bbf 203/301: Add iedit-switch-to-mc-mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit b2bffd978c 184/301: Merge pull request #54 from Vifon/iedit-replace-occurences_default-case, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d2f08e8862 163/301: Provide functions to narrow around current-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 27dbbdda0b 162/301: Split iedit-occurrence-update into two functions, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9a40f6fa36 205/301: check if mc present, ELPA Syncer, 2022/01/10