emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: org-capture Does not take user to any new buffer
@ 2012-06-04 17:10 Mike Fitzgerald
  2012-06-05  3:56 ` Nick Dokos
  0 siblings, 1 reply; 21+ messages in thread
From: Mike Fitzgerald @ 2012-06-04 17:10 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 3566 bytes --]

To duplicate:

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
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))
 )

[-- Attachment #2: Type: text/html, Size: 4243 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  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>
  0 siblings, 1 reply; 21+ messages in thread
From: Nick Dokos @ 2012-06-05  3:56 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

Mike Fitzgerald <mikef656@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:
> 
> ----------------------------------------------------

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
       [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-15 14:57         ` N. Jackson
  0 siblings, 2 replies; 21+ messages in thread
From: Mike Fitzgerald @ 2012-06-05 14:22 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 7825 bytes --]

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?

Thanks

Mike

On Tue, Jun 5, 2012 at 9:07 AM, Mike Fitzgerald <mikef656@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.dokos@hp.com> wrote:
>
>> Mike Fitzgerald <mikef656@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:
>> >
>> > ----------------------------------------------------
>>
>
>
>

[-- Attachment #2: Type: text/html, Size: 10210 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  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:50           ` Nick Dokos
  2012-06-15 14:57         ` N. Jackson
  1 sibling, 2 replies; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 15:35 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

Mike Fitzgerald <mikef656@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 <mikef656@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.dokos@hp.com> wrote:
> >
> >> Mike Fitzgerald <mikef656@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 &quot;\\`CAPTURE-&quot;=
>  (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 &quot;Capture template `%s&#39;: %s&quot;<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">&lt;<a href=3D"mailto:mikef656@gmail.com" target=3D=
> "_blank">mikef656@gmail.com</a>&gt;</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>&quot;start ca=
> pture, I get another window where<br>
> 
> I&#39;m presented with an &quot;*Org Select*&quot; buffer that offers me th=
> e available choices&quot; <br><br></div>However, this part does not work as=
>  expected:<br>&quot;when I select one of those I select one of those, I get=
>  a &quot;CAPTURE-foo.org&quot; buffer&quot;<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 &quot;Capture templ=
> ate `j&#39;: org-called-interactively-p&quot;<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 &quot;C-c C-c&quot; to finish.=A0 I don&#39;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 &quot;Capture template `j&#39;: org-cal=
> led-interactively-p&quot;<br>seems to have stopped abnormally.
> <br><br>This is my org setup near the top of my .emacs<br><br>(add-to-list =
> &#39;load-path &quot;~/.emacs.d/org/org-7.8.11/contrib/lisp/&quot;)<br>(add=
> -to-list &#39;load-path &quot;~/.emacs.d/org/org-7.8.11/lisp/&quot;)<br>
> 
> 
> (require &#39;org-install)<br>(add-to-list &#39;auto-mode-alist &#39;(&quot=
> ;\\.org$&quot; . org-mode))<br>(define-key global-map &quot;\C-cl&quot; &#3=
> 9;org-store-link)<br>(define-key global-map &quot;\C-ca&quot; &#39;org-agen=
> da)<br>
> 
> 
> (setq org-log-done t)<br><br>(setq org-capture-templates<div><br>=A0=A0=A0=
> =A0=A0 &#39;((&quot;t&quot; &quot;Todo&quot; entry (file+headline &quot;~/o=
> rg/<a href=3D"http://gtd.org" target=3D"_blank">gtd.org</a>&quot; &quot;Tas=
> ks&quot;)<br>
> 
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;* TODO %?\n=A0 %i\n=A0 %a&quot;)=
> <br>
> =A0=A0=A0=A0=A0=A0=A0 (&quot;j&quot; &quot;Journal&quot; entry (file+datetr=
> ee &quot;~/org/<a href=3D"http://journal.org" target=3D"_blank">journal.org=
> </a>&quot;)<br></div>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;* %?\nEnter=
> ed on %U\n=A0 %i\n=A0 %a&quot;)))<br><br>
> 
> ;org-capture binding <br>
> ;(global-set-key &quot;\C-c-c&quot; &#39;org-capture)<br>(global-set-key [(=
> control c) (c)] &#39;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">&lt;<a href=3D"mailto:nicholas.dokos@hp.com" target=
> =3D"_blank">nicholas.dokos@hp.com</a>&gt;</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 &lt;<a href=3D"mailto:mikef6=
> 56@gmail.com" target=3D"_blank">mikef656@gmail.com</a>&gt; wrote:<br>
> <br>
> &gt; To duplicate:<br>
> &gt;<br>
> <br>
> I haven&#39;t tried specifically to duplicate your setup but org-capture<br=
> >
> seems to work fine here.<br>
> <div><br>
> &gt; 1) Run org-capture with C-c c<br>
> &gt; 2) User is Promoted with the two templates expected=A0<br>
> &gt; (copied the templates from the org-mode site)<br>
> &gt;<br>
> &gt; 3) Enter j for journal<br>
> &gt; 4) Expect switch to new buffer<br>
> &gt; 5) No switch occurs<br>
> <br>
> </div>So what happens instead? If I start capture, I get another window whe=
> re<br>
> I&#39;m presented with an &quot;*Org Select*&quot; buffer that offers me th=
> e available<br>
> choices and when I select one of those, I get a &quot;CAPTURE-foo.org&quot;=
>  buffer<br>
> for some value of &quot;foo&quot;. =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&#39;d probably use edebug to step through the org-capture<=
> br>
> function (and I&#39;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>
> &gt; Note that <a href=3D"http://journal.org" target=3D"_blank">journal.org=
> </a> is open, but I need to switch to it<br>
> &gt;<br>
> &gt; I expected EMACS to switch to a new buffer after choosing<br>
> &gt; the template.<br>
> &gt;<br>
> &gt; Running GNU EMACS 23.3 on Win7<br>
> &gt;<br>
> &gt; Org mode update byte compiled by hand (without make) using<br>
> &gt; =A0<br>
> &gt; =A0=A0 (defun my/compile-org(&amp;optional directory)<br>
> &gt; =A0=A0=A0=A0 &quot;Compile all *.el files that come with org-mode.&quo=
> t;<br>
> &gt; =A0 =A0=A0 (interactive)<br>
> &gt; =A0=A0 ;Found on a org-mode related page.<br>
> &gt;<br>
> &gt; Thanks<br>
> &gt;<br>
> &gt; Mike<br>
> &gt;<br>
> &gt; Remember to cover the basics, that is, what you expected to happen and=
> <br>
> &gt; what in fact did happen.=A0 You don&#39;t know how to make a good repo=
> rt?=A0 See<br>
> &gt;<br>
> &gt; =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>
> &gt;<br>
> &gt; Your bug report will be posted to the Org-mode mailing list.<br>
> &gt; ----------------------------------------------------------------------=
> --<br>
> &gt;<br>
> &gt; Emacs=A0 : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)<br>
> &gt; =A0of 2011-03-10 on 3249CTO<br>
> &gt; Package: Org-mode version 7.8.11<br>
> &gt;<br>
> &gt; current state:<br>
> &gt; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
> &gt; (setq<br>
> &gt; =A0org-log-done &#39;time<br>
> &gt; =A0org-export-latex-after-initial-vars-hook &#39;(org-beamer-after-ini=
> tial-vars)<br>
> &gt; =A0org-speed-command-hook &#39;(org-speed-command-default-hook org-bab=
> el-speed-command-hook)<br>
> &gt; =A0org-metaup-hook &#39;(org-babel-load-in-session-maybe)<br>
> &gt; =A0org-capture-templates &#39;((&quot;t&quot; &quot;Todo&quot; entry (=
> file+headline &quot;~/org/<a href=3D"http://gtd.org" target=3D"_blank">gtd.=
> org</a>&quot; &quot;Tasks&quot;)<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 &quot;* TODO %?\n=A0 %i\n=A0 %a&quot=
> ;)<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0(&quot;j&quot; &quot;Journal&quot; en=
> try (file+datetree &quot;~/org/<a href=3D"http://journal.org" target=3D"_bl=
> ank">journal.org</a>&quot;)<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 &quot;* %?\nEntered on %U\n=A0 %i\n=
> =A0 %a&quot;)<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0)<br>
> &gt; =A0org-after-todo-state-change-hook &#39;(org-clock-out-if-current)<br=
> >
> &gt; =A0org-export-latex-format-toc-function &#39;org-export-latex-format-t=
> oc-default<br>
> &gt; =A0org-tab-first-hook &#39;(org-hide-block-toggle-maybe org-src-native=
> -tab-command-maybe<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 org-babel-hide-result-toggle-maybe=
> )<br>
> &gt; =A0org-src-mode-hook &#39;(org-src-babel-configure-edit-buffer org-src=
> -mode-configure-edit-buffer)<br>
> &gt; =A0org-confirm-shell-link-function &#39;yes-or-no-p<br>
> &gt; =A0org-export-first-hook &#39;(org-beamer-initialize-open-trackers)<br=
> >
> &gt; =A0org-agenda-before-write-hook &#39;(org-agenda-add-entry-text)<br>
> &gt; =A0org-babel-pre-tangle-hook &#39;(save-buffer)<br>
> &gt; =A0org-cycle-hook &#39;(org-cycle-hide-archived-subtrees org-cycle-hid=
> e-drawers org-cycle-show-empty-lines<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0 org-optimize-window-after-visibility-change)<b=
> r>
> &gt; =A0org-export-preprocess-before-normalizing-links-hook &#39;(org-remov=
> e-file-link-modifiers)<br>
> &gt; =A0org-mode-hook &#39;(#[nil &quot;\300\301\302\303\304$\207&quot;<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0 [org-add-hook change-major-mode-hook org-sh=
> ow-block-all append local] 5]<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0#[nil &quot;\300\301\302\303\304$\207&quot;<br>
> &gt; =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>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0org-babel-result-hide-spec org-babel-hide-all-h=
> ashes)<br>
> &gt; =A0org-ctrl-c-ctrl-c-hook &#39;(org-babel-hash-at-point org-babel-exec=
> ute-safely-maybe)<br>
> &gt; =A0org-confirm-elisp-link-function &#39;yes-or-no-p<br>
> &gt; =A0org-export-interblocks &#39;((src org-babel-exp-non-block-elements)=
> )<br>
> &gt; =A0org-clock-out-hook &#39;(org-clock-remove-empty-clock-drawer)<br>
> &gt; =A0org-occur-hook &#39;(org-first-headline-recenter)<br>
> &gt; =A0org-export-preprocess-before-selecting-backend-code-hook &#39;(org-=
> beamer-select-beamer-code)<br>
> &gt; =A0org-export-latex-final-hook &#39;(org-beamer-amend-header org-beame=
> r-fix-toc<br>
> &gt; org-beamer-auto-fragile-frames<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0 org-beamer-place-defa=
> ult-actions-for-lists)<br>
> &gt; =A0org-metadown-hook &#39;(org-babel-pop-to-session-maybe)<br>
> &gt; =A0org-export-blocks &#39;((src org-babel-exp-src-block nil)<br>
> &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (export-comment org-export-blocks-for=
> mat-comment t)<br>
> &gt; =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>
> &gt; =A0)<br>
> &gt;<br>
> &gt;<br>
> </div></div>&gt; ----------------------------------------------------<br>
> &gt; Alternatives:<br>
> &gt;<br>
> &gt; ----------------------------------------------------<br>
> </blockquote></div><br>
> </div></div></div><br>
> </div></div></blockquote></div><br>
> 
> --0016e6dee7746941fa04c1ba62e3--
> 

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 15:35         ` Nick Dokos
@ 2012-06-05 15:46           ` Mike Fitzgerald
  2012-06-05 15:55             ` Nick Dokos
  2012-06-05 15:50           ` Nick Dokos
  1 sibling, 1 reply; 21+ messages in thread
