[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: org-capture Does not take user to any new buffer
From: |
Nick Dokos |
Subject: |
Re: [O] Bug: org-capture Does not take user to any new buffer |
Date: |
Tue, 05 Jun 2012 11:50:31 -0400 |
Nick Dokos <address@hidden> wrote:
> Mike Fitzgerald <address@hidden> 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
- Re: [O] Bug: org-capture Does not take user to any new buffer, (continued)
- Re: [O] Bug: org-capture Does not take user to any new buffer, Achim Gratz, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer, Nick Dokos, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer, Achim Gratz, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer, Nick Dokos, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer, Achim Gratz, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer, Achim Gratz, 2012/06/05
- Re: [O] Bug: org-capture Does not take user to any new buffer,
Nick Dokos <=
- Re: [O] Bug: org-capture Does not take user to any new buffer, N . Jackson, 2012/06/15
- Re: [O] Bug: org-capture Does not take user to any new buffer, N . Jackson, 2012/06/18