emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: N. Jackson <nl590781@dal.ca>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: org-capture Does not take user to any new buffer
Date: Fri, 15 Jun 2012 14:57:39 +0000 (UTC)	[thread overview]
Message-ID: <loom.20120615T163330-888@post.gmane.org> (raw)
In-Reply-To: CACy+NBKhQ3EOHZ7PayTR4FGn=JasunVTUYj=QoYE4G+0YKw_RA@mail.gmail.com

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

  parent reply	other threads:[~2012-06-15 14:58 UTC|newest]

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

Reply instructions:

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

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

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

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

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

  git send-email \
    --in-reply-to=loom.20120615T163330-888@post.gmane.org \
    --to=nl590781@dal.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

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

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

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

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