From: Mike Fitzgerald @ 2012-06-05 15:46 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 21841 bytes --]

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.dokos@hp.com> wrote:

> Mike Fitzgerald <mikef656@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 <mikef656@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.dokos@hp.com>
> wrote:
> > >
> > >> Mike Fitzgerald <mikef656@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
> &quot;\\`CAPTURE-&quot;=
> >  (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 &quot;Capture template `%s&#39;:
> %s&quot;<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">&lt;<a href=3D"mailto:mikef656@gmail.com"
> target=3D=
> > "_blank">mikef656@gmail.com</a>&gt;</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>&quot;start
> ca=
> > pture, I get another window where<br>
> >
> > I&#39;m presented with an &quot;*Org Select*&quot; buffer that offers me
> th=
> > e available choices&quot; <br><br></div>However, this part does not work
> as=
> >  expected:<br>&quot;when I select one of those I select one of those, I
> get=
> >  a &quot;CAPTURE-foo.org&quot; buffer&quot;<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 &quot;Capture
> templ=
> > ate `j&#39;: org-called-interactively-p&quot;<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 &quot;C-c C-c&quot; to finish.=A0 I don&#39;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 &quot;Capture template `j&#39;:
> org-cal=
> > led-interactively-p&quot;<br>seems to have stopped abnormally.
> > <br><br>This is my org setup near the top of my
> .emacs<br><br>(add-to-list =
> > &#39;load-path
> &quot;~/.emacs.d/org/org-7.8.11/contrib/lisp/&quot;)<br>(add=
> > -to-list &#39;load-path &quot;~/.emacs.d/org/org-7.8.11/lisp/&quot;)<br>
> >
> >
> > (require &#39;org-install)<br>(add-to-list &#39;auto-mode-alist
> &#39;(&quot=
> > ;\\.org$&quot; . org-mode))<br>(define-key global-map &quot;\C-cl&quot;
> &#3=
> > 9;org-store-link)<br>(define-key global-map &quot;\C-ca&quot;
> &#39;org-agen=
> > da)<br>
> >
> >
> > (setq org-log-done t)<br><br>(setq
> org-capture-templates<div><br>=A0=A0=A0=
> > =A0=A0 &#39;((&quot;t&quot; &quot;Todo&quot; entry (file+headline
> &quot;~/o=
> > rg/<a href=3D"http://gtd.org" target=3D"_blank">gtd.org</a>&quot;
> &quot;Tas=
> > ks&quot;)<br>
> >
> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;* TODO %?\n=A0 %i\n=A0
> %a&quot;)=
> > <br>
> > =A0=A0=A0=A0=A0=A0=A0 (&quot;j&quot; &quot;Journal&quot; entry
> (file+datetr=
> > ee &quot;~/org/<a href=3D"http://journal.org" target=3D"_blank">
> journal.org=
> > </a>&quot;)<br></div>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &quot;*
> %?\nEnter=
> > ed on %U\n=A0 %i\n=A0 %a&quot;)))<br><br>
> >
> > ;org-capture binding <br>
> > ;(global-set-key &quot;\C-c-c&quot; &#39;org-capture)<br>(global-set-key
> [(=
> > control c) (c)] &#39;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">&lt;<a href=3D"mailto:nicholas.dokos@hp.com"
> target=
> > =3D"_blank">nicholas.dokos@hp.com</a>&gt;</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 &lt;<a href=3D"mailto:
> mikef6=
> > 56@gmail.com" target=3D"_blank">mikef656@gmail.com</a>&gt; wrote:<br>
> > <br>
> > &gt; To duplicate:<br>
> > &gt;<br>
> > <br>
> > I haven&#39;t tried specifically to duplicate your setup but
> org-capture<br=
> > >
> > seems to work fine here.<br>
> > <div><br>
> > &gt; 1) Run org-capture with C-c c<br>
> > &gt; 2) User is Promoted with the two templates expected=A0<br>
> > &gt; (copied the templates from the org-mode site)<br>
> > &gt;<br>
> > &gt; 3) Enter j for journal<br>
> > &gt; 4) Expect switch to new buffer<br>
> > &gt; 5) No switch occurs<br>
> > <br>
> > </div>So what happens instead? If I start capture, I get another window
> whe=
> > re<br>
> > I&#39;m presented with an &quot;*Org Select*&quot; buffer that offers me
> th=
> > e available<br>
> > choices and when I select one of those, I get a
> &quot;CAPTURE-foo.org&quot;=
> >  buffer<br>
> > for some value of &quot;foo&quot;. =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&#39;d probably use edebug to step through the
> org-capture<=
> > br>
> > function (and I&#39;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>
> > &gt; Note that <a href=3D"http://journal.org" target=3D"_blank">
> journal.org=
> > </a> is open, but I need to switch to it<br>
> > &gt;<br>
> > &gt; I expected EMACS to switch to a new buffer after choosing<br>
> > &gt; the template.<br>
> > &gt;<br>
> > &gt; Running GNU EMACS 23.3 on Win7<br>
> > &gt;<br>
> > &gt; Org mode update byte compiled by hand (without make) using<br>
> > &gt; =A0<br>
> > &gt; =A0=A0 (defun my/compile-org(&amp;optional directory)<br>
> > &gt; =A0=A0=A0=A0 &quot;Compile all *.el files that come with
> org-mode.&quo=
> > t;<br>
> > &gt; =A0 =A0=A0 (interactive)<br>
> > &gt; =A0=A0 ;Found on a org-mode related page.<br>
> > &gt;<br>
> > &gt; Thanks<br>
> > &gt;<br>
> > &gt; Mike<br>
> > &gt;<br>
> > &gt; Remember to cover the basics, that is, what you expected to happen
> and=
> > <br>
> > &gt; what in fact did happen.=A0 You don&#39;t know how to make a good
> repo=
> > rt?=A0 See<br>
> > &gt;<br>
> > &gt; =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>
> > &gt;<br>
> > &gt; Your bug report will be posted to the Org-mode mailing list.<br>
> > &gt;
> ----------------------------------------------------------------------=
> > --<br>
> > &gt;<br>
> > &gt; Emacs=A0 : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)<br>
> > &gt; =A0of 2011-03-10 on 3249CTO<br>
> > &gt; Package: Org-mode version 7.8.11<br>
> > &gt;<br>
> > &gt; current state:<br>
> > &gt; =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
> > &gt; (setq<br>
> > &gt; =A0org-log-done &#39;time<br>
> > &gt; =A0org-export-latex-after-initial-vars-hook
> &#39;(org-beamer-after-ini=
> > tial-vars)<br>
> > &gt; =A0org-speed-command-hook &#39;(org-speed-command-default-hook
> org-bab=
> > el-speed-command-hook)<br>
> > &gt; =A0org-metaup-hook &#39;(org-babel-load-in-session-maybe)<br>
> > &gt; =A0org-capture-templates &#39;((&quot;t&quot; &quot;Todo&quot;
> entry (=
> > file+headline &quot;~/org/<a href=3D"http://gtd.org"
> target=3D"_blank">gtd.=
> > org</a>&quot; &quot;Tasks&quot;)<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 &quot;* TODO %?\n=A0 %i\n=A0
> %a&quot=
> > ;)<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0(&quot;j&quot; &quot;Journal&quot;
> en=
> > try (file+datetree &quot;~/org/<a href=3D"http://journal.org"
> target=3D"_bl=
> > ank">journal.org</a>&quot;)<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0 &quot;* %?\nEntered on %U\n=A0
> %i\n=
> > =A0 %a&quot;)<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0)<br>
> > &gt; =A0org-after-todo-state-change-hook
> &#39;(org-clock-out-if-current)<br=
> > >
> > &gt; =A0org-export-latex-format-toc-function
> &#39;org-export-latex-format-t=
> > oc-default<br>
> > &gt; =A0org-tab-first-hook &#39;(org-hide-block-toggle-maybe
> org-src-native=
> > -tab-command-maybe<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0
> org-babel-hide-result-toggle-maybe=
> > )<br>
> > &gt; =A0org-src-mode-hook &#39;(org-src-babel-configure-edit-buffer
> org-src=
> > -mode-configure-edit-buffer)<br>
> > &gt; =A0org-confirm-shell-link-function &#39;yes-or-no-p<br>
> > &gt; =A0org-export-first-hook
> &#39;(org-beamer-initialize-open-trackers)<br=
> > >
> > &gt; =A0org-agenda-before-write-hook &#39;(org-agenda-add-entry-text)<br>
> > &gt; =A0org-babel-pre-tangle-hook &#39;(save-buffer)<br>
> > &gt; =A0org-cycle-hook &#39;(org-cycle-hide-archived-subtrees
> org-cycle-hid=
> > e-drawers org-cycle-show-empty-lines<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0
> org-optimize-window-after-visibility-change)<b=
> > r>
> > &gt; =A0org-export-preprocess-before-normalizing-links-hook
> &#39;(org-remov=
> > e-file-link-modifiers)<br>
> > &gt; =A0org-mode-hook &#39;(#[nil
> &quot;\300\301\302\303\304$\207&quot;<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0 [org-add-hook change-major-mode-hook
> org-sh=
> > ow-block-all append local] 5]<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0#[nil
> &quot;\300\301\302\303\304$\207&quot;<br>
> > &gt; =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>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0org-babel-result-hide-spec
> org-babel-hide-all-h=
> > ashes)<br>
> > &gt; =A0org-ctrl-c-ctrl-c-hook &#39;(org-babel-hash-at-point
> org-babel-exec=
> > ute-safely-maybe)<br>
> > &gt; =A0org-confirm-elisp-link-function &#39;yes-or-no-p<br>
> > &gt; =A0org-export-interblocks &#39;((src
> org-babel-exp-non-block-elements)=
> > )<br>
> > &gt; =A0org-clock-out-hook &#39;(org-clock-remove-empty-clock-drawer)<br>
> > &gt; =A0org-occur-hook &#39;(org-first-headline-recenter)<br>
> > &gt; =A0org-export-preprocess-before-selecting-backend-code-hook
> &#39;(org-=
> > beamer-select-beamer-code)<br>
> > &gt; =A0org-export-latex-final-hook &#39;(org-beamer-amend-header
> org-beame=
> > r-fix-toc<br>
> > &gt; org-beamer-auto-fragile-frames<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0=A0
> org-beamer-place-defa=
> > ult-actions-for-lists)<br>
> > &gt; =A0org-metadown-hook &#39;(org-babel-pop-to-session-maybe)<br>
> > &gt; =A0org-export-blocks &#39;((src org-babel-exp-src-block nil)<br>
> > &gt; =A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0 (export-comment
> org-export-blocks-for=
> > mat-comment t)<br>
> > &gt; =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>
> > &gt; =A0)<br>
> > &gt;<br>
> > &gt;<br>
> > </div></div>&gt; ----------------------------------------------------<br>
> > &gt; Alternatives:<br>
> > &gt;<br>
> > &gt; ----------------------------------------------------<br>
> > </blockquote></div><br>
> > </div></div></div><br>
> > </div></div></blockquote></div><br>
> >
> > --0016e6dee7746941fa04c1ba62e3--
> >
>

