emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
Cc: Mike Fitzgerald <mikef656@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Bug: org-capture Does not take user to any new buffer
Date: Tue, 05 Jun 2012 11:50:31 -0400	[thread overview]
Message-ID: <3279.1338911431@alphaville> (raw)
In-Reply-To: Message from Nick Dokos <nicholas.dokos@hp.com> of "Tue, 05 Jun 2012 11:35:40 EDT." <3175.1338910540@alphaville>

Nick Dokos <nicholas.dokos@hp.com> wrote:

> Mike Fitzgerald <mikef656@gmail.com> 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

  parent reply	other threads:[~2012-06-05 15:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-04 17:10 Bug: org-capture Does not take user to any new buffer Mike Fitzgerald
2012-06-05  3:56 ` Nick Dokos
     [not found]   ` <CACy+NBKaJS_byMGFursD=fOegVR=Dn+wZeFBs71gZM4s5gwn_g@mail.gmail.com>
     [not found]     ` <CACy+NB+ij+=bnnZx_Kx9X=Gjntok-7hg9ufHkb2+_rSTyxcOVg@mail.gmail.com>
2012-06-05 14:22       ` Mike Fitzgerald
2012-06-05 15:35         ` Nick Dokos
2012-06-05 15:46           ` Mike Fitzgerald
2012-06-05 15:55             ` Nick Dokos
2012-06-05 16:06               ` Mike Fitzgerald
2012-06-05 17:01                 ` Nick Dokos
2012-06-05 17:22                   ` Mike Fitzgerald
2012-06-05 17:45                     ` Nick Dokos
2012-06-05 18:04                       ` Nick Dokos
2012-06-05 18:54                         ` Achim Gratz
2012-06-05 18:18                       ` Achim Gratz
2012-06-05 18:40                         ` Nick Dokos
2012-06-05 20:22                           ` Achim Gratz
2012-06-05 20:35                             ` Nick Dokos
2012-06-05 20:42                               ` Achim Gratz
2012-06-05 17:37                   ` Achim Gratz
2012-06-05 15:50           ` Nick Dokos [this message]
2012-06-15 14:57         ` N. Jackson
2012-06-19  1:42           ` N. Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3279.1338911431@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mikef656@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).