[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/multiple-cursors b60cbc3 044/434: Add support for yank-pop
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/multiple-cursors b60cbc3 044/434: Add support for yank-pop |
Date: |
Sat, 7 Aug 2021 09:19:51 -0400 (EDT) |
branch: elpa/multiple-cursors
commit b60cbc3f56d5f199fb87f0be45ff62d562c24bb7
Author: Magnar Sveen <magnars@gmail.com>
Commit: Magnar Sveen <magnars@gmail.com>
Add support for yank-pop
---
multiple-cursors-core.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 093ee04..af9f2cc 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -42,6 +42,8 @@ highlights the entire width of the window."
(overlay-put o 'mark (set-marker (make-marker) (mark)))
(overlay-put o 'mark-ring mark-ring)
(overlay-put o 'mark-active mark-active)
+ (overlay-put o 'yank-undo-function yank-undo-function)
+ (overlay-put o 'kill-ring-yank-pointer kill-ring-yank-pointer)
(when (boundp 'er/history) (overlay-put o 'er/history er/history))
o)
@@ -52,6 +54,8 @@ highlights the entire width of the window."
(set-marker (mark-marker) (overlay-get o 'mark))
(setq mark-ring (overlay-get o 'mark-ring))
(setq mark-active (overlay-get o 'mark-active))
+ (setq yank-undo-function (overlay-get o 'yank-undo-function))
+ (setq kill-ring-yank-pointer (overlay-get o 'kill-ring-yank-pointer))
(when (boundp 'er/history) (setq er/history (overlay-get o 'er/history))))
(defun mc/remove-fake-cursor (o)
@@ -173,8 +177,9 @@ from being executed if in multiple-cursors-mode."
(unless multiple-cursors-mode
ad-do-it))))
-;; Commands that make a giant mess of multiple cursors
-(unsupported-cmd yank-pop)
+;; Commands that does not work with multiple-cursors
+(unsupported-cmd isearch-forward)
+(unsupported-cmd isearch-backward)
;; Commands to run only once (not yet in use)
(setq mc--cmds-run-once '(mark-next-like-this
- [nongnu] elpa/multiple-cursors 3ce6e4a 199/434: Avoid strange behavior with smartrep, (continued)
- [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, 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 <=
- [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
- [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