From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: long delay after selecting capture template Date: Thu, 24 Mar 2016 14:07:08 +0000 Message-ID: <87d1qkt1f7.fsf@ucl.ac.uk> References: <87h9g5kpf6.fsf@viking.dsc.soic.indiana.edu> <871t78d5ks.fsf@ericabrahamsen.net> <87zitvk6dp.fsf@viking.dsc.soic.indiana.edu> <87lh5eoae0.fsf@ericabrahamsen.net> <87io0cgg5c.fsf@viking.dsc.soic.indiana.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj6RM-0006vE-I6 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 10:40:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj6RH-0001sh-J7 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 10:40:48 -0400 Received: from mail-am1on0122.outbound.protection.outlook.com ([157.56.112.122]:1628 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj6RH-0001sT-A0 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 10:40:43 -0400 In-Reply-To: <87io0cgg5c.fsf@viking.dsc.soic.indiana.edu> (Allan Streib's message of "Thu, 24 Mar 2016 09:27:27 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Allan Streib Cc: emacs-orgmode@gnu.org On Thursday, 24 Mar 2016 at 09:27, Allan Streib wrote: [...] > Debugging the function, the "stall" happens on the indicated line below, > the call to org-get-x-clipboard with the value 'SECONDARY [...] > I've heard of primary and clipboard X11 selections, but not secondary. I > found a web post[1] suggesting it's a "near-extinct" feature. > > If I comment out that line the delay vanishes. I've had this problem in the past. I found that setting this variable helps: ,----[ C-h v x-selection-timeout RET ] | x-selection-timeout is a variable defined in =E2=80=98C source code=E2=80= =99. | Its value is 10 |=20 | Documentation: | Number of milliseconds to wait for a selection reply. | If the selection owner doesn=E2=80=99t reply in this time, we give up. | A value of 0 means wait as long as necessary. This is initialized from t= he | "*selectionTimeout" resource. `---- For me, a value of 10 works well in most cases. Sometimes this means that the selection from another application (e.g. the browser) is not found but at least it doesn't stall. HTH, eric --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83