Nick Dokos <nicholas.do...@hp.com> wrote: > Mike Fitzgerald <mikef...@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