From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: [EPeterson@mcdonaldbradley.com: Kill ring leak in winemacs macros] Date: Wed, 3 Aug 2005 13:59:29 -0700 (PDT) Message-ID: <34340.128.165.123.83.1123102769.squirrel@webmail.lanl.gov> References: <34161.128.165.123.83.1123097221.squirrel@webmail.lanl.gov> <42F1208D.1070307@student.lu.se> Reply-To: herring@lanl.gov NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1123103540 1257 80.91.229.2 (3 Aug 2005 21:12:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Aug 2005 21:12:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 03 23:12:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E0QW3-0004rg-VM for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2005 23:11:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0QYp-0003tt-MM for ged-emacs-devel@m.gmane.org; Wed, 03 Aug 2005 17:13:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E0QYC-0003Xy-He for emacs-devel@gnu.org; Wed, 03 Aug 2005 17:13:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E0QY6-0003Uc-1G for emacs-devel@gnu.org; Wed, 03 Aug 2005 17:13:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E0QY5-0003Rf-Ja for emacs-devel@gnu.org; Wed, 03 Aug 2005 17:13:13 -0400 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E0QXY-0003vE-0C for emacs-devel@gnu.org; Wed, 03 Aug 2005 17:12:40 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id j73KxX3F006474 for ; Wed, 3 Aug 2005 14:59:34 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id j73KxTO2011363; Wed, 3 Aug 2005 14:59:29 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11/8.12.11) with ESMTP id j73KxTUP020786; Wed, 3 Aug 2005 14:59:29 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11/8.12.11/Submit) id j73KxTpP020784; Wed, 3 Aug 2005 13:59:29 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.83 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Wed, 3 Aug 2005 13:59:29 -0700 (PDT) In-Reply-To: <42F1208D.1070307@student.lu.se> Original-To: "Lennart Borgman" User-Agent: SquirrelMail/1.4.4-2 X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41462 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41462 > Is not the variable `x-select-enable-clipboard' for this? No, that enables the use of the X "clipboard selection" in addition to the X "primary selection", and is only relevant on X (not Windows, which has a clipboard but doesn't have "selections"). The variables `interprogram-cut-function' and `interprogram-paste-function' can be set to nil to suppress the synchronization, but this isn't just a customization issue (as in "this isn't a problem, you should set X to Y") because the issue only arises during keyboard macro execution. If we want to support this, presumably we want a new variable thusly: (defcustom macro-private-kills nil "*Non-nil means kill and yank commands executed by a keyboard macro don't interact with window system cut and paste facilities." :type 'boolean :group 'killing :version "22.1") Then `kill-new', `kill-append', and `current-kill' would be modified to ignore `interprogram-*-function' if `macro-private-kills' is set and a keyboard macro is executing. Better variable names and/or docstrings are of course welcome. Davis Herring -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.