emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Title for capture template
@ 2010-09-30 10:58 Sébastien Vauban
  2010-09-30 11:15 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Sébastien Vauban @ 2010-09-30 10:58 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

I capture a lot of stuff with that template:

--8<---------------cut here---------------start------------->8---
("No" "Org" entry
 (file+headline "~/Public/Notes-on-Org.txt" "Notes")
 "* %^{Title}
   :PROPERTIES:
   :Created: %U
   :END:

%i

From %a"
:empty-lines 1)
--8<---------------cut here---------------end--------------->8---

What I don't understand is that, sometimes, I can reuse (with the up arrow, in
the echo area) the title of the previous capture, sometimes not. Even when I
capture two articles *with the same template* at a couple of minutes
interval...

Unluckily, I still have no clue on how to reproduce this.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Title for capture template
  2010-09-30 10:58 Title for capture template Sébastien Vauban
@ 2010-09-30 11:15 ` Carsten Dominik
  2010-09-30 11:47   ` Sébastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2010-09-30 11:15 UTC (permalink / raw)
  To: Sébastien Vauban; +Cc: emacs-orgmode


On Sep 30, 2010, at 12:58 PM, Sébastien Vauban wrote:

> Hello,
>
> I capture a lot of stuff with that template:
>
> --8<---------------cut here---------------start------------->8---
> ("No" "Org" entry
> (file+headline "~/Public/Notes-on-Org.txt" "Notes")
> "* %^{Title}
>   :PROPERTIES:
>   :Created: %U
>   :END:
>
> %i
>
> From %a"
> :empty-lines 1)
> --8<---------------cut here---------------end--------------->8---
>
> What I don't understand is that, sometimes, I can reuse (with the up  
> arrow, in
> the echo area) the title of the previous capture, sometimes not.  
> Even when I
> capture two articles *with the same template* at a couple of minutes
> interval...


>
> Unluckily, I still have no clue on how to reproduce this.

I believe you can reuse after the second time you are
using the template in an Emacs session, but not after the first.
Seems like the history variable I am using needs to be
initialized first - I just pushed the fix for this.

Note that the history is prompt specific.  So all templates that
use a "%^{Title}" prompt will access the same
history.

HTH

- Carsten

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

* Re: Title for capture template
  2010-09-30 11:15 ` Carsten Dominik
@ 2010-09-30 11:47   ` Sébastien Vauban
  0 siblings, 0 replies; 3+ messages in thread
From: Sébastien Vauban @ 2010-09-30 11:47 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Carsten,

Carsten Dominik wrote:
> On Sep 30, 2010, at 12:58 PM, Sébastien Vauban wrote:
>> What I don't understand is that, sometimes, I can reuse (with the up arrow,
>> in the echo area) the title of the previous capture, sometimes not. Even
>> when I capture two articles *with the same template* at a couple of minutes
>> interval...
>>
>> Unluckily, I still have no clue on how to reproduce this.
>
> I believe you can reuse after the second time you are using the template in
> an Emacs session, but not after the first. Seems like the history variable I
> am using needs to be initialized first.

That's a possible explanation. I'll update and report any future problem.


> Note that the history is prompt specific.  So all templates that
> use a "%^{Title}" prompt will access the same
> history.

OK. Thanks.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-09-30 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 10:58 Title for capture template Sébastien Vauban
2010-09-30 11:15 ` Carsten Dominik
2010-09-30 11:47   ` Sébastien Vauban

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