[-- Attachment #1.2: Type: text/html, Size: 31040 bytes --]

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 566 bytes --]

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\x12\0\302\303\304 \"\203\x12\0\305p!\210\306\307\310!!\210\300\311\307\312!\bA@#\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)

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 15:35         ` Nick Dokos
  2012-06-05 15:46           ` Mike Fitzgerald
@ 2012-06-05 15:50           ` Nick Dokos
  1 sibling, 0 replies; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 15:50 UTC (permalink / raw)
  Cc: Mike Fitzgerald, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 15:46           ` Mike Fitzgerald
@ 2012-06-05 15:55             ` Nick Dokos
  2012-06-05 16:06               ` Mike Fitzgerald
  0 siblings, 1 reply; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 15:55 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

Mike Fitzgerald <mikef656@gmail.com> wrote:

> Org-mode version 7.8.11
> 
> Downloaded a zip file, not a GIT user.

Where did you get the zip file?

> 
> Backtrace from a non-edebug run attached.
> 

Yup - not useful: the condition-case has stripped all useful information.
You will need to modify org-capture.el as described in my previous message
and try again.

Nick

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 15:55             ` Nick Dokos
@ 2012-06-05 16:06               ` Mike Fitzgerald
  2012-06-05 17:01                 ` Nick Dokos
  0 siblings, 1 reply; 21+ messages in thread
From: Mike Fitzgerald @ 2012-06-05 16:06 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]

As requested.

Thanks

Mike

On Tue, Jun 5, 2012 at 10:55 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Mike Fitzgerald <mikef656@gmail.com> wrote:
>
> > Org-mode version 7.8.11
> >
> > Downloaded a zip file, not a GIT user.
>
> Where did you get the zip file?
>
> >
> > Backtrace from a non-edebug run attached.
> >
>
> Yup - not useful: the condition-case has stripped all useful information.
> You will need to modify org-capture.el as described in my previous message
> and try again.
>
> Nick
>
>

[-- Attachment #1.2: Type: text/html, Size: 970 bytes --]

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 2798 bytes --]

Debugger entered--Lisp error: (invalid-function org-called-interactively-p)
  org-called-interactively-p(interactive)
  org-paste-subtree(4 #("* %?\nEntered on [2012-06-05 Tue 11:04]\n" 0 5 (fontified nil) 5 16 (fontified nil) 16 17 (fontified nil) 17 37 (fontified nil) 37 38 (fontified nil) 38 39 (fontified nil)) for-yank)
  (let* ((txt ...) (reversed ...) (target-entry-p ...) level beg end file) (cond (... ...) (... ... ...) (t ... ... ...)) (org-capture-empty-lines-before) (setq beg (point)) (org-capture-verify-tree txt) (org-paste-subtree level txt (quote for-yank)) (org-capture-empty-lines-after 1) (org-capture-position-for-last-stored beg) (outline-next-heading) (setq end (point)) (org-capture-mark-kill-region beg (1- end)) (org-capture-narrow beg (1- end)) (goto-char beg) (if (re-search-forward "%\\?" end t) (replace-match "")))
  org-capture-place-entry()
  (cond ((member* type ...) (org-capture-place-entry)) ((eql type ...) (org-capture-place-table-line)) ((eql type ...) (org-capture-place-plain-text)) ((eql type ...) (org-capture-place-item)) ((eql type ...) (org-capture-place-item)))
  (case type ((nil entry) (org-capture-place-entry)) (table-line (org-capture-place-table-line)) (plain (org-capture-place-plain-text)) (item (org-capture-place-item)) (checkitem (org-capture-place-item)))
  (let* ((template ...) (type ...)) (case type (... ...) (table-line ...) (plain ...) (item ...) (checkitem ...)))
  org-capture-place-template()
  (condition-case error (org-capture-place-template) ((error quit debug) (if ... ...) (set-window-configuration ...) (error "Capture template `%s': %s" ... ...)))
  (if (equal goto 0) (org-capture-insert-template-here) (condition-case error (org-capture-place-template) (... ... ... ...)) (if (and ... ...) (condition-case nil ... ...)) (if (org-capture-get :immediate-finish) (org-capture-finalize nil)))
  (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q") (error "Abort")) (t (org-capture-set-plist entry) (org-capture-get-template) (org-capture-put :original-buffer orig-buf :original-file ... :original-file-nondirectory ... :annotation annotation :initial initial) (org-capture-put :default-time ...) (org-capture-set-target-location) (condition-case error ... ...) (setq org-capture-clock-keep ...) (if ... ... ... ... ...)))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  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:37                   ` Achim Gratz
  0 siblings, 2 replies; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 17:01 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

Mike Fitzgerald <mikef656@gmail.com> wrote:

> Debugger entered--Lisp error: (invalid-function org-called-interactively-p)
>   org-called-interactively-p(interactive)
>   org-paste-subtree(4 #("* %?\nEntered on [2012-06-05 Tue 11:04]\n" 0 5 (fontified nil) 5 16 (fontified nil) 16 17 (fontified nil) 17 37 (fontified nil) 37 38 (fontified nil) 38 39 (fontified nil)) for-yank)
>   (let* ((txt ...) (reversed ...) (target-entry-p ...) level beg end file) (cond (... ...) (... ... ...) (t ... ... ...)) (org-capture-empty-lines-before) (setq beg (point)) (org-capture-verify-tree txt) (org-paste-subtree level txt (quote for-yank)) (org-capture-empty-lines-after 1) (org-capture-position-for-last-stored beg) (outline-next-heading) (setq end (point)) (org-capture-mark-kill-region beg (1- end)) (org-capture-narrow beg (1- end)) (goto-char beg) (if (re-search-forward "%\\?" end t) (replace-match "")))
>   org-capture-place-entry()
>   (cond ((member* type ...) (org-capture-place-entry)) ((eql type ...) (org-capture-place-table-line)) ((eql type ...) (org-capture-place-plain-text)) ((eql type ...) (org-capture-place-item)) ((eql type ...) (org-capture-place-item)))
>   (case type ((nil entry) (org-capture-place-entry)) (table-line (org-capture-place-table-line)) (plain (org-capture-place-plain-text)) (item (org-capture-place-item)) (checkitem (org-capture-place-item)))
>   (let* ((template ...) (type ...)) (case type (... ...) (table-line ...) (plain ...) (item ...) (checkitem ...)))
>   org-capture-place-template()
>   (condition-case error (org-capture-place-template) ((error quit debug) (if ... ...) (set-window-configuration ...) (error "Capture template `%s': %s" ... ...)))
>   (if (equal goto 0) (org-capture-insert-template-here) (condition-case error (org-capture-place-template) (... ... ... ...)) (if (and ... ...) (condition-case nil ... ...)) (if (org-capture-get :immediate-finish) (org-capture-finalize nil)))
>   (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q") (error "Abort")) (t (org-capture-set-plist entry) (org-capture-get-template) (org-capture-put :original-buffer orig-buf :original-file ... :original-file-nondirectory ... :annotation annotation :initial initial) (org-capture-put :default-time ...) (org-capture-set-target-location) (condition-case error ... ...) (setq org-capture-clock-keep ...) (if ... ... ... ... ...)))
>   (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
>   (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
>   org-capture(nil)
>   call-interactively(org-capture nil nil)

[I hope Achim Gratz takes a look at this: he would have a much better
handle on what exactly is going wrong here - in particular, emacs on
windows is a black box to me]

org-called-interactively-p is in org-macs.el - it's probably the case
that your autoloads are not up to date (or perhaps non-existent). Can
you tell us exactly what zip file you got and how you installed it?

In any case, try

(load-library "org-macs")

and then try the capture again: it probably will work this time (or
you'll get a different error). This is not meant either as a solution or
as a workaround: it is just meant to provide a data point about what is
wrong and what exactly you need to do to restore sanity, so there is
some ways to go yet.

Nick

PS For reference, here is what Mike posted earlier about his org
initialization:

,----
|     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)
`----

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 17:01                 ` Nick Dokos
@ 2012-06-05 17:22                   ` Mike Fitzgerald
  2012-06-05 17:45                     ` Nick Dokos
  2012-06-05 17:37                   ` Achim Gratz
  1 sibling, 1 reply; 21+ messages in thread
From: Mike Fitzgerald @ 2012-06-05 17:22 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 5344 bytes --]

*Setup*
-I performed my org-mode update by downloading org-7.8.11.zip
Then extracting using something like
   rt click, "extract here"

I also ran a defun that I found on wiki pages with the subject
"Compiling without make"

(defun my/compile-org(&optional directory)
  "Compile all *.el files that come with org-mode."
  (interactive)
....

*RUN Result*
Without restarting Emacs I run
m-: (load-library "org-macs")
followed by org-capture
Result:
-Behavior was exactly the same bug we have been discussing (did not change).

Here is the backtrace.

Thanks

Mike







On Tue, Jun 5, 2012 at 12:01 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Mike Fitzgerald <mikef656@gmail.com> wrote:
>
> > Debugger entered--Lisp error: (invalid-function
> org-called-interactively-p)
> >   org-called-interactively-p(interactive)
> >   org-paste-subtree(4 #("* %?\nEntered on [2012-06-05 Tue 11:04]\n" 0 5
> (fontified nil) 5 16 (fontified nil) 16 17 (fontified nil) 17 37 (fontified
> nil) 37 38 (fontified nil) 38 39 (fontified nil)) for-yank)
> >   (let* ((txt ...) (reversed ...) (target-entry-p ...) level beg end
> file) (cond (... ...) (... ... ...) (t ... ... ...))
> (org-capture-empty-lines-before) (setq beg (point))
> (org-capture-verify-tree txt) (org-paste-subtree level txt (quote
> for-yank)) (org-capture-empty-lines-after 1)
> (org-capture-position-for-last-stored beg) (outline-next-heading) (setq end
> (point)) (org-capture-mark-kill-region beg (1- end)) (org-capture-narrow
> beg (1- end)) (goto-char beg) (if (re-search-forward "%\\?" end t)
> (replace-match "")))
> >   org-capture-place-entry()
> >   (cond ((member* type ...) (org-capture-place-entry)) ((eql type ...)
> (org-capture-place-table-line)) ((eql type ...)
> (org-capture-place-plain-text)) ((eql type ...) (org-capture-place-item))
> ((eql type ...) (org-capture-place-item)))
> >   (case type ((nil entry) (org-capture-place-entry)) (table-line
> (org-capture-place-table-line)) (plain (org-capture-place-plain-text))
> (item (org-capture-place-item)) (checkitem (org-capture-place-item)))
> >   (let* ((template ...) (type ...)) (case type (... ...) (table-line
> ...) (plain ...) (item ...) (checkitem ...)))
> >   org-capture-place-template()
> >   (condition-case error (org-capture-place-template) ((error quit debug)
> (if ... ...) (set-window-configuration ...) (error "Capture template `%s':
> %s" ... ...)))
> >   (if (equal goto 0) (org-capture-insert-template-here) (condition-case
> error (org-capture-place-template) (... ... ... ...)) (if (and ... ...)
> (condition-case nil ... ...)) (if (org-capture-get :immediate-finish)
> (org-capture-finalize nil)))
> >   (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q")
> (error "Abort")) (t (org-capture-set-plist entry)
> (org-capture-get-template) (org-capture-put :original-buffer orig-buf
> :original-file ... :original-file-nondirectory ... :annotation annotation
> :initial initial) (org-capture-put :default-time ...)
> (org-capture-set-target-location) (condition-case error ... ...) (setq
> org-capture-clock-keep ...) (if ... ... ... ... ...)))
> >   (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...))
> (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when
> (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond
> (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
> >   (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...)
> (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
> >   org-capture(nil)
> >   call-interactively(org-capture nil nil)
>
> [I hope Achim Gratz takes a look at this: he would have a much better
> handle on what exactly is going wrong here - in particular, emacs on
> windows is a black box to me]
>
> org-called-interactively-p is in org-macs.el - it's probably the case
> that your autoloads are not up to date (or perhaps non-existent). Can
> you tell us exactly what zip file you got and how you installed it?
>
> In any case, try
>
> (load-library "org-macs")
>
> and then try the capture again: it probably will work this time (or
> you'll get a different error). This is not meant either as a solution or
> as a workaround: it is just meant to provide a data point about what is
> wrong and what exactly you need to do to restore sanity, so there is
> some ways to go yet.
>
> Nick
>
> PS For reference, here is what Mike posted earlier about his org
> initialization:
>
> ,----
> |     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)
> `----
>

[-- Attachment #1.2: Type: text/html, Size: 6386 bytes --]

[-- Attachment #2: backtrace.txt --]
[-- Type: text/plain, Size: 4996 bytes --]

Debugger entered--Lisp error: (invalid-function org-called-interactively-p)
  org-called-interactively-p(interactive)
  org-paste-subtree(4 #("* %?\nEntered on [2012-06-05 Tue 12:16]\n" 0 5 (fontified nil) 5 16 (fontified nil) 16 17 (fontified nil) 17 37 (fontified nil) 37 38 (fontified nil) 38 39 (fontified nil)) for-yank)
  (let* ((txt ...) (reversed ...) (target-entry-p ...) level beg end file) (cond (... ...) (... ... ...) (t ... ... ...)) (org-capture-empty-lines-before) (setq beg (point)) (org-capture-verify-tree txt) (org-paste-subtree level txt (quote for-yank)) (org-capture-empty-lines-after 1) (org-capture-position-for-last-stored beg) (outline-next-heading) (setq end (point)) (org-capture-mark-kill-region beg (1- end)) (org-capture-narrow beg (1- end)) (goto-char beg) (if (re-search-forward "%\\?" end t) (replace-match "")))
  org-capture-place-entry()
  (cond ((member* type ...) (org-capture-place-entry)) ((eql type ...) (org-capture-place-table-line)) ((eql type ...) (org-capture-place-plain-text)) ((eql type ...) (org-capture-place-item)) ((eql type ...) (org-capture-place-item)))
  (case type ((nil entry) (org-capture-place-entry)) (table-line (org-capture-place-table-line)) (plain (org-capture-place-plain-text)) (item (org-capture-place-item)) (checkitem (org-capture-place-item)))
  (let* ((template ...) (type ...)) (case type (... ...) (table-line ...) (plain ...) (item ...) (checkitem ...)))
  org-capture-place-template()
  (condition-case error (org-capture-place-template) ((error quit debug) (if ... ...) (set-window-configuration ...) (error "Capture template `%s': %s" ... ...)))
  (if (equal goto 0) (org-capture-insert-template-here) (condition-case error (org-capture-place-template) (... ... ... ...)) (if (and ... ...) (condition-case nil ... ...)) (if (org-capture-get :immediate-finish) (org-capture-finalize nil)))
  (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q") (error "Abort")) (t (org-capture-set-plist entry) (org-capture-get-template) (org-capture-put :original-buffer orig-buf :original-file ... :original-file-nondirectory ... :annotation annotation :initial initial) (org-capture-put :default-time ...) (org-capture-set-target-location) (condition-case error ... ...) (setq org-capture-clock-keep ...) (if ... ... ... ... ...)))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!\0\310\311\312\"\210\313\311!\211\x1aA@)\242\314=\203!\0\310\315\312\"\210\316\v!\210\317 \210\320	!\210\f\203d\0\321ed\"\rV\203W\0eb\210\322\r\245y\210`\x1e^[db\210\322\r\245\rZy\210\x0e^[`|\210)\323c\210eb\210\324\325\326 \"\210\327\306!\210\324\330!\210\331\312\x1e\x1c\x1e\x1d\324\330!\210\212\332 \210+\331\207" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(error (error "Cannot return from the debugger in an error"))
  signal(error ("Capture template `j': org-called-interactively-p"))
  error("Capture template `%s': %s" "j" org-called-interactively-p)
  (condition-case error (org-capture-place-template) ((error quit debug) (if ... ...) (set-window-configuration ...) (error "Capture template `%s': %s" ... ...)))
  (if (equal goto 0) (org-capture-insert-template-here) (condition-case error (org-capture-place-template) (... ... ... ...)) (if (and ... ...) (condition-case nil ... ...)) (if (org-capture-get :immediate-finish) (org-capture-finalize nil)))
  (cond ((equal entry "C") (customize-variable ...)) ((equal entry "q") (error "Abort")) (t (org-capture-set-plist entry) (org-capture-get-template) (org-capture-put :original-buffer orig-buf :original-file ... :original-file-nondirectory ... :annotation annotation :initial initial) (org-capture-put :default-time ...) (org-capture-set-target-location) (condition-case error ... ...) (setq org-capture-clock-keep ...) (if ... ... ... ... ...)))
  (let* ((orig-buf ...) (annotation ...) (initial ...) (entry ...)) (when (stringp initial) (remove-text-properties 0 ... ... initial)) (when (stringp annotation) (remove-text-properties 0 ... ... annotation)) (cond (... ...) (... ...) (t ... ... ... ... ... ... ... ...)))
  (cond ((equal goto ...) (org-capture-goto-target)) ((equal goto ...) (org-capture-goto-last-stored)) (t (let* ... ... ... ...)))
  org-capture(nil)
  call-interactively(org-capture nil nil)

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 17:01                 ` Nick Dokos
  2012-06-05 17:22                   ` Mike Fitzgerald
@ 2012-06-05 17:37                   ` Achim Gratz
  1 sibling, 0 replies; 21+ messages in thread
From: Achim Gratz @ 2012-06-05 17:37 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> [I hope Achim Gratz takes a look at this: he would have a much better
> handle on what exactly is going wrong here - in particular, emacs on
> windows is a black box to me]

Thanks for the flowers, but I don't think I've got any more clues than
you on the issue.

The OP said he's been byte-compiling org by hand.  He's on 23.3, which
(IIRC) means that the base org that comes with Emacs is a 6.36 or so
version.  AFAIR, org-called-interactively-p got implemented as a
compatibility macro some time after that release.  So my best guess is
that there's a mismatch between the autoloads that come with Emacs (no
org-called-interactively-p for instance) and his installation.  If so,
things should start to work if he simply loads _all_ files in the org
directory (org-reload isn't enough if a feature had never been loaded
before).

It would probably be easiest to just install a working make on his
machine and build org with that.  If that's a no-go, make sure
lisp/org-install.el does not exist already, enter the following into the
*Scratch* buffer (adjust the path to the org directory)

(let ((generated-autoload-file "/path/to/org-mode/lisp/org-install.el"))
  (update-directory-autoloads "/path/to/org-mode/lisp"))

and then execute that (C-j or C-x C-e with the cursor after the last
paren).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  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:18                       ` Achim Gratz
  0 siblings, 2 replies; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 17:45 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

Mike Fitzgerald <mikef656@gmail.com> wrote:

> Setup
> -I performed my org-mode update by downloading org-7.8.11.zip

from orgmode.org? or somewhere else?

> Then extracting using something like
>    rt click, "extract here"
> 
> I also ran a defun that I found on wiki pages with the subject
> "Compiling without make"
> 

On which wiki page? What is the complete code?

> (defun my/compile-org(&optional directory)
>   "Compile all *.el files that come with org-mode."
>   (interactive)
> ....

Clean up all the .elc files and don't do that: try to run without
compiling. I suspect (without any evidence to back up my suspicion) that
this is a half-assed step that messes up the install somehow.

> 
> RUN Result
> Without restarting Emacs I run
> m-: (load-library "org-macs")
> followed by org-capture
> Result:
> -Behavior was exactly the same bug we have been discussing (did not change).
> 
What does C-h f org-called-interactively-p RET say?

I'm worried about the fact that org-called-interactively-p is a macro and that
the compilation you are doing is not quite kosher and somehow interacts badly
with the macro-ness.

Nick

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  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
  1 sibling, 1 reply; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 18:04 UTC (permalink / raw)
  To: Mike Fitzgerald; +Cc: emacs-orgmode

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

> Mike Fitzgerald <mikef656@gmail.com> wrote:
> 
> > Setup
> > -I performed my org-mode update by downloading org-7.8.11.zip
> 
> from orgmode.org? or somewhere else?
> 

I've now downloaded the zip file from

   http://orgmode.org/org-7.8.11.zip,

unpacked it in ~/.emacs.d and started an emacs with a minimal init file:
     
     emacs -q -l ~/src/minimal.emacs/minimal.org.el

where minimal.org.el contains:

--8<---------------cut here---------------start------------->8---
;;; -*- mode: emacs-lisp -*-
(add-to-list 'load-path (expand-file-name "~/.emacs.d/org-7.8.11/lisp"))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/org-7.8.11/contrib/lisp"))

(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

(setq org-fontify-emphasized-text nil)
(require 'org-install)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)

(require 'org-capture)

(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")))
--8<---------------cut here---------------end--------------->8---

I did *not* byte-compile anything and capture works with no problems.

Nick

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 17:45                     ` Nick Dokos
  2012-06-05 18:04                       ` Nick Dokos
@ 2012-06-05 18:18                       ` Achim Gratz
  2012-06-05 18:40                         ` Nick Dokos
  1 sibling, 1 reply; 21+ messages in thread
From: Achim Gratz @ 2012-06-05 18:18 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> On which wiki page? What is the complete code?

Found it.  It's on Worg:

http://orgmode.org/worg/org-hacks.html

One of the more obvious problems is that it seems to compile the
autoloads file: that's a no-no.  The current master branch and hopefully
Org itself starting from the 7.9 release have UTILITIES/org-fixup.el,
which has (org-make-autoloads-compile) and other assorted functions that
can be used to do what make would otherwise be doing (make really calls
the lower level functions already).


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 18:18                       ` Achim Gratz
@ 2012-06-05 18:40                         ` Nick Dokos
  2012-06-05 20:22                           ` Achim Gratz
  0 siblings, 1 reply; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 18:40 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> wrote:

> Nick Dokos writes:
> > On which wiki page? What is the complete code?
> 
> Found it.  It's on Worg:
> 
> http://orgmode.org/worg/org-hacks.html
> 
> One of the more obvious problems is that it seems to compile the
> autoloads file: that's a no-no.  The current master branch and hopefully
> Org itself starting from the 7.9 release have UTILITIES/org-fixup.el,
> which has (org-make-autoloads-compile) and other assorted functions that
> can be used to do what make would otherwise be doing (make really calls
> the lower level functions already).
> 
> 

Thanks - I added a warning note to the hack. When the recipe is fixed,
we can delete the note again.

Nick

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 18:04                       ` Nick Dokos
@ 2012-06-05 18:54                         ` Achim Gratz
  0 siblings, 0 replies; 21+ messages in thread
From: Achim Gratz @ 2012-06-05 18:54 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> I did *not* byte-compile anything and capture works with no problems.

Yes.  Forget about the byte-compilation for a moment, it is really a red
herring... it works for you because you are running it with Emacs 24
(which does have an autoload for org-called-interactively-p already).
The thing that is missing for the OP is an autoloads file that matches
to the version of Org he's using.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 18:40                         ` Nick Dokos
@ 2012-06-05 20:22                           ` Achim Gratz
  2012-06-05 20:35                             ` Nick Dokos
  0 siblings, 1 reply; 21+ messages in thread
From: Achim Gratz @ 2012-06-05 20:22 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> Thanks - I added a warning note to the hack. When the recipe is fixed,
> we can delete the note again.

Fixed it up for good (hopefully).  Please check.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 20:22                           ` Achim Gratz
@ 2012-06-05 20:35                             ` Nick Dokos
  2012-06-05 20:42                               ` Achim Gratz
  0 siblings, 1 reply; 21+ messages in thread
From: Nick Dokos @ 2012-06-05 20:35 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> wrote:

> Nick Dokos writes:
> > Thanks - I added a warning note to the hack. When the recipe is fixed,
> > we can delete the note again.
> 
> Fixed it up for good (hopefully).  Please check.
> 

The "no org-version.el" case  looks wrong with the unbalanced paren:

,----
| emacs -batch -Q -L lisp -l ../UTILITIES/org-fixup \
| --eval 'org-make-org-version "7.8.11" "7.8.11-fake" "/path/to/odt/styles")'
`----

Nick

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 20:35                             ` Nick Dokos
@ 2012-06-05 20:42                               ` Achim Gratz
  0 siblings, 0 replies; 21+ messages in thread
From: Achim Gratz @ 2012-06-05 20:42 UTC (permalink / raw)
  To: emacs-orgmode

Nick Dokos writes:
> The "no org-version.el" case  looks wrong with the unbalanced paren:

Thanks.  Should be fixed now.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-05 14:22       ` Mike Fitzgerald
  2012-06-05 15:35         ` Nick Dokos
@ 2012-06-15 14:57         ` N. Jackson
  2012-06-19  1:42           ` N. Jackson
  1 sibling, 1 reply; 21+ messages in thread
From: N. Jackson @ 2012-06-15 14:57 UTC (permalink / raw)
  To: emacs-orgmode

> On Tue, Jun 5, 2012 at 9:07 AM, Mike Fitzgerald <mikef656 <at> gmail.com> 
wrote:
>
> 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 andC) Some message with 
value to the userB and C do not happen.  A happens but I need to manually switch 
to itI 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 usedremember a little and seem to recall it gives a message 
something
> 

I am seeing similar behaviour from Org Capture. That is:

- It doesn't open the buffer for the user to add text to the capture.

- A message "byte-code: Capture template `t': org-called-interactively-p" is 
displayed.

- The capture _does_ get written to the target file.

- However the capture written to the target file contains "%?" literally 
inserted into the entry.

> 
> (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")))

I'm using templates similar to these.

The main thing I can add, is that if I change "entry" to "plain", Capture works 
just fine. (Of course, in many cases one wants entries, so this is not a 
solution.)

I'm using GNU Emacs 23.3.1 ((i386-mingw-nt5.1.2600) of 2011-03-10) and Org 
Version 20120611 (7.8.11) which I downloaded/installed with the Emacs package 
manager system.

I apologise if there is already a solution to this issue (I didn't see it), and 
I hope this additional information is helpful.

Regards,
N.

> 
> ;org-capture binding 
> ;(global-set-key "\C-c-c" 'org-capture)(global-set-key [(control c) (c)] 'org-
capture)Does this look OK?
> ThanksMike 
> On Mon, Jun 4, 2012 at 10:56 PM, Nick Dokos <nicholas.dokos <at> hp.com> 
wrote:Mike Fitzgerald <mikef656 <at> 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:
> >
> > ----------------------------------------------------
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: org-capture Does not take user to any new buffer
  2012-06-15 14:57         ` N. Jackson
@ 2012-06-19  1:42           ` N. Jackson
  0 siblings, 0 replies; 21+ messages in thread
From: N. Jackson @ 2012-06-19  1:42 UTC (permalink / raw)
  To: emacs-orgmode

Update: This is now resolved (for me).

The capture failures I was seeing (when the type was "entry" rather 
than "plain") was either a problem with my installation of 
Version 7.8.11 org-20120611 or a bug in that version. 

Reverting to the built-in version of Org Mode (Version 6.33x) (by turning off 
the Emacs package manager) fixed the problem, and so did updating to 
Version 7.8.11 org-20120618 (from ELPA using the package manager). 

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-06-19  1:55 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-06-15 14:57         ` N. Jackson
2012-06-19  1:42           ` N. Jackson

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).