From mboxrd@z Thu Jan 1 00:00:00 1970 From: Allan Streib Subject: Re: long delay after selecting capture template Date: Thu, 24 Mar 2016 09:27:27 -0400 Message-ID: <87io0cgg5c.fsf@viking.dsc.soic.indiana.edu> References: <87h9g5kpf6.fsf@viking.dsc.soic.indiana.edu> <871t78d5ks.fsf@ericabrahamsen.net> <87zitvk6dp.fsf@viking.dsc.soic.indiana.edu> <87lh5eoae0.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj5IS-0008Nf-BL for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:27:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj5IP-00077N-51 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:27:32 -0400 Received: from belushi.uits.indiana.edu ([129.79.1.188]:29488 helo=hartman.uits.indiana.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj5IO-00077A-W6 for emacs-orgmode@gnu.org; Thu, 24 Mar 2016 09:27:29 -0400 In-Reply-To: <87lh5eoae0.fsf@ericabrahamsen.net> 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: Eric Abrahamsen , emacs-orgmode@gnu.org 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. Footnotes: [1] https://sjohannes.wordpress.com/2010/02/28/what-is-the-x11-secondary-selection/ Allan