From: Borbus <borbus@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Non-interactive insertion of future-dates
Date: Wed, 25 Jan 2012 17:37:07 +0000 [thread overview]
Message-ID: <4F203DC3.3020301@gmail.com> (raw)
In-Reply-To: <87sjj3d98v.fsf@rman-office.uni.lux>
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.
next prev parent reply other threads:[~2012-01-25 17:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-25 16:42 Non-interactive insertion of future-dates Simon Campese
2012-01-25 17:37 ` Borbus [this message]
2012-01-28 17:42 ` Simon Campese
2012-01-25 17:56 ` Jonathan Leech-Pepin
2012-01-28 22:38 ` Simon Campese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F203DC3.3020301@gmail.com \
--to=borbus@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.