From: bigfaceworm <bigfaceworm@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding clipboard content to the kill ring automatically (Windows)
Date: Wed, 23 Sep 2009 09:29:16 -0700 (PDT) [thread overview]
Message-ID: <820926cb-29cf-49d1-87e7-5b77bbecb9a8@f10g2000vbf.googlegroups.com> (raw)
In-Reply-To: mailman.6633.1252908378.2239.help-gnu-emacs@gnu.org
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
prev parent reply other threads:[~2009-09-23 16:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 16:59 Adding clipboard content to the kill ring automatically (Windows) PT
2009-09-13 17:23 ` Eli Zaretskii
2009-09-13 17:48 ` PT
2009-09-13 18:33 ` Andreas Politz
2009-09-13 19:27 ` PT
2009-09-13 23:01 ` Jeff Clough
2009-09-14 4:48 ` PT
2009-09-14 6:05 ` PT
[not found] ` <mailman.6633.1252908378.2239.help-gnu-emacs@gnu.org>
2009-09-23 16:29 ` bigfaceworm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=820926cb-29cf-49d1-87e7-5b77bbecb9a8@f10g2000vbf.googlegroups.com \
--to=bigfaceworm@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).