From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bigfaceworm Newsgroups: gmane.emacs.help Subject: Re: Adding clipboard content to the kill ring automatically (Windows) Date: Wed, 23 Sep 2009 09:29:16 -0700 (PDT) Organization: http://groups.google.com Message-ID: <820926cb-29cf-49d1-87e7-5b77bbecb9a8@f10g2000vbf.googlegroups.com> References: <20090913.230152.267048825.jeff@chaosphere.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1253724101 6725 80.91.229.12 (23 Sep 2009 16:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2009 16:41:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 23 18:41:34 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MqUuI-0007mS-Lh for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 18:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:44479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqUuI-00059u-65 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Sep 2009 12:41:30 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!f10g2000vbf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 98.232.179.232 Original-X-Trace: posting.google.com 1253723356 8254 127.0.0.1 (23 Sep 2009 16:29:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 23 Sep 2009 16:29:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f10g2000vbf.googlegroups.com; posting-host=98.232.179.232; posting-account=xcyrUAoAAAC_aahLDV9Q6wj_lVQEuFNf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173304 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68422 Archived-At: On Sep 13, 11:05=A0pm, PT 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-cli= pboard-content-in-emacs-on-windows TJ