From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Emacs hanging after M-w and C-k Date: Tue, 08 Nov 2005 08:05:37 +0100 Message-ID: <43704E41.6040608@swipnet.se> References: <4368A3F5.8030305@operax.com> <436B0E1F.9060609@swipnet.se> 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 1131434826 7673 80.91.229.2 (8 Nov 2005 07:27:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2005 07:27:06 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 08 08:27:00 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EZNsC-0003eF-KO for ged-emacs-devel@m.gmane.org; Tue, 08 Nov 2005 08:26:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZNsB-0005xV-V5 for ged-emacs-devel@m.gmane.org; Tue, 08 Nov 2005 02:26:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EZNYg-0000Zh-0w for emacs-devel@gnu.org; Tue, 08 Nov 2005 02:06:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EZNYc-0000YB-Hr for emacs-devel@gnu.org; Tue, 08 Nov 2005 02:06:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EZNYb-0000Xx-D6 for emacs-devel@gnu.org; Tue, 08 Nov 2005 02:06:13 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EZNYb-0006Rw-1M for emacs-devel@gnu.org; Tue, 08 Nov 2005 02:06:13 -0500 Original-Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep02.bredband.com with ESMTP id <20051108070611.CFNF16437.mxfep02.bredband.com@ironport.bredband.com> for ; Tue, 8 Nov 2005 08:06:11 +0100 Original-Received: from c-d2b4e253.012-150-626f6410.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([83.226.180.210]) by ironport.bredband.com with ESMTP; 08 Nov 2005 08:05:40 +0100 X-IronPort-AV: i="3.97,303,1125871200"; d="scan'208"; a="8444809:sNHT55828233" User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en Original-To: Stefan Monnier In-Reply-To: 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:45582 Archived-At: Stefan Monnier wrote: >>If it get stuck in XSetSelectionOwner it is not feasible, as this is >>a synchronous call in X. Can you verify that it is there it is stuck? >> >> > >Hmm.... OK it turns out that it's a problem due to my own local hacks (see >the patch below). So in a vanilla Emacs, the way to reproduce a similar >problem is to do C-y when another app has the selection and is frozen. >But unless we add a timeout, there is little we can do about it in the case >of C-y. In the case of the patch below, I'd want to run >interprogram-paste-function asynchronously, but it's not clear how to do. >That's too bad: I was planning to submit the patch below for inclusion. > > For C-y there is x-selection-timeout (default seems to be 20000, 20 seconds). Does that not work for you? Actually, it seems to timeout somewhat later than the actual value, i.e. if I set it to 1000 (1 second) the timeout occurs at about 2 seconds. Jan D. > > >