[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors f0dcd06 323/434: Merge pull request #175
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors f0dcd06 323/434: Merge pull request #175 from lexa/master |
Date: |
Sat, 7 Aug 2021 09:20:51 -0400 (EDT) |
branch: elpa/multiple-cursors
commit f0dcd06c6fabaff8d1ba1bd94d5c0cda5fec2f89
Merge: 82586a0 ff0ac1f
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Merge pull request #175 from lexa/master
Add function to disable mc undo into undo-list.
---
features/multiple-cursors-core.feature | 12 ++++++++++++
multiple-cursors-core.el | 1 +
2 files changed, 13 insertions(+)
diff --git a/features/multiple-cursors-core.feature
b/features/multiple-cursors-core.feature
index 3bd4103..73259f8 100644
--- a/features/multiple-cursors-core.feature
+++ b/features/multiple-cursors-core.feature
@@ -73,6 +73,18 @@ Feature: Multiple cursors core
And I type "!"
Then I should see "This !text contains the word !text twice"
+ Scenario: Undo until mc mode will be disabled
+ Given I have cursors at "text" in "This text contains the word text twice"
+ And I should have 2 cursors
+ When I press "C-g"
+ And I should have 1 cursors
+ And I press "C-_"
+ And I should have 2 cursors
+ And I press "C-_"
+ And I should have 1 cursors
+ And I type "!"
+ Then I should see "This !text contains the word text twice"
+
Scenario: Setting and popping mark
Given I have cursors at "text" in "This text contains the word text twice"
And I press "C-SPC"
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index a0d10ef..2c76b42 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -505,6 +505,7 @@ They are temporarily disabled when multiple-cursors are
active.")
(if multiple-cursors-mode
(progn
(mc/temporarily-disable-unsupported-minor-modes)
+ (push `(apply multiple-cursors-mode . ,(list 0)) buffer-undo-list)
(add-hook 'pre-command-hook 'mc/make-a-note-of-the-command-being-run
nil t)
(add-hook 'post-command-hook 'mc/execute-this-command-for-all-cursors
t t)
(run-hooks 'multiple-cursors-mode-enabled-hook))
- [nongnu] elpa/multiple-cursors a6984a1 203/434: Merge pull request #53 from oneself/master, (continued)
- [nongnu] elpa/multiple-cursors a6984a1 203/434: Merge pull request #53 from oneself/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a37e02b 177/434: Add new mc-commands to default run-once list., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6339657 192/434: Fix byte-compilation warnings, and avoid unnecessary use of "eval", ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 641eb68 212/434: Can use mc/reverse-regions w/o region or cursors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0ee76bf 214/434: Add mc/add-cursor-on-click, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 16589a5 224/434: Update README.md, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5c60757 216/434: export ECUKES_EMACS in run-travis-ci.sh, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6467fe2 277/434: Add mc/mark-all-dwim to autoloads, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors c69be0e 282/434: Travis CI: Update location of cask install, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 4da58ea 302/434: Merge pull request #146 from bling/master, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f0dcd06 323/434: Merge pull request #175 from lexa/master,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 2d6ffce 330/434: Support unmarking with no region. Change mc/mark-lines to preserve point., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 36b7025 348/434: Add alternative to mc/mark-next-like-this, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a393384 353/434: Merge pull request #227 from jtamagnan/insert_letters, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors e17851e 359/434: Fix click-toggling and make it robust (address all PR #239 comments), ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 8ac4ad3 361/434: Update README.md, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9f4cdd0 368/434: Modified mc/mark-lines to allow skipping, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors fb0e71a 371/434: Remove mention of marmalade, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors be4fbc7 373/434: Mention MELPA Stable, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors dfaf621 392/434: Fix #254; remove mc/mark-next-like-this-extended, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 67d6579 388/434: Updated tests, README., ELPA Syncer, 2021/08/07