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: Strange slowness when killing words interactively Date: Mon, 02 May 2011 17:32:38 +0100 Message-ID: <4DBEDCA6.1030600@harpegolden.net> References: <87pqo1oqg2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1304356306 11890 80.91.229.12 (2 May 2011 17:11:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 17:11:46 +0000 (UTC) Cc: Taylor Venable To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 19:11:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGwer-0007b3-9w for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 19:11:41 +0200 Original-Received: from localhost ([::1]:58367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGweq-0004MS-GP for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 13:11:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGwen-0004MN-Td for emacs-devel@gnu.org; Mon, 02 May 2011 13:11:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGwen-0005UQ-0W for emacs-devel@gnu.org; Mon, 02 May 2011 13:11:37 -0400 Original-Received: from [65.99.215.13] (port=36766 helo=harpegolden.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGwem-0005UI-Tn for emacs-devel@gnu.org; Mon, 02 May 2011 13:11:36 -0400 Original-Received: from [87.198.47.56] (87-198-47-56.ptr.magnet.ie [87.198.47.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id BA446683D2; Mon, 2 May 2011 17:32:40 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 65.99.215.13 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138967 Archived-At: On 02/05/11 05:25, Taylor Venable wrote: > Indeed, setting interprogram-cut-function to nil improves the speed > dramatically to the normal levels that I see on other machines and in > the console. The default value is x-select-text. The problem is also > fixed by setting x-select-enable-clipboard to nil. Just in case: Is your emacs running on the same machine as the x11 server, or remotely? Are you running a clipboard daemon (e.g. kde klipper, xfce4-clipman) in your desktop environment? Typically such a thing shows up as a little clipboard icon in the system tray, with a click on it maybe showing a history of previous clipboard contents, a bit like a system-wide kill-ring. They can in theory cause some slowness by eagerly grabbing clipboard contents (and sometimes primary selection too) for history keeping purposes. It's not usually perceptible when everything's local, though. If you find such a daemon running, please try temporarily disabling it and retesting (you'll still have basic clipboard functionality without the daemon). Probably you'd have already mentioned if you were seeing similar symptoms in non-emacs applications that interact with the x11 clipboard, but if you have the "xclip" command line tool available (arch extra package xclip, apparently), you also could see if the following is near instantaneous (it really should be): $ echo 'Hello, World.' | xclip -selection clipboard $ xclip -selection clipboard -o Hello, World.