emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/multiple-cursors e048e04 406/434: Fix #271: The command ya


From: ELPA Syncer
Subject: [nongnu] elpa/multiple-cursors e048e04 406/434: Fix #271: The command yank can't work
Date: Sat, 7 Aug 2021 09:21:09 -0400 (EDT)

branch: elpa/multiple-cursors
commit e048e04bd8a637095bac9291c72606300de8f74a
Author: Jules Tamagnan <jtamagnan@gmail.com>
Commit: Jules Tamagnan <jtamagnan@gmail.com>

    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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]