[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding clipboard content to the kill ring automatically (Windows)
From: |
bigfaceworm |
Subject: |
Re: Adding clipboard content to the kill ring automatically (Windows) |
Date: |
Wed, 23 Sep 2009 09:29:16 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Sep 13, 11:05 pm, PT <spamfilteracco...@gmail.com> wrote:
> I meanclipboardcontentshould be added to thekill-ringin this case.
How about this solution?
(defadvice kill-new (before kill-new-push-xselection-on-kill-ring
activate)
"Before putting new kill onto the kill-ring, add the clipboard/
external selection to the kill ring"
(let ((have-paste (and interprogram-paste-function
(funcall interprogram-paste-function))))
(when have-paste (push have-paste kill-ring))))
grabbed from:
http://stackoverflow.com/questions/848936/how-to-preserve-clipboard-content-in-emacs-on-windows
TJ