[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 373dcbe 218/434: Add a scenario for mc/ma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 373dcbe 218/434: Add a scenario for mc/mark-all-symbols-like-this |
Date: |
Sat, 7 Aug 2021 09:20:29 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 373dcbe0022061c0ab14298b9dca07f4a7216ef2
Author: Takafumi Arakaki <aka.tkf@gmail.com>
Commit: Takafumi Arakaki <aka.tkf@gmail.com>
Add a scenario for mc/mark-all-symbols-like-this
---
features/mark-things.feature | 18 ++++++++++++++++++
features/step-definitions/multiple-cursors-steps.el | 8 ++++++++
2 files changed, 26 insertions(+)
diff --git a/features/mark-things.feature b/features/mark-things.feature
new file mode 100644
index 0000000..cfe880a
--- /dev/null
+++ b/features/mark-things.feature
@@ -0,0 +1,18 @@
+Feature: Mark things
+
+ Scenario: Mark symbols in defun with select
+ Given I turn on emacs-lisp-mode
+ And I turn on delete-selection-mode
+ And I insert:
+ """
+ (defun abc (ghi) (message ghi))
+ (defun def (ghi) (message some-other-ghi))
+ """
+ When I select "ghi"
+ And I mark all symbols like this in defun
+ And I type "hmm"
+ Then I should see:
+ """
+ (defun abc (hmm) (message hmm))
+ (defun def (ghi) (message some-other-ghi))
+ """
diff --git a/features/step-definitions/multiple-cursors-steps.el
b/features/step-definitions/multiple-cursors-steps.el
index 900eeed..ba25181 100644
--- a/features/step-definitions/multiple-cursors-steps.el
+++ b/features/step-definitions/multiple-cursors-steps.el
@@ -95,3 +95,11 @@
(assert search nil "The text '%s' was not found in the current
buffer." text))
(set-mark (point))
(re-search-forward text)))
+
+(When "^I mark all \\(.+\\)$"
+ (lambda (rest)
+ (let ((func (intern (mapconcat 'identity
+ (cons "mc/mark-all"
+ (split-string rest))
+ "-"))))
+ (call-interactively func))))
- [nongnu] elpa/multiple-cursors 5ffb19a 424/434: Update README.md, (continued)
- [nongnu] elpa/multiple-cursors 5ffb19a 424/434: Update README.md, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors cb93501 432/434: Minor backward compatibility fix to remove warning, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f4d5aea 147/434: Sort before saving list in mc/save-lists, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors bb546b1 166/434: Display number of cursors in mode-line, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 796fb64 165/434: Added segv to contributors list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a6e0ccb 215/434: mc/add-cursor-on-click should not run per cursor, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 717c97e 181/434: Added Fuco to list of contributors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors f721308 179/434: Tweak mc/mark-all-like-this-dwim and add tests, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5190e0c 206/434: Add test case for shift-select-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 07b8808 195/434: Merge pull request #43 from purcell/travis-script, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 373dcbe 218/434: Add a scenario for mc/mark-all-symbols-like-this,
ELPA Syncer <=
- [nongnu] elpa/multiple-cursors 8b91e47 231/434: Add py-electric-backspace to run-for-all list, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 39f1725 248/434: Add support for god-mode, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors a374031 257/434: Add gnu repo to Cask, which is needed for cl-lib on Emacs <24.3, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 5e879f9 261/434: Guard against empty search pattern in 'mc/mark-all-in-region', otherwise it will enter an infinite loop, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors af66635 264/434: Make 'mc/mark-all-dwim' into 'mc/edit-lines' if prefix arg is passed, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 45ed43e 265/434: Test edit-lines functionality in 'mc/mark-all-dwim', ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 68dfa46 271/434: Merge pull request #109 from mathrick/fix-mark-all-in-region-hang, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 65c0c0c 275/434: Merge pull request #104 from mathrick/mark-all-dwim, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors d17c89e 276/434: Release 1.3.0, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors ad79ad8 273/434: Mention only 'mc/mark-all-dwim' in README to prevent confusing redundancy, ELPA Syncer, 2021/08/07