From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: long delay after selecting capture template Date: Sat, 19 Mar 2016 21:38:47 +0800 Message-ID: <87lh5eoae0.fsf@ericabrahamsen.net> References: <87h9g5kpf6.fsf@viking.dsc.soic.indiana.edu> <871t78d5ks.fsf@ericabrahamsen.net> <87zitvk6dp.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]:44701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahH5z-0007RE-0s for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 09:39:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahH5v-0005bf-Kp for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 09:39:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:41604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahH5v-0005bB-Dn for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 09:39:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ahH5p-00067D-2o for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 14:39:01 +0100 Received: from 221.221.225.45 ([221.221.225.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Mar 2016 14:39:01 +0100 Received: from eric by 221.221.225.45 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 Mar 2016 14:39:01 +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: > >> I guess I would `toggle-debug-on-quit', then call capture, and while >> you're waiting for it to return, hit "C-g". That ought to pop up a >> backtrace, and you can see what code was being executed during the >> delay. It might be obvious what's wrong, or you can post the backtrace >> here. > > I tried this but get no backtrace. Messages buffer contains: > > > Debug on Quit enabled globally > Template key: > byte-code: Capture abort: (quit) Ah, the org-capture code condition-cases quit. At least we know that the problem is in `org-capture-fill-template'! I can't remember off the top of my head if there's a way to tell emacs to actually debug on quit, even if quit is handled by `condition-case'. 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? Eric