branch: elpa/multiple-cursors
commit e048e04bd8a637095bac9291c72606300de8f74a
Author: Jules Tamagnan <[email protected]>
Commit: Jules Tamagnan <[email protected]>
Fix #271: The command yank can't work
It seems that this may be a windows specific issue given the version
strings that @moyotar and @dertuxmalwieder have posted. As a
workaround it should be safe to add the arguments that current-kill
needs to the defadvice. current-kill has had the same arguments for
the past 25 years, since it was first added.
---
multiple-cursors-core.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/multiple-cursors-core.el b/multiple-cursors-core.el
index 96c4631..a60c9db 100644
--- a/multiple-cursors-core.el
+++ b/multiple-cursors-core.el
@@ -551,7 +551,8 @@ from being executed if in multiple-cursors-mode."
(unsupported-cmd isearch-backward ". Feel free to add a compatible version.")
;; Make sure pastes from other programs are added to all kill-rings when
yanking
-(defadvice current-kill (before interprogram-paste-for-all-cursors activate)
+(defadvice current-kill (before interprogram-paste-for-all-cursors
+ (n &optional do-not-move) activate)
(let ((interprogram-paste (and (= n 0)
interprogram-paste-function
(funcall interprogram-paste-function))))