[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors d3a29a2 034/434: Started working on multi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors d3a29a2 034/434: Started working on multiple-cursor core tests. |
Date: |
Sat, 7 Aug 2021 09:19:49 -0400 (EDT) |
branch: elpa/multiple-cursors
commit d3a29a2c6f5648e52f81d8d8c422aef4cfb8058e
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Started working on multiple-cursor core tests.
- got a problem with detecting overlays in ecukes.
---
features/multiple-cursors-core.feature | 12 ++++++++++++
features/step-definitions/multiple-cursors-steps.el | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/features/multiple-cursors-core.feature
b/features/multiple-cursors-core.feature
new file mode 100644
index 0000000..8c6f2ff
--- /dev/null
+++ b/features/multiple-cursors-core.feature
@@ -0,0 +1,12 @@
+Feature: Multiple cursors core
+ In order to make efficient changes
+ As an Emacs user with multiple-cursors
+ I want to change multiple parts of the buffer at once
+
+ Scenario: Two cursors
+ Given there is no region selected
+ When I insert "This text contains the word text twice"
+ And I select "text"
+ And I press "C->"
+ And I press "C-g"
+ Then I should have 2 cursors
diff --git a/features/step-definitions/multiple-cursors-steps.el
b/features/step-definitions/multiple-cursors-steps.el
index 2836291..486aa32 100644
--- a/features/step-definitions/multiple-cursors-steps.el
+++ b/features/step-definitions/multiple-cursors-steps.el
@@ -1,3 +1,15 @@
(And "^delete-selection-mode is active$"
(lambda ()
(delete-selection-mode 1)))
+
+(defun is-extra-cursor-p (o)
+ (eq (overlay-get o 'type) 'additional-cursor))
+
+(defun num-cursors ()
+ (1+ (count-if 'is-extra-cursor-p
+ (overlays-in (point-min) (point-max)))))
+
+(Then "^I should have 2 cursors$"
+ (lambda ()
+ (assert (eq 2 (num-cursors)) nil
+ "Expected to have 2 cursors, but was %d." (num-cursors))))
- [nongnu] elpa/multiple-cursors 129ea77 189/434: 1.1.4, (continued)
- [nongnu] elpa/multiple-cursors 129ea77 189/434: 1.1.4, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bfb293f 200/434: Merge pull request #48 from tkf/smartrep, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f1a5a39 197/434: Merge pull request #46 from tkf/fix-dump-list-take-2, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b218a13 185/434: Run tests in Emacs 23, Emacs 24 and snapshot., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a4f6ea1 205/434: Add transient-mark-mode to mc/cursor-specific-vars to fix other selections than C-SPC. Fixes #55, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 3ce6e4a 199/434: Avoid strange behavior with smartrep, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 16add89 211/434: Bugfix for sort/reverse regions w/similar contents, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 7a236d1 233/434: Add flyspell-mode to unsupported minor modes, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6cff0c2 245/434: Add pre- & post-command-hook to be cursor specific, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 2186e1b 247/434: mc/mark-lines: Mark by logical lines., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d3a29a2 034/434: Started working on multiple-cursor core tests.,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 7ff9e9a 035/434: Only store er/history when it is defined., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 9875982 038/434: Add smart-forward to whitelist, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 87169c8 040/434: Clean up multiple-cursors-core, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors efd79f3 043/434: Add undo to list of known run-only-once commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors b60cbc3 044/434: Add support for yank-pop, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 1db643c 048/434: Add support for modes that remap commands., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 37ddaf2 053/434: Set this-command for each cursor., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d7be50e 041/434: rectangular-region-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 45488df 052/434: yank-pop is supported, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 6f9911f 054/434: Add more explanatory prose., ELPA Syncer, 2021/08/07