From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: long delay after selecting capture template Date: Thu, 24 Mar 2016 21:40:48 +0800 Message-ID: <87d1qkro2n.fsf@ericabrahamsen.net> 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 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj5Vb-0005QA-6H for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:41:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj5VV-0002rg-7s for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:41:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:49258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj5VV-0002rN-22 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:41:01 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aj5VP-00040O-Jl for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 14:40:56 +0100 Received: from 123.118.184.157 ([123.118.184.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2016 14:40:55 +0100 Received: from eric by 123.118.184.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Mar 2016 14:40:55 +0100 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: emacs-orgmode@gnu.org Allan Streib writes: > Eric Abrahamsen writes: > >> Another thing you can try is edebugging `org-capture-fill-template' and >> stepping through it, and just see if anything weird happens. See the >> Elisp manual for how to edebug, if you haven't before. >> >> Does it only happen for the "t" template? What's the "t" template look >> like? > > I've really just started with org mode and task capture; so far I've > only used the default "todo" (t) template. > > Debugging the function, the "stall" happens on the indicated line below, > the call to org-get-x-clipboard with the value 'SECONDARY > > [...] > > ;; Is the link empty? Then we do not want it... > (v-a (if (equal v-a "[[]]") "" v-a)) > (clipboards (remove nil (list v-i > (org-get-x-clipboard 'PRIMARY) > (org-get-x-clipboard 'CLIPBOARD) > >>> (org-get-x-clipboard 'SECONDARY) <<< > v-c))) > > [...] > > 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. Well that's some fairly successful sleuthing. The bad news is you know now as much as (or more than) I do about your problem, and I don't know what to tell you from here. I'd say tell the list what system you're using, and what desktop environment, and hope someone has some wisdom to bestow. Otherwise... just comment that line out. E