[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 2ccfc74 382/434: Merge pull request #252
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 2ccfc74 382/434: Merge pull request #252 from bb2020/master |
Date: |
Sat, 7 Aug 2021 09:21:04 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 2ccfc74bf4c00b15c44972843486d35403aab474
Merge: be149f9 d26cecd
Author: Jules Tamangan <jtamagnan@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #252 from bb2020/master
Add defcustom boolean `mc/always-run-for-all`. When non-nil every command
will be run for every cursor
---
multiple-cursors-core.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index aa5b2c2..650ce3c 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -310,6 +310,11 @@ cursor with updated info."
(mc/pop-state-from-overlay mc--stored-state-for-undo)
(setq mc--stored-state-for-undo nil)))
+(defcustom mc/always-run-for-all nil
+ "Disables whitelisting and always executes commands for every fake cursor."
+ :type '(boolean)
+ :group 'multiple-cursors)
+
(defun mc/prompt-for-inclusion-in-whitelist (original-command)
"Asks the user, then adds the command either to the once-list or the
all-list."
(let ((all-p (y-or-n-p (format "Do %S for all cursors?" original-command))))
@@ -399,7 +404,8 @@ the original cursor, to inform about the lack of support."
(when (and original-command
(not (memq original-command
mc--default-cmds-to-run-once))
(not (memq original-command mc/cmds-to-run-once))
- (or (memq original-command
mc--default-cmds-to-run-for-all)
+ (or mc/always-run-for-all
+ (memq original-command
mc--default-cmds-to-run-for-all)
(memq original-command mc/cmds-to-run-for-all)
(mc/prompt-for-inclusion-in-whitelist
original-command)))
(mc/execute-command-for-all-fake-cursors
original-command))))))))))
- [nongnu] elpa/multiple-cursors 54c05c3 356/434: Add more aliases for cl stuff, (continued)
- [nongnu] elpa/multiple-cursors 54c05c3 356/434: Add more aliases for cl stuff, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 40eb74e 357/434: Extend mc/add-cursor-on-click to toggle fake cursors, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 06a2985 362/434: * mc-mark-more.el (mc/mark-all-in-region-regexp): Don't infloop when regexp matches empty string, ELPA Syncer, 2021/08/07
- [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 <=
- [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, 2021/08/07
- [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