emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Problems with org-capture
@ 2014-05-06  9:57 Josef Wolf
  2014-05-09  7:25 ` Josef Wolf
  2014-05-23 12:39 ` Bastien
  0 siblings, 2 replies; 4+ messages in thread
From: Josef Wolf @ 2014-05-06  9:57 UTC (permalink / raw)
  To: emacs-orgmode

Hello everybody,

I am new to org-mode, and am currently working through
http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and am stuck
a little bit the the caprure mode.

My first question is: org-capture seems to come with a pre-confuigured
template for a "Todo" stanza. I thought, I'd take a closer look at this
example to learn from it and as a starting point for my own
customizations. But DESCRIBE-VARIABLE shows that ORG-CAPTURE-TEMPLATES is set
to NIL. So, where does this pre-configured "Todo" entry come from?

The I created my own template like this:

 (setq org-capture-templates
  '(("t" "Todo" entry (file+headline "/m/s/rep/git/todo/newgtd.org" "Tasks")
     "* TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n"
     :kill-buffer :empty-lines 3)))

With this template, I have two problems:

- The most annoying problem is that it eats up the newlines behind the newly
  created entry. I always keep multiple empty lines between top-level
  headings. But even then, a newly created entry eats up all the newlines and
  even melts the succeeding heading onto the end of the newly created entry.
  I guess, this is not how it is meant to work. How would I define 

- The second problem is that when invoked with content fron an active region
  (the %i flag), then the %A flag won't ask me for a link description and the
  %i contents are used as description.

Any ideas what might be wrong here?

-- 
Josef Wolf
jw@raven.inka.de

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

* Re: Problems with org-capture
  2014-05-06  9:57 Problems with org-capture Josef Wolf
@ 2014-05-09  7:25 ` Josef Wolf
  2014-05-21  3:07   ` Bastien
  2014-05-23 12:39 ` Bastien
  1 sibling, 1 reply; 4+ messages in thread
From: Josef Wolf @ 2014-05-09  7:25 UTC (permalink / raw)
  To: emacs-orgmode

On Di, Mai 06, 2014 at 11:57:34 +0200, Josef Wolf wrote:
> I am new to org-mode, and am currently working through
> http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html and am stuck
> a little bit the the caprure mode.
> 
> My first question is: org-capture seems to come with a pre-confuigured
> template for a "Todo" stanza. I thought, I'd take a closer look at this
> example to learn from it and as a starting point for my own
> customizations. But DESCRIBE-VARIABLE shows that ORG-CAPTURE-TEMPLATES is set
> to NIL. So, where does this pre-configured "Todo" entry come from?
> 
> The I created my own template like this:
> 
>  (setq org-capture-templates
>   '(("t" "Todo" entry (file+headline "/m/s/rep/git/todo/newgtd.org" "Tasks")
>      "* TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n"
>      :kill-buffer :empty-lines 3)))
> 
> With this template, I have two problems:
> 
> - The most annoying problem is that it eats up the newlines behind the newly
>   created entry. I always keep multiple empty lines between top-level
>   headings. But even then, a newly created entry eats up all the newlines and
>   even melts the succeeding heading onto the end of the newly created entry.
>   I guess, this is not how it is meant to work. How would I define 
> 
> - The second problem is that when invoked with content fron an active region
>   (the %i flag), then the %A flag won't ask me for a link description and the
>   %i contents are used as description.

Any ideas on that problem?

-- 
Josef Wolf
jw@raven.inka.de

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

* Re: Problems with org-capture
  2014-05-09  7:25 ` Josef Wolf
@ 2014-05-21  3:07   ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2014-05-21  3:07 UTC (permalink / raw)
  To: Josef Wolf; +Cc: emacs-orgmode

Hi Josef,

Josef Wolf <jw@raven.inka.de> writes:

> Any ideas on that problem?

I'll take a look later on -- in the meantime, can you tell what
version of Emacs and Org you are using?

M-x emacs-version RET
M-x org-version RET

Thanks,

-- 
 Bastien

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

* Re: Problems with org-capture
  2014-05-06  9:57 Problems with org-capture Josef Wolf
  2014-05-09  7:25 ` Josef Wolf
@ 2014-05-23 12:39 ` Bastien
  1 sibling, 0 replies; 4+ messages in thread
From: Bastien @ 2014-05-23 12:39 UTC (permalink / raw)
  To: Josef Wolf; +Cc: emacs-orgmode

Hi Josef,

Josef Wolf <jw@raven.inka.de> writes:

>  (setq org-capture-templates
>   '(("t" "Todo" entry (file+headline "/m/s/rep/git/todo/newgtd.org" "Tasks")
>      "* TODO %^{Brief Description} %^g%?\n   Created: %U\n   %i\n   %A\n\n"
>      :kill-buffer :empty-lines 3)))

You forgot to specify a value for the :kill-buffer parameter:

  :kill-buffer t :empty-lines 3

will work and add the empty lines.

You may also use :empty-lines-after 3 which should fit your need.

> - The second problem is that when invoked with content fron an active region
>   (the %i flag), then the %A flag won't ask me for a link description and the
>   %i contents are used as description.

I don't see this bug.  Can you test again (maybe with an updated
version of Org -- don't forget to mention the Org version by eval'ing
M-x org-version RET)?

Thanks,

-- 
 Bastien

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

end of thread, other threads:[~2014-05-23 13:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06  9:57 Problems with org-capture Josef Wolf
2014-05-09  7:25 ` Josef Wolf
2014-05-21  3:07   ` Bastien
2014-05-23 12:39 ` Bastien

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