From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David De La Harpe Golden" Newsgroups: gmane.emacs.devel Subject: Re: Improving X selection? Date: Tue, 5 Feb 2008 05:58:23 +0000 Message-ID: <8e24944a0802042158s46e50586u1b70b1b3340985e1@mail.gmail.com> References: <8e24944a0710161629r1ec1afadj60352dc92c264217@mail.gmail.com> <8e24944a0801281152w733c977akda93089a52701219@mail.gmail.com> <8e24944a0801281659sa5a9115rf4533184413a8b20@mail.gmail.com> <8e24944a0802011115h77423fd1p2eae15a1e46bca1a@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7824_19398319.1202191103604" X-Trace: ger.gmane.org 1202191122 9835 80.91.229.12 (5 Feb 2008 05:58:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2008 05:58:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 05 06:59:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMGpj-00082r-85 for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 06:59:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMGpG-00014x-Uy for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 00:58:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMGp9-00013t-SB for emacs-devel@gnu.org; Tue, 05 Feb 2008 00:58:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMGp8-00012r-JO for emacs-devel@gnu.org; Tue, 05 Feb 2008 00:58:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMGp8-00012b-8w for emacs-devel@gnu.org; Tue, 05 Feb 2008 00:58:26 -0500 Original-Received: from wx-out-0506.google.com ([66.249.82.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMGp7-00034C-J4 for emacs-devel@gnu.org; Tue, 05 Feb 2008 00:58:25 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s7so2182560wxc.24 for ; Mon, 04 Feb 2008 21:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=TQPniRz9mmq3Tm4bGZLN4No1u9jX1mkgIFUhHb2ec0c=; b=SuuqqC/ZSBh5ycK8C6NhrM44kVmee2yNew77KxtqfH2XwvODN8t0aIZXYVrcNjiuoIxnyVMuC4HGHkttQWZdaXVNETPc7VduLdphUgYLfrODUP3T5+sxnq+nmWHyxmYsqphISN+t3/WW/QXrgmnpVdYXozOd0l5WJOtIdwdOQpc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=hogw0dwTAh2jok3r0pSeVZGK0pSIerj9qtKF+/Gu3oyjNiSOkctLM5NUW8i0O7qsFdMr6lnjQ5gap1P/usPN/xCaIEAv6NwG933v14/GxnezLQnzOXGKt/P2/VGBdbD/+FZLJkokgKr8hG8OLJ8W4Wth3r5nsCguDarb8w+ziUo= Original-Received: by 10.142.241.10 with SMTP id o10mr3991821wfh.27.1202191103572; Mon, 04 Feb 2008 21:58:23 -0800 (PST) Original-Received: by 10.142.111.4 with HTTP; Mon, 4 Feb 2008 21:58:23 -0800 (PST) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:88234 Archived-At: ------=_Part_7824_19398319.1202191103604 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 03/02/2008, Richard Stallman wrote: > If you convince me there is a problem, I will look for other > solutions; I certainly won't use this one. > Other solutions - fixing select-active-regions with an idle timer that polls the region for changes? Here's a (standalone, i.e. against CVS, not incremental to other patches) attempt with run-with-idle-timer. Seems to work okay, though is probably not incredibly efficient (has got to be better than doing something every single point move though). [Because I put it in simple.el and it uses timer, had to change load order in loadup.el...] ------=_Part_7824_19398319.1202191103604 Content-Type: text/x-diff; name=select-active-regions-when-idle.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fca1c5dh Content-Disposition: attachment; filename=select-active-regions-when-idle.diff SW5kZXg6IGxpc3Avc2ltcGxlLmVsCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9zb3VyY2VzL2VtYWNz L2VtYWNzL2xpc3Avc2ltcGxlLmVsLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjg5OQpkaWZmIC11 IC1yMS44OTkgc2ltcGxlLmVsCi0tLSBsaXNwL3NpbXBsZS5lbAkxIEZlYiAyMDA4IDE2OjAxOjA1 IC0wMDAwCTEuODk5CisrKyBsaXNwL3NpbXBsZS5lbAk1IEZlYiAyMDA4IDA1OjQ5OjE5IC0wMDAw CkBAIC0zMzIzLDExICszMzIzLDU1IEBACiAgICAgKHNldHEgbWFyay1hY3RpdmUgbmlsKQogICAg IChydW4taG9va3MgJ2RlYWN0aXZhdGUtbWFyay1ob29rKSkpKQogCisKKyhkZWZ1biBzZXQtc2Vs ZWN0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