[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 7cb18b8 398/434: Fix bug in mc/mark-all-i
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 7cb18b8 398/434: Fix bug in mc/mark-all-in-region-regexp. Fixes #293 |
Date: |
Sat, 7 Aug 2021 09:21:08 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 7cb18b8aec7206e7b610069ae42e76bc1fb1be30
Author: Josh Hunsaker <josh+git@nispio.net>
Commit: Josh Hunsaker <josh+git@nispio.net>
Fix bug in mc/mark-all-in-region-regexp. Fixes #293
---
mc-mark-more.el | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/mc-mark-more.el b/mc-mark-more.el
index 27a84b7..2ab7ec7 100644
--- a/mc-mark-more.el
+++ b/mc-mark-more.el
@@ -423,16 +423,13 @@ With zero ARG, skip the last one and mark next."
(setq lastmatch (point))
(when (= (point) (match-beginning 0))
(forward-char)))
- (when lastmatch (goto-char lastmatch)))
- (when (> (mc/num-cursors) 0)
- (goto-char (match-end 0)))
- (let ((first (mc/furthest-cursor-before-point)))
- (if (not first)
- (error "Search failed for %S" search)
- (mc/pop-state-from-overlay first)))
- (if (> (mc/num-cursors) 1)
- (multiple-cursors-mode 1)
- (multiple-cursors-mode 0))))))
+ (unless lastmatch
+ (error "Search failed for %S" search)))
+ (goto-char (match-end 0))
+ (if (< (mc/num-cursors) 3)
+ (multiple-cursors-mode 0)
+ (mc/pop-state-from-overlay (mc/furthest-cursor-before-point))
+ (multiple-cursors-mode 1))))))
(when (not (fboundp 'set-temporary-overlay-map))
;; Backport this function from newer emacs versions
- [nongnu] elpa/multiple-cursors 4bf9860 364/434: Use cl-lib instead of shimming, which breaks in older emacsen, (continued)
- [nongnu] elpa/multiple-cursors 4bf9860 364/434: Use cl-lib instead of shimming, which breaks in older emacsen, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d5b544e 365/434: Merge pull request #246 from purcell/cl-lib, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b3bd49c 372/434: Bump version to 1.4.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 741eec6 374/434: Update some copyright years, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a9daac1 375/434: Add/fix docstring to functions. fix #161, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors be149f9 378/434: Create customizable mc/insert-numbers-default, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fd847ae 379/434: added mc/always-run-for-all, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2ccfc74 382/434: Merge pull request #252 from bb2020/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 616fd84 395/434: Add ivy-done (from ivy) to the list of commands that are only executed once by default., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6d8c6fc 389/434: Pass tests., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7cb18b8 398/434: Fix bug in mc/mark-all-in-region-regexp. Fixes #293,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors f628df7 408/434: Always call `mark` with `mark-even-if-inactive` set to t, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f33cdd4 404/434: Fix minor error, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e419903 411/434: Merge pull request #324 from mkcms/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e048e04 406/434: Fix #271: The command yank can't work, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b880554 427/434: Fix typos (#359), ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 83abb05 430/434: Add badges to README (#363), ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fa753aa 187/434: Fix: mc/dump-list loosing old setting, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c010afb 180/434: Rename mc/mark-sgml-tags to mc/mark-sgml-tag-pair, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 839c6ef 183/434: Update README with command overview and tips-n-tricks., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 94164f7 191/434: Merge pull request #41 from purcell/patch-1, ELPA Syncer, 2021/08/07