Org-mode version 7.8.11 Downloaded a zip file, not a GIT user.
Backtrace from a non-edebug run attached. Thanks Mike On Tue, Jun 5, 2012 at 10:35 AM, Nick Dokos <nicholas.do...@hp.com> wrote: > Mike Fitzgerald <mikef...@gmail.com> wrote: > > > --0016e6dee7746941fa04c1ba62e3 > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Took the suggestion to run edebug. > > A couple of observations: > > > > 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 > > > > 2) Then later > > The defen stops around line 491 of org-capture.el > > (error "Capture template `%s': %s" > > (org-capture-get :key) > > (nth 1 error)))) > > > > Any insight? > > > > 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. > > Are you installing org from the git repository or is this a bundled > version? Please do C-u M-x org-version RET when you are composing mail, > so that the version will be incorporated into the mail message. > > If you are installing from git, it might be worth it to just clean up > everything and try again from scratch, noting any problems that > arise. This might be quicker and easier than debugging a broken install. > > Nick > > > Thanks > > > > Mike > > > > On Tue, Jun 5, 2012 at 9:07 AM, Mike Fitzgerald <mikef...@gmail.com> > wrote: > > > > > This part works as described: > > > > > > "start capture, I get another window where > > > I'm presented with an "*Org Select*" buffer that offers me the > available > > > choices" > > > > > > However, this part does not work as expected: > > > "when I select one of those I select one of those, I get a > > > "CAPTURE-foo.org" buffer" > > > > > > I would expect: > > > A) new buffer would be created > > > and > > > B) EMACS would switch to it > > > and > > > C) Some message with value to the user > > > > > > B and C do not happen. A happens but I need to manually switch to it > > > > > > I get a message that has little value: > > > "Capture template `j': org-called-interactively-p" > > > > > > I have never used the working version of capture (this is it), but I > have > > > used > > > remember a little and seem to recall it gives a message something > > > like "C-c C-c" to finish. I don't get any thing like this. > > > > > > This makes me think that a defun stopped somewhere that it was > > > non designed to. > > > > > > The buffer that is created is and I an able to switch to is > journal.org. > > > This does not seem like a temp buffer, rather it seems like the final > > > destination. > > > > > > Whatever defun sends "Capture template `j': org-called-interactively-p" > > > seems to have stopped abnormally. > > > > > > This is my org setup near the top of my .emacs > > > > > > (add-to-list 'load-path "~/.emacs.d/org/org-7.8.11/contrib/lisp/") > > > (add-to-list 'load-path "~/.emacs.d/org/org-7.8.11/lisp/") > > > (require 'org-install) > > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > > > (define-key global-map "\C-cl" 'org-store-link) > > > (define-key global-map "\C-ca" 'org-agenda) > > > (setq org-log-done t) > > > > > > (setq org-capture-templates > > > > > > '(("t" "Todo" entry (file+headline "~/org/gtd.org" "Tasks") > > > "* TODO %?\n %i\n %a") > > > ("j" "Journal" entry (file+datetree "~/org/journal.org") > > > "* %?\nEntered on %U\n %i\n %a"))) > > > > > > ;org-capture binding > > > ;(global-set-key "\C-c-c" 'org-capture) > > > (global-set-key [(control c) (c)] 'org-capture) > > > > > > > > > Does this look OK? > > > > > > Thanks > > > > > > Mike > > > > > > > > > On Mon, Jun 4, 2012 at 10:56 PM, Nick Dokos <nicholas.do...@hp.com> > wrote: > > > > > >> Mike Fitzgerald <mikef...@gmail.com> wrote: > > >> > > >> > To duplicate: > > >> > > > >> > > >> I haven't tried specifically to duplicate your setup but org-capture > > >> seems to work fine here. > > >> > > >> > 1) Run org-capture with C-c c > > >> > 2) User is Promoted with the two templates expected > > >> > (copied the templates from the org-mode site) > > >> > > > >> > 3) Enter j for journal > > >> > 4) Expect switch to new buffer > > >> > 5) No switch occurs > > >> > > >> So what happens instead? If I start capture, I get another window > where > > >> I'm presented with an "*Org Select*" buffer that offers me the > available > > >> choices and when I select one of those, I get a "CAPTURE-foo.org" > buffer > > >> for some value of "foo". This is actually an indirect buffer and the > > >> text should be inserted into the target location already, so you can > > >> look at ~/org/journal.org (or whatever) and see that it contains the > > >> partial entry just started. See the description of org-capture: C-h f > > >> org-capture RET. > > >> > > >> If I were you, I'd probably use edebug to step through the org-capture > > >> function (and I'd forget about byte compiling anything until whatever > > >> problem you have is identified and solved). > > >> > > >> HTH, > > >> Nick > > >> > > >> > Note that journal.org is open, but I need to switch to it > > >> > > > >> > I expected EMACS to switch to a new buffer after choosing > > >> > the template. > > >> > > > >> > Running GNU EMACS 23.3 on Win7 > > >> > > > >> > Org mode update byte compiled by hand (without make) using > > >> > > > >> > (defun my/compile-org(&optional directory) > > >> > "Compile all *.el files that come with org-mode." > > >> > (interactive) > > >> > ;Found on a org-mode related page. > > >> > > > >> > Thanks > > >> > > > >> > Mike > > >> > > > >> > Remember to cover the basics, that is, what you expected to happen > and > > >> > what in fact did happen. You don't know how to make a good report? > See > > >> > > > >> > http://orgmode.org/manual/Feedback.html#Feedback > > >> > > > >> > Your bug report will be posted to the Org-mode mailing list. > > >> > > ------------------------------------------------------------------------ > > >> > > > >> > Emacs : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) > > >> > of 2011-03-10 on 3249CTO > > >> > Package: Org-mode version 7.8.11 > > >> > > > >> > current state: > > >> > ============== > > >> > (setq > > >> > org-log-done 'time > > >> > org-export-latex-after-initial-vars-hook > > >> '(org-beamer-after-initial-vars) > > >> > org-speed-command-hook '(org-speed-command-default-hook > > >> org-babel-speed-command-hook) > > >> > org-metaup-hook '(org-babel-load-in-session-maybe) > > >> > org-capture-templates '(("t" "Todo" entry (file+headline "~/org/ > > >> gtd.org" "Tasks") > > >> > "* TODO %?\n %i\n %a") > > >> > ("j" "Journal" entry (file+datetree "~/org/journal.org > ") > > >> > "* %?\nEntered on %U\n %i\n %a") > > >> > ) > > >> > org-after-todo-state-change-hook '(org-clock-out-if-current) > > >> > org-export-latex-format-toc-function > > >> 'org-export-latex-format-toc-default > > >> > org-tab-first-hook '(org-hide-block-toggle-maybe > > >> org-src-native-tab-command-maybe > > >> > org-babel-hide-result-toggle-maybe) > > >> > org-src-mode-hook '(org-src-babel-configure-edit-buffer > > >> org-src-mode-configure-edit-buffer) > > >> > org-confirm-shell-link-function 'yes-or-no-p > > >> > org-export-first-hook '(org-beamer-initialize-open-trackers) > > >> > org-agenda-before-write-hook '(org-agenda-add-entry-text) > > >> > org-babel-pre-tangle-hook '(save-buffer) > > >> > org-cycle-hook '(org-cycle-hide-archived-subtrees > > >> org-cycle-hide-drawers org-cycle-show-empty-lines > > >> > org-optimize-window-after-visibility-change) > > >> > org-export-preprocess-before-normalizing-links-hook > > >> '(org-remove-file-link-modifiers) > > >> > org-mode-hook '(#[nil "\300\301\302\303\304$\207" > > >> > [org-add-hook change-major-mode-hook org-show-block-all > > >> append local] 5] > > >> > #[nil "\300\301\302\303\304$\207" > > >> > [org-add-hook change-major-mode-hook > > >> org-babel-show-result-all append local] 5] > > >> > org-babel-result-hide-spec org-babel-hide-all-hashes) > > >> > org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > > >> org-babel-execute-safely-maybe) > > >> > org-confirm-elisp-link-function 'yes-or-no-p > > >> > org-export-interblocks '((src org-babel-exp-non-block-elements)) > > >> > org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > > >> > org-occur-hook '(org-first-headline-recenter) > > >> > org-export-preprocess-before-selecting-backend-code-hook > > >> '(org-beamer-select-beamer-code) > > >> > org-export-latex-final-hook '(org-beamer-amend-header > > >> org-beamer-fix-toc > > >> > org-beamer-auto-fragile-frames > > >> > org-beamer-place-default-actions-for-lists) > > >> > org-metadown-hook '(org-babel-pop-to-session-maybe) > > >> > org-export-blocks '((src org-babel-exp-src-block nil) > > >> > (export-comment org-export-blocks-format-comment t) > > >> > (ditaa org-export-blocks-format-ditaa nil) (dot > > >> org-export-blocks-format-dot nil)) > > >> > ) > > >> > > > >> > > > >> > ---------------------------------------------------- > > >> > Alternatives: > > >> > > > >> > ---------------------------------------------------- > > >> > > > > > > > > > > > > > --0016e6dee7746941fa04c1ba62e3 > > Content-Type: text/html; charset=ISO-8859-1 > > Content-Transfer-Encoding: quoted-printable > > > > Took the suggestion to run edebug.<br>A couple of > observations:<br><br>1) C= > > APTURE-journal buffer opens around line 485 but is is killed shortly > after<= > > br>without the user (me) doing anything (just spacebar to step thru the > cod= > > e)<br> > > <br>=A0=A0=A0 =A0=A0=A0=A0 (if (and (buffer-base-buffer > (current-buffer))<b= > > r>=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 (string-match > "\\`CAPTURE-"= > > (buffer-name)))<br>=A0=A0=A0 =A0=A0=A0 =A0(kill-buffer > (current-buffer))) = > > ;killed here<br><br>2) Then later<br>The defen stops around line 491 of > org= > > -capture.el<br> > > =A0=A0=A0 =A0=A0=A0=A0 (error "Capture template `%s': > %s"<br>= > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 (org-capture-get :key)<br>=A0=A0=A0 > =A0=A0=A0= > > =A0=A0=A0 (nth 1 error))))<br><br>Any > insight?<br><br>Thanks<br><br>Mike<b= > > r><br><div class=3D"gmail_quote">On Tue, Jun 5, 2012 at 9:07 AM, Mike > Fitzg= > > erald <span dir=3D"ltr"><<a href=3D"mailto:mikef...@gmail.com" > target=3D= > > "_blank">mikef...@gmail.com</a>></span> wrote:<br> > > <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 > .8ex;border-left:1p= > > x #ccc solid;padding-left:1ex"><div class=3D"HOEnZb"><div > class=3D"h5"><div= > > class=3D"gmail_quote">This part works as described:<div><br>"start > ca= > > pture, I get another window where<br> > > > > I'm presented with an "*Org Select*" buffer that offers me > th= > > e available choices" <br><br></div>However, this part does not work > as= > > expected:<br>"when I select one of those I select one of those, I > get= > > a "CAPTURE-foo.org" buffer"<br> > > > > > > <br>I would expect: <br>A) new buffer would be created <br>and <br>B) > EMACS= > > would switch to it <br>and<br>C) Some message with value to the > user<br><b= > > r>B and C do not happen.=A0 A happens but I need to manually switch to > it<b= > > r> > > > > > > <br>I get a message that has little value:<br>=A0=A0=A0 "Capture > templ= > > ate `j': org-called-interactively-p"<br><br>I have never used > the = > > working version of capture (this is it), but I have used<br>remember a > litt= > > le and seem to recall it gives a message something<br> > > > > > > like "C-c C-c" to finish.=A0 I don't get any thing like > this.= > > <br><br>This makes me think that a defun stopped somewhere that it > was<br>n= > > on designed to.<br><br>The buffer that is created is and I an able to > switc= > > h to is <a href=3D"http://journal.org" target=3D"_blank">journal.org > </a>.= > > =A0 <br> > > > > > > This does not seem like a temp buffer, rather it seems like the final > desti= > > nation.<br><br>Whatever defun sends "Capture template `j': > org-cal= > > led-interactively-p"<br>seems to have stopped abnormally. > > <br><br>This is my org setup near the top of my > .emacs<br><br>(add-to-list = > > 'load-path > "~/.emacs.d/org/org-7.8.11/contrib/lisp/")<br>(add= > > -to-list 'load-path "~/.emacs.d/org/org-7.8.11/lisp/")<br> > > > > > > (require 'org-install)<br>(add-to-list 'auto-mode-alist > '("= > > ;\\.org$" . org-mode))<br>(define-key global-map "\C-cl" > = > > 9;org-store-link)<br>(define-key global-map "\C-ca" > 'org-agen= > > da)<br> > > > > > > (setq org-log-done t)<br><br>(setq > org-capture-templates<div><br>=A0=A0=A0= > > =A0=A0 '(("t" "Todo" entry (file+headline > "~/o= > > rg/<a href=3D"http://gtd.org" target=3D"_blank">gtd.org</a>" > "Tas= > > ks")<br> > > > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "* TODO %?\n=A0 %i\n=A0 > %a")= > > <br> > > =A0=A0=A0=A0=A0=A0=A0 ("j" "Journal" entry > (file+datetr= > > ee "~/org/<a href=3D"http://journal.org" target=3D"_blank"> > journal.org= > > </a>")<br></div>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 "* > %?\nEnter= > > ed on %U\n=A0 %i\n=A0 %a")))<br><br> > > > > ;org-capture binding <br> > > ;(global-set-key "\C-c-c" 'org-capture)<br>(global-set-key > [(= > > control c) (c)] 'org-capture)<br><br><br>Does this look OK?<br><br> > > Thanks<span><font color=3D"#888888"><br><br>Mike > <br></font></span><div><di= > > v><br><br><div class=3D"gmail_quote">On Mon, Jun 4, 2012 at 10:56 PM, > Nick = > > Dokos <span dir=3D"ltr"><<a href=3D"mailto:nicholas.do...@hp.com" > target= > > =3D"_blank">nicholas.do...@hp.com</a>></span> wrote:<br> > > > > > > <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 > .8ex;border-left:1p= > > x #ccc solid;padding-left:1ex">Mike Fitzgerald <<a href=3D"mailto: > mikef6= > > 5...@gmail.com" target=3D"_blank">mikef...@gmail.com</a>> wrote:<br> > > <br> > > > To duplicate:<br> > > ><br> > > <br> > > I haven't tried specifically to duplicate your setup but > org-capture<br= > > > > > seems to work fine here.<br> > > <div><br> > > > 1) Run org-capture with C-c c<br> > > > 2) User is Promoted with the two templates expected=A0<br> > > > (copied the templates from the org-mode site)<br> > > ><br> > > > 3) Enter j for journal<br> > > > 4) Expect switch to new buffer<br> > > > 5) No switch occurs<br> > > <br> > > </div>So what happens instead? If I start capture, I get another window > whe= > > re<br> > > I'm presented with an "*Org Select*" buffer that offers me > th= > > e available<br> > > choices and when I select one of those, I get a > "CAPTURE-foo.org"= > > buffer<br> > > for some value of "foo". =A0This is actually an indirect > buffer a= > > nd the<br> > > text should be inserted into the target location already, so you can<br> > > look at ~/org/<a href=3D"http://journal.org" target=3D"_blank"> > journal.org<= > > /a> (or whatever) and see that it contains the<br> > > partial entry just started. =A0See the description of org-capture: C-h > f<br= > > > > > org-capture RET.<br> > > <br> > > If I were you, I'd probably use edebug to step through the > org-capture<= > > br> > > function (and I'd forget about byte compiling anything until > whatever<b= > > r> > > problem you have is identified and solved).<br> > > <br> > > HTH,<br> > > Nick<br> > > <div><div><br> > > > Note that <a href=3D"http://journal.org" target=3D"_blank"> > journal.org= > > </a> is open, but I need to switch to it<br> > > ><br> > > > I expected EMACS to switch to a new buffer after choosing<br> > > > the template.<br> > > ><br> > > > Running GNU EMACS 23.3 on Win7<br> > > ><br> > > > Org mode update byte compiled by hand (without make) using<br> > > > =A0<br> > > > =A0=A0 (defun my/compile-org(&optional directory)<br> > > > =A0=A0=A0=A0 "Compile all *.el files that come with > org-mode.&quo= > > t;<br> > > > =A0 =A0=A0 (interactive)<br> > > > =A0=A0 ;Found on a org-mode related page.<br> > > ><br> > > > Thanks<br> > > ><br> > > > Mike<br> > > ><br> > > > Remember to cover the basics, that is, what you expected to happen > and= > > <br> > > > what in fact did happen.=A0 You don't know how to make a good > repo= > > rt?=A0 See<br> > > ><br> > > > =A0=A0=A0=A0 <a href=3D" > http://orgmode.org/manual/Feedback.html#Feedba= > > ck" target=3D"_blank">http://orgmode.org/manual/Feedback.html#Feedback > </a><= > > br> > > ><br> > > > Your bug report will be posted to the Org-mode mailing list.<br> > > > > ----------------------------------------------------------------------= > > --<br> > > ><br> > > > Emacs=A0 : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)<br> > > > =A0of 2011-03-10 on 3249CTO<br> > > > Package: Org-mode version 7.8.11<br> > > ><br> > > > current state:<br> > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br> > > > (setq<br> > > > =A0org-log-done 'time<br> > > > =A0org-export-latex-after-initial-vars-hook > '(org-beamer-after-ini= > > tial-vars)<br> > > > =A0org-speed-command-hook '(org-speed-command-default-hook > org-bab= > > el-speed-command-hook)<br> > > > =A0org-metaup-hook '(org-babel-load-in-session-maybe)<br> > > > =A0org-capture-templates '(("t" "Todo" > entry (= > > file+headline "~/org/<a href=3D"http://gtd.org" > target=3D"_blank">gtd.= > > org</a>" "Tasks")<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "* TODO %?\n=A0 %i\n=A0 > %a"= > > ;)<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0("j" "Journal" > en= > > try (file+datetree "~/org/<a href=3D"http://journal.org" > target=3D"_bl= > > ank">journal.org</a>")<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 "* %?\nEntered on %U\n=A0 > %i\n= > > =A0 %a")<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0)<br> > > > =A0org-after-todo-state-change-hook > '(org-clock-out-if-current)<br= > > > > > > =A0org-export-latex-format-toc-function > 'org-export-latex-format-t= > > oc-default<br> > > > =A0org-tab-first-hook '(org-hide-block-toggle-maybe > org-src-native= > > -tab-command-maybe<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 > org-babel-hide-result-toggle-maybe= > > )<br> > > > =A0org-src-mode-hook '(org-src-babel-configure-edit-buffer > org-src= > > -mode-configure-edit-buffer)<br> > > > =A0org-confirm-shell-link-function 'yes-or-no-p<br> > > > =A0org-export-first-hook > '(org-beamer-initialize-open-trackers)<br= > > > > > > =A0org-agenda-before-write-hook '(org-agenda-add-entry-text)<br> > > > =A0org-babel-pre-tangle-hook '(save-buffer)<br> > > > =A0org-cycle-hook '(org-cycle-hide-archived-subtrees > org-cycle-hid= > > e-drawers org-cycle-show-empty-lines<br> > > > =A0=A0=A0 =A0=A0=A0 =A0 > org-optimize-window-after-visibility-change)<b= > > r> > > > =A0org-export-preprocess-before-normalizing-links-hook > '(org-remov= > > e-file-link-modifiers)<br> > > > =A0org-mode-hook '(#[nil > "\300\301\302\303\304$\207"<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0 [org-add-hook change-major-mode-hook > org-sh= > > ow-block-all append local] 5]<br> > > > =A0=A0=A0 =A0=A0=A0 =A0#[nil > "\300\301\302\303\304$\207"<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0 [org-add-hook change-major-mode-hook > org-ba= > > bel-show-result-all append local] 5]<br> > > > =A0=A0=A0 =A0=A0=A0 =A0org-babel-result-hide-spec > org-babel-hide-all-h= > > ashes)<br> > > > =A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point > org-babel-exec= > > ute-safely-maybe)<br> > > > =A0org-confirm-elisp-link-function 'yes-or-no-p<br> > > > =A0org-export-interblocks '((src > org-babel-exp-non-block-elements)= > > )<br> > > > =A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer)<br> > > > =A0org-occur-hook '(org-first-headline-recenter)<br> > > > =A0org-export-preprocess-before-selecting-backend-code-hook > '(org-= > > beamer-select-beamer-code)<br> > > > =A0org-export-latex-final-hook '(org-beamer-amend-header > org-beame= > > r-fix-toc<br> > > > org-beamer-auto-fragile-frames<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 > org-beamer-place-defa= > > ult-actions-for-lists)<br> > > > =A0org-metadown-hook '(org-babel-pop-to-session-maybe)<br> > > > =A0org-export-blocks '((src org-babel-exp-src-block nil)<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (export-comment > org-export-blocks-for= > > mat-comment t)<br> > > > =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (ditaa > org-export-blocks-format-ditaa= > > nil) (dot org-export-blocks-format-dot nil))<br> > > > =A0)<br> > > ><br> > > ><br> > > </div></div>> ----------------------------------------------------<br> > > > Alternatives:<br> > > ><br> > > > ----------------------------------------------------<br> > > </blockquote></div><br> > > </div></div></div><br> > > </div></div></blockquote></div><br> > > > > --0016e6dee7746941fa04c1ba62e3-- > > >
Debugger entered--Lisp error: (error "Capture template `j': org-called-interactively-p") signal(error ("Capture template `j': org-called-interactively-p")) error("Capture template `%s': %s" "j" org-called-interactively-p) byte-code("\301p!\203 \302\303\304 \"\203 \305p!\210\306\307\310!!\210\300\311\307\312!A@#\207" [error buffer-base-buffer string-match "\\`CAPTURE-" buffer-name kill-buffer set-window-configuration org-capture-get :return-to-wconf "Capture template `%s': %s" :key] 4) org-capture(nil) call-interactively(org-capture nil nil)