emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Non-interactive insertion of future-dates


From: Borbus
Subject: Re: [O] Non-interactive insertion of future-dates
Date: Wed, 25 Jan 2012 17:37:07 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 Lightning/1.0b2 Thunderbird/3.1.16

On 25/01/12 16:42, Simon Campese wrote:
> I want to setup a capture-template that sets a
> SCHEDULE-property in the future (say one week from today) without any
> user interaction.
> 
> Currently, I almost achieve this by inserting the line
> 
> :SCHEDULED: <%(org-read-date nil nil nil nil nil "+1w")>
> 
> into my template. When I now call the template, I end up in the
> date-time-prompt, with "+1w" prefilled, so that manually have to press
> enter. 

I think what you want is to use the parameter from-string which doesn't
ask for a user input at all but just uses that string as if you did
input it interactively:

(org-read-date nil nil "+1w")

-- 
Borbus.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]