From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PT Newsgroups: gmane.emacs.help Subject: Re: Adding clipboard content to the kill ring automatically (Windows) Date: Sun, 13 Sep 2009 19:27:00 +0000 (UTC) Message-ID: References: <83k502zrki.fsf@gnu.org> <878wgi3daj.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1252870089 9960 80.91.229.12 (13 Sep 2009 19:28:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Sep 2009 19:28:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 13 21:28:02 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 1Mmujx-0005MI-M6 for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 21:28:01 +0200 Original-Received: from localhost ([127.0.0.1]:56551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mmujx-0005Cp-1b for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Sep 2009 15:28:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmujV-0005BF-Hi for help-gnu-emacs@gnu.org; Sun, 13 Sep 2009 15:27:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmujQ-0005AM-CK for help-gnu-emacs@gnu.org; Sun, 13 Sep 2009 15:27:32 -0400 Original-Received: from [199.232.76.173] (port=48391 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmujQ-0005AJ-7k for help-gnu-emacs@gnu.org; Sun, 13 Sep 2009 15:27:28 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43888) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MmujP-00055L-Sq for help-gnu-emacs@gnu.org; Sun, 13 Sep 2009 15:27:28 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MmujN-0005E3-G8 for help-gnu-emacs@gnu.org; Sun, 13 Sep 2009 21:27:25 +0200 Original-Received: from apn-89-223-181-210.vodafone.hu ([89.223.181.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2009 21:27:25 +0200 Original-Received: from spamfilteraccount by apn-89-223-181-210.vodafone.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Sep 2009 21:27:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 89.223.181.210 (Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.00) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68120 Archived-At: Andreas Politz fh-trier.de> writes: > I use something like the following, when I need to grab a couple of > links in some browser. I don't know know, if that works on w32 No, I don't have x-lost-selection-functions here, but it gave me an idea to check if kill ring has a hook which is called before the kill ring is modified. I haven't found such a hook, which is a pity, because it could be used to push clipboard contents to the kill ring first if something (a kill) wants to add to the ring. Without a hook the usual kill commands (C-k, etc.) can be advised to check the clipboard first and push its text to the ring if necessary, before they perform their own killing. This may be a more intelligent approach than running a timer.