From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: [EPeterson@mcdonaldbradley.com: Kill ring leak in winemacs macros] Date: Thu, 18 Aug 2005 10:56:33 -0600 Message-ID: References: <34161.128.165.123.83.1123097221.squirrel@webmail.lanl.gov> <42F1208D.1070307@student.lu.se> <34340.128.165.123.83.1123102769.squirrel@webmail.lanl.gov> <40280.128.165.123.83.1124204823.squirrel@webmail.lanl.gov> <43020FDF.6060007@gnu.org> <41237.128.165.123.83.1124209899.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1124386525 29114 80.91.229.2 (18 Aug 2005 17:35:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Aug 2005 17:35:25 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 18 19:35:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E5oH5-0004zs-FY for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 19:33:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5oKc-0006nG-2u for ged-emacs-devel@m.gmane.org; Thu, 18 Aug 2005 13:37:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E5oJ2-0006Rj-Io for emacs-devel@gnu.org; Thu, 18 Aug 2005 13:35:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E5oJ0-0006R4-Ry for emacs-devel@gnu.org; Thu, 18 Aug 2005 13:35:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E5oAV-0004Kn-IQ for emacs-devel@gnu.org; Thu, 18 Aug 2005 13:27:08 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E5o0B-0003vF-4o for emacs-devel@gnu.org; Thu, 18 Aug 2005 13:16:27 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E5niQ-0000LC-TP for emacs-devel@gnu.org; Thu, 18 Aug 2005 18:58:06 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Aug 2005 18:58:06 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Aug 2005 18:58:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 35 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <41237.128.165.123.83.1124209899.squirrel@webmail.lanl.gov> 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:42234 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42234 Stuart D. Herring wrote: > What kind of keyboard macro could communicate asynchronously with another > program, via the clipboard or otherwise? Something like that would seem > to require real Lisp anyway. Moreover, this whole change would be > optional (customizable), so the user of any such macro could turn off that > option (maybe even temporarily and within the macro to make it > self-contained). So I don't think this change can hurt anything. > > ...I realize, reading the previous paragraph, that this answers the > question of which implementation to pursue. The obvious value of a macro > that temporarily enables (or disables) clipboard communication means that > the customize option should be checked within the macro, not in > execute-kbd-macro. I think you mean it should be checked while defining a macro, as well as when executing one, because the first time a macro is executed is when it is defined -- right? In that case, start-kbd-macro should also respect the proposed new option (by setting the interprogram-*-function variables) and end-kbd-macro should restore them (which means start-kbd-macro would need to save their original values). But that can't be done with simple let bindings, as it can in execute-kbd-macro. > One point, remains, though: Richard said he wanted the kill-ring > re-synchronized with the external world at the end of a keyboard macro > that desynched them; I guess that would have to go in execute-kbd-macro. > But what should happen if both Emacs and the window system have new text > at that point (where no ordering exists between them)? Where did he say that? -- Kevin Rodgers