[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iedit 31986b640a 289/301: Take iedit-goto-first-occurrence
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iedit 31986b640a 289/301: Take iedit-goto-first-occurrence back |
Date: |
Mon, 10 Jan 2022 22:59:11 -0500 (EST) |
branch: elpa/iedit
commit 31986b640a095a7dd071a86f6649cb3f09cd0e6e
Author: Victor <victorhge@gmail.com>
Commit: Victor <victorhge@gmail.com>
Take iedit-goto-first-occurrence back
Which is deleted incidentally in the previous commit.
---
iedit-lib.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/iedit-lib.el b/iedit-lib.el
index 3612eec177..7961371acd 100644
--- a/iedit-lib.el
+++ b/iedit-lib.el
@@ -1,7 +1,7 @@
;;; iedit-lib.el --- APIs for editing multiple regions in the same way
;;; simultaneously.
-;; Copyright (C) 2010 - 2019, 2020 Victor Ren
+;; Copyright (C) 2010 - 2019, 2020, 2021 Victor Ren
;; Time-stamp: <2021-01-14 23:56:53 Victor Ren>
;; Author: Victor Ren <victorhge@gmail.com>
@@ -717,6 +717,14 @@ from first to last occurrence will cost one repetition."
(next-single-char-property-change
(point-min) 'iedit-occurrence-overlay-name)))
+(defun iedit-goto-first-occurrence ()
+ "Move to the first occurrence."
+ (interactive)
+ (goto-char (iedit-first-occurrence))
+ (setq iedit-forward-success t)
+ (setq iedit-occurrence-index 1)
+ (message "Located the first occurrence."))
+
(defun iedit-goto-last-occurrence ()
"Move to the last occurrence."
(interactive)
- [nongnu] elpa/iedit 3f9eed229e 232/301: Allow custom mode-line, (continued)
- [nongnu] elpa/iedit 3f9eed229e 232/301: Allow custom mode-line, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 9c08a48c88 281/301: Remove the workaround for slow c-before-change, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 01767ddca3 258/301: Fix a failed testcase in batch mode, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7e507b370b 255/301: Set the FIXEDCASE argument of replace-match in iedit-replace-occurrences to T to allow preserving case., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 745ea6f812 239/301: Rename iedit-toggle-unmatched-lines-visible to iedit-show/hide-unmatched-lines, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit dfed75064e 285/301: Save and restore `line-move-ignore-invisible', ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit c448864424 216/301: Remove iedit-unmatched-lines-invisible-default, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5fdf89edc9 238/301: Fix switch to mc mode problem, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit de54411d0e 220/301: Detect markup tag only if region inactive, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit ac51555341 282/301: New feature: ignore hidden occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 31986b640a 289/301: Take iedit-goto-first-occurrence back,
ELPA Syncer <=
- [nongnu] elpa/iedit 5e7253c36e 274/301: Update documents and comments, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit d4a878d52e 280/301: Minor docstring typo fix: covert -> convert., ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 4765fa7a4d 271/301: Fix a conjoined overlay issue, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 68233e302d 300/301: Fix some byte-compiler warnings in Emacs 28, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 7d18e5d775 039/301: Add a help command C-? for occurrences, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit e08ad5923a 043/301: Make Iedit mode available for read only buffer, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 78f606d4fc 045/301: Add iedit-number-occurrences function, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 0d4027fe10 046/301: Move save-excursion out of dolist, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 3bca7e2da5 048/301: Fix iedit toggle case-sensitive problem when getting occurrence from history, ELPA Syncer, 2022/01/10
- [nongnu] elpa/iedit 5ab980908c 050/301: Update documents, ELPA Syncer, 2022/01/10