From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: org-capture Does not take user to any new buffer Date: Tue, 05 Jun 2012 11:50:31 -0400 Message-ID: <3279.1338911431@alphaville> References: <1414.1338868583@alphaville> <3175.1338910540@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbw1j-0005Xl-Ka for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 11:50:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbw1h-0003SL-T3 for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 11:50:35 -0400 Received: from g6t0184.atlanta.hp.com ([15.193.32.61]:30958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbw1h-0003S6-Ng for emacs-orgmode@gnu.org; Tue, 05 Jun 2012 11:50:33 -0400 In-Reply-To: Message from Nick Dokos of "Tue, 05 Jun 2012 11:35:40 EDT." <3175.1338910540@alphaville> 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 Cc: Mike Fitzgerald , emacs-orgmode@gnu.org Nick Dokos wrote: > Mike Fitzgerald wrote: > > > 1) CAPTURE-journal buffer opens around line 485 but is is killed shortly > > after > > without the user (me) doing anything (just spacebar to step thru the code) > > > > (if (and (buffer-base-buffer (current-buffer)) > > (string-match "\\`CAPTURE-" (buffer-name))) > > (kill-buffer (current-buffer))) ;killed here > > ... > > Can you please do M-x toggle-debug-on-error and run it? I hope that that > will generate a backtrace: if so, please post it here. > That's probably not enough: the above code is inside a condition-case, and the documentation of condition-case says ,---- | ... If the special | condition name `debug' is present in this list, it allows another | condition in the list to run the debugger if `debug-on-error' and the | other usual mechanisms says it should (otherwise, `condition-case' | suppresses the debugger). `---- So you might have to modify org-capture.el slightly to actually get a backtrace: --8<---------------cut here---------------start------------->8--- ... (condition-case error (org-capture-place-template) ;;; add debug to the list temporarily ((error quit debug) ;;;;<<<<<<<<<<<< (if (and (buffer-base-buffer (current-buffer)) (string-match "\\`CAPTURE-" (buffer-name))) (kill-buffer (current-buffer))) (set-window-configuration (org-capture-get :return-to-wconf)) (error "Capture template `%s': %s" (org-capture-get :key) (nth 1 error)))) ... --8<---------------cut here---------------end--------------->8--- Nick