From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Capture question Date: Sun, 6 Mar 2011 10:16:26 -0600 Message-ID: References: <87fwr0e695.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0003255579b67f060f049dd2b364 Return-path: Received: from [140.186.70.92] (port=49082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwGdC-0008Br-L7 for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 11:16:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwGdB-0005od-B5 for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 11:16:30 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:64044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwGdB-0005oG-32 for emacs-orgmode@gnu.org; Sun, 06 Mar 2011 11:16:29 -0500 Received: by bwz17 with SMTP id 17so3750749bwz.0 for ; Sun, 06 Mar 2011 08:16:27 -0800 (PST) In-Reply-To: <87fwr0e695.fsf@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode --0003255579b67f060f049dd2b364 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Mar 6, 2011 at 7:19 AM, Bastien wrote: > Hi John, > > sorry for the late reply. > > No problem. > I had difficulties parsing your email because it brings many issues > (better to have one email per issue) and it's not clear how the odd > behavior you observe depends on the (odd) structure/templates you are > using. > I can't be that odd :) > > Can you restate your problems in a way that help me grasp them? > > Sure. 1) I think this is solved. I was trying to file under a pre-existing headling (* top-level) but my template was like so: ,----- | (setq org-capture-templates | '(("t" "todo" entry (file+headline "~/org/2011-02Feb.org" "Tracking") | "* TODO %?\n"))) `----- I experimented with two stars on the TODO and it worked. Sorry, I probably should have posted back that it was solved, but after no replies I kind of thought this email was dead so I let it die :) 2) The manual says this as to one of the options for the capture target: ,----- | (function function-finding-location) | Most general way, write your own function to find both file and location `----- Since my files always use the format YYYY-##MMM.org (2011-03Mar.org), I thought I could sure find a function that finds the current file rather than changing my capture target manually once a month. 3) I think this one was pretty clear... the manual says that if I do this: ,----- | (define-key global-map "\C-c c" | (lambda () (interactive) (org-capture "t"))) `----- I won't have to manually select "t" (TODO) for my capture template via the interactive window. Since I only use one capture template, it would be fantastic to have it automatically use it instead of asking me what I want to use and then I press another keystroke to select one template out of one available template. I know it's hard, but everything that makes things easier for me makes > them easier for everyone - as I'll then have more time to actually fix > things. > > No problem -- I'll break things up better next time. I realize longer, jumbled emails will probably not be as enticing to dive into since everyone is volunteering from other things anyway! Thanks for the assistance, John > Thanks in advance! > > -- > Bastien > --0003255579b67f060f049dd2b364 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Mar 6, 2011 at 7:19 AM, Bastien <bzg@altern.org><= /span> wrote:
Hi John,

sorry for the late reply.


No problem.
=A0
I had difficulties parsing your email because it brings many issues
(better to have one email per issue) and it's not clear how the odd
behavior you observe depends on the (odd) structure/templates you are
using.

I can't be that odd :)
=
=A0

Can you restate your problems in a way that help me grasp them?


Sure.

1) I th= ink this is solved. I was trying to file under a pre-existing headling (* t= op-level) but my template was like so:
,-----
| (setq org-capture-templates
| =A0'(("t" "tod= o" entry (file+headline "~/org/2011-02Feb.org" "Trackin= g")
| =A0 =A0 =A0 =A0 =A0 =A0 "* TODO %?\n")))
`-----

I experimented with two stars on the TODO and it worked= . Sorry, I probably should have posted back that it was solved, but after n= o replies I kind of thought this email was dead so I let it die :)


2) The manual says this as to one of the= options for the capture target:
,-----
| (function fun= ction-finding-location)
| =A0 Most general way, write your own fu= nction to find both file and location
`-----

Since my files always use the format Y= YYY-##MMM.org (2011-03Mar.org), I thought I could sure find a function that= finds the current file rather than changing my capture target manually onc= e a month.


3) I think this one was pretty clear... = the manual says that if I do this:
,-----
|=A0(defin= e-key global-map "\C-c c"
| =A0 (lambda () (interactive) (org-capture "t")))
`-----

I won't have to manually select = "t" (TODO) for my capture template via the interactive window. Si= nce I only use one capture template, it would be fantastic to have it autom= atically use it instead of asking me what I want to use and then I press an= other keystroke to select one template out of one available template.

I know it's hard, but everything that makes things easier for me makes<= br> them easier for everyone - as I'll then have more time to actually fix<= br> things.


No problem -- I'll break things up= better next time. I realize longer, jumbled emails will probably not be as= enticing to dive into since everyone is volunteering from other things any= way!


Thanks for the assistance,
Joh= n

=A0
Thanks in advance!

--
=A0Bastien

--0003255579b67f060f049dd2b364--