[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors 1db643c 048/434: Add support for modes th
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors 1db643c 048/434: Add support for modes that remap commands. |
Date: |
Sat, 7 Aug 2021 09:19:52 -0400 (EDT) |
branch: elpa/multiple-cursors
commit 1db643c4d64952e0303415fbd43e95bc80abdacf
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Add support for modes that remap commands.
- for instance subword-mode
---
multiple-cursors-core.el | 33 ++++++++++++++++++++++-----------
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 8171055..611313b 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -125,14 +125,16 @@ inform about the lack of support.
Commands that are neither supported nor explicitly unsupported
is executed normally for point, but skipped for the fake
cursors."
- (if (memq this-original-command mc--unsupported-cmds)
- (message "%S is not supported with multiple cursors%s"
- this-original-command
- (get this-original-command 'mc--unsupported-msg))
- (if (not (memq this-original-command mc--cmds))
- (when (not (memq this-original-command mc--cmds-run-once))
- (message "Skipping %S" this-original-command))
- (mc/execute-command-for-all-fake-cursors this-original-command))))
+ (let ((original-command (or (command-remapping this-original-command)
+ this-original-command)))
+ (if (memq original-command mc--unsupported-cmds)
+ (message "%S is not supported with multiple cursors%s"
+ original-command
+ (get original-command 'mc--unsupported-msg))
+ (if (not (memq original-command mc--cmds))
+ (when (not (memq original-command mc--cmds-run-once))
+ (message "Skipping %S" original-command))
+ (mc/execute-command-for-all-fake-cursors original-command)))))
(defun mc/remove-fake-cursors ()
"Remove all fake cursors.
@@ -210,9 +212,9 @@ from being executed if in multiple-cursors-mode."
right-word forward-word
left-char backward-char
left-word backward-word
- subword-upcase upcase-word
- subword-downcase downcase-word
- subword-capitalize capitalize-word
+ upcase-word
+ downcase-word
+ capitalize-word
forward-list
backward-list
hippie-expand hippie-expand-lines
@@ -221,6 +223,15 @@ from being executed if in multiple-cursors-mode."
kill-region-or-backward-word
kill-line
kill-whole-line
+ subword-forward
+ subword-backward
+ subword-mark
+ subword-kill
+ subword-backward-kill
+ subword-transpose
+ subword-capitalize
+ subword-upcase
+ subword-downcase
backward-kill-word
backward-delete-char-untabify
delete-forward-char c-electric-delete-forward
- [nongnu] elpa/multiple-cursors 16add89 211/434: Bugfix for sort/reverse regions w/similar contents, (continued)
- [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, 2021/08/07
- [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 <=
- [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
- [nongnu] elpa/multiple-cursors 466d036 063/434: Prompt for inclusion in white/black-lists when met with an unknown command, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 092b0a1 074/434: Cycle through cursors with C-v and M-v, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0512561 076/434: Skip lines in rectangular-region-mode that are too short for the rectangle., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 84ef509 072/434: Save users own white/black lists in .mc-lists.el, ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 15e88c6 071/434: Move more mode-specific cmds into personal lists., ELPA Syncer, 2021/08/07
- [nongnu] elpa/multiple-cursors 0bfd611 068/434: More consistent naming., ELPA Syncer, 2021/08/07