<div dir="ltr">It looks like 'yank-pop' also doesn't behave properly with 'interprogram-paste-function' though in a different way—I have to call it multiple times before it begins cycling. 'my-paste-pop' has the same behavior as yank-pop.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 8, 2013 at 12:36 AM, Frank Fischer <span dir="ltr"><<a href="mailto:frank-fischer@shadow-soft.de" target="_blank">frank-fischer@shadow-soft.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Sat, 7 Sep 2013 23:56:38 -0700<br>
schrieb Mark Tran <<a href="mailto:mark.tran@gmail.com">mark.tran@gmail.com</a>>:<br>
<div class="im"><br>
> In my Emacs setup, I have 'interprogram-paste-function' set to a<br>
> function that returns the contents of the OS X system clipboard. This<br>
> prevents 'evil-paste-pop' and 'evil-paste-pop-next' from cycling<br>
> through the kill ring because the evil-paste-* functions call<br>
> 'current-kill', which first calls 'interprogram-paste-function'<br>
> before the kill ring. This causes evil-paste-pop to always paste the<br>
> same value from the system clipboard.<br>
<br>
</div>Calling `current-kill` is the same as Emacs' `yank-pop` does, so I<br>
wonder if this problem also occurs if you use `yank-pop` (e.g. C-z to<br>
change to emacs-state and then M-y for yank-pop)?<br>
<div class="im"><br>
> Is there anyway to get this working properly with<br>
> interprogram-paste-function?<br>
<br>
</div>You could try to write a new command that temporarily sets<br>
`interprogram-paste-function` to nil (untested):<br>
<br>
(defun my-paste-pop (count)<br>
(interactive "p")<br>
(let (interprogram-paste-function)<br>
(evil-paste-pop count)))<br>
<br>
and then bind it to C-p<br>
<br>
(define-key evil-normal-state-map (kbd "C-p") 'my-paste-pop)<br>
<br>
Does this help?<br>
<br>
Best regards,<br>
Frank<br>
<br>
<br>
_______________________________________________<br>
implementations-list mailing list<br>
<a href="mailto:implementations-list@lists.ourproject.org">implementations-list@lists.ourproject.org</a><br>
<a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list</a><br>
</blockquote></div><br></div>