From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Bug: org-capture Does not take user to any new buffer Date: Mon, 04 Jun 2012 23:56:23 -0400 Message-ID: <1414.1338868583@alphaville> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:48553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbksh-0005KF-64 for emacs-orgmode@gnu.org; Mon, 04 Jun 2012 23:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbkse-0008U2-5M for emacs-orgmode@gnu.org; Mon, 04 Jun 2012 23:56:30 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:2237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbksd-0008TB-UU for emacs-orgmode@gnu.org; Mon, 04 Jun 2012 23:56:28 -0400 In-Reply-To: Message from Mike Fitzgerald of "Mon\, 04 Jun 2012 12\:10\:46 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mike Fitzgerald Cc: emacs-orgmode@gnu.org Mike Fitzgerald wrote: > To duplicate: >=20 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=C2=A0 > (copied the templates from the org-mode site) >=20 > 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 >=20 > I expected EMACS to switch to a new buffer after choosing > the template. >=20 > Running GNU EMACS 23.3 on Win7 >=20 > Org mode update byte compiled by hand (without make) using > =C2=A0 > =C2=A0=C2=A0 (defun my/compile-org(&optional directory) > =C2=A0=C2=A0=C2=A0=C2=A0 "Compile all *.el files that come with org-mode." > =C2=A0 =C2=A0=C2=A0 (interactive) > =C2=A0=C2=A0 ;Found on a org-mode related page. >=20 > Thanks >=20 > Mike >=20 > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen.=C2=A0 You don't know how to make a good report?= =C2=A0 See >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 http://orgmode.org/manual/Feedback.html#Feedback >=20 > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ >=20 > Emacs=C2=A0 : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600) > =C2=A0of 2011-03-10 on 3249CTO > Package: Org-mode version 7.8.11 >=20 > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =C2=A0org-log-done 'time > =C2=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-initial= -vars) > =C2=A0org-speed-command-hook '(org-speed-command-default-hook org-babel-s= peed-command-hook) > =C2=A0org-metaup-hook '(org-babel-load-in-session-maybe) > =C2=A0org-capture-templates '(("t" "Todo" entry (file+headline "~/org/gtd= .org" "Tasks") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 "* TODO %= ?\n=C2=A0 %i\n=C2=A0 %a") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0("j" "Jour= nal" entry (file+datetree "~/org/journal.org") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 "* %?\nEn= tered on %U\n=C2=A0 %i\n=C2=A0 %a") > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0) > =C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current) > =C2=A0org-export-latex-format-toc-function 'org-export-latex-format-toc-d= efault > =C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab= -command-maybe > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= babel-hide-result-toggle-maybe) > =C2=A0org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mod= e-configure-edit-buffer) > =C2=A0org-confirm-shell-link-function 'yes-or-no-p > =C2=A0org-export-first-hook '(org-beamer-initialize-open-trackers) > =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) > =C2=A0org-babel-pre-tangle-hook '(save-buffer) > =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-dr= awers org-cycle-show-empty-lines > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-optimize-window-after-vi= sibility-change) > =C2=A0org-export-preprocess-before-normalizing-links-hook '(org-remove-fi= le-link-modifiers) > =C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 [org-add-hook change-m= ajor-mode-hook org-show-block-all append local] 5] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0#[nil "\300\301\302\303\304$\= 207" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 [org-add-hook change-m= ajor-mode-hook org-babel-show-result-all append local] 5] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0org-babel-result-hide-spec or= g-babel-hide-all-hashes) > =C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-= safely-maybe) > =C2=A0org-confirm-elisp-link-function 'yes-or-no-p > =C2=A0org-export-interblocks '((src org-babel-exp-non-block-elements)) > =C2=A0org-clock-out-hook '(org-clock-remove-empty-clock-drawer) > =C2=A0org-occur-hook '(org-first-headline-recenter) > =C2=A0org-export-preprocess-before-selecting-backend-code-hook '(org-beam= er-select-beamer-code) > =C2=A0org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fi= x-toc > org-beamer-auto-fragile-frames > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-beamer-place-default-actions-for-lists) > =C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe) > =C2=A0org-export-blocks '((src org-babel-exp-src-block nil) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (export-co= mment org-export-blocks-format-comment t) > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 (ditaa org= -export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) > =C2=A0) >=20 >=20 > ---------------------------------------------------- > Alternatives: >=20 > ----------------------------------------------------