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 06:56:29 +0000 Message-ID: <8e24944a0802042256i4e2aed9hbcc94333c4a2ab1a@mail.gmail.com> References: <8e24944a0710161629r1ec1afadj60352dc92c264217@mail.gmail.com> <8e24944a0801281152w733c977akda93089a52701219@mail.gmail.com> <8e24944a0801281659sa5a9115rf4533184413a8b20@mail.gmail.com> <8e24944a0802011115h77423fd1p2eae15a1e46bca1a@mail.gmail.com> <8e24944a0802042158s46e50586u1b70b1b3340985e1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7898_13622424.1202194589955" X-Trace: ger.gmane.org 1202194608 17663 80.91.229.12 (5 Feb 2008 06:56:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2008 06:56:48 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Miles Bader" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 05 07:57:10 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 1JMHjx-0002xB-AF for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 07:57:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMHjV-0007Rh-7I for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 01:56:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMHjR-0007QF-FQ for emacs-devel@gnu.org; Tue, 05 Feb 2008 01:56:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMHjM-0007IZ-Ax for emacs-devel@gnu.org; Tue, 05 Feb 2008 01:56:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMHjM-0007IM-4x for emacs-devel@gnu.org; Tue, 05 Feb 2008 01:56:32 -0500 Original-Received: from wx-out-0506.google.com ([66.249.82.229]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMHjL-00054J-F8 for emacs-devel@gnu.org; Tue, 05 Feb 2008 01:56:31 -0500 Original-Received: by wx-out-0506.google.com with SMTP id s7so2201506wxc.24 for ; Mon, 04 Feb 2008 22:56:31 -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=DX8JGq9jF7CU0lQVnPLSTTA0FXIDHLb2RKyLw0X/0DM=; b=c3udiIWLYtLBbrkPsOMjBQERbnoFFtN4gSVPfXCDNGs3Rq6hkuLKXCftMTmL4/U0Xxe4pBP5JOaPOPl4uK+QLGLn2GjtWlTm/nCzJKR//FQz1n6HjW0FzpMqlXoxto9c9Uc+a+P6he9VpXcdm0ieKZbNKgOPH2yKwdNvuTVST5c= 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=QFXa9eZuge64jTyIPymk+Hj7T40DCZAV1v3BTshCKmSS3jUuJkU9gSsVPbLcxCchjJb4fW7p7/WhxpgnKXL4Q8bGXreG22Kk0IHjLzN23Rfa6YmNCYkfuxPqN5aNRPJzal3KEgjelNQnVuZOSLVwV0HbpBRcg0X6Q2Ik5YqlY6I= Original-Received: by 10.142.246.8 with SMTP id t8mr3966344wfh.220.1202194589946; Mon, 04 Feb 2008 22:56:29 -0800 (PST) Original-Received: by 10.142.111.4 with HTTP; Mon, 4 Feb 2008 22:56:29 -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:88242 Archived-At: ------=_Part_7898_13622424.1202194589955 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 05/02/2008, Miles Bader wrote: > "David De La Harpe Golden" writes: > > Other solutions - fixing select-active-regions with an idle timer that > > polls the region for changes? > > Why don't you only keep the timer when the region is actually active > (rather rarely in typical usage I think)? > Geez. That would be far too sensible.... attached. ------=_Part_7898_13622424.1202194589955 Content-Type: text/x-diff; name=select-active-regions-when-idle2.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fca3ji79 Content-Disposition: attachment; filename=select-active-regions-when-idle2.diff SW5kZXg6IGxpc3Avc2ltcGxlLmVsCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9zb3VyY2VzL2VtYWNz L2VtYWNzL2xpc3Avc2ltcGxlLmVsLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjg5OQpkaWZmIC11 IC1yMS44OTkgc2ltcGxlLmVsCi0tLSBsaXNwL3NpbXBsZS5lbAkxIEZlYiAyMDA4IDE2OjAxOjA1 IC0wMDAwCTEuODk5CisrKyBsaXNwL3NpbXBsZS5lbAk1IEZlYiAyMDA4IDA2OjUzOjEwIC0wMDAw CkBAIC0zMzE2LDYgKzMzMTYsNyBAQAogICAiRGVhY3RpdmF0ZSB0aGUgbWFyayBieSBzZXR0aW5n IGBtYXJrLWFjdGl2ZScgdG8gbmlsLgogXChUaGF0IG1ha2VzIGEgZGlmZmVyZW5jZS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