From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Re: PocketMod for org-mode
Date: Wed, 17 Oct 2007 16:00:16 +0100 [thread overview]
Message-ID: <87wstlu6pr.fsf@bzg.ath.cx> (raw)
In-Reply-To: <q4odex6f0i.fsf@home.net> (Richard G. Riley's message of "Wed, 17 Oct 2007 15:34:53 +0200")
Richard G Riley <rileyrgdev@googlemail.com> writes:
>> &%%(org-diary :scheduled :timestamp :deadline)
>>
>> in my ~/.diary file.
>
> FYI : Putting that in my .diary file caused me to get an empty agenda.
>
> Can you explain to me how that line works? And Is the & supposed to be
> there?
I guess this should somehow appear in (info "(org)Weekly/Daily agenda")
See the docstring of `org-diary':
(org-diary &rest args)
Return diary information from org-files.
This function can be used in a "sexp" diary entry in the Emacs calendar.
It accesses org files and extracts information from those files to be
listed in the diary. The function accepts arguments specifying what
items should be listed. The following arguments are allowed:
:timestamp List the headlines of items containing a date stamp or
date range matching the selected date. Deadlines will
also be listed, on the expiration day.
:sexp List entries resulting from diary-like sexps.
:deadline List any deadlines past due, or due within
`org-deadline-warning-days'. The listing occurs only
in the diary for *today*, not at any other date. If
an entry is marked DONE, it is no longer listed.
:scheduled List all items which are scheduled for the given date.
The diary for *today* also contains items which were
scheduled earlier and are not yet marked DONE.
:todo List all TODO items from the org-file. This may be a
long list - so this is not turned on by default.
Like deadlines, these entries only show up in the
diary for *today*, not at any other date.
The call in the diary file should look like this:
&%%(org-diary) ~/path/to/some/orgfile.org
Use a separate line for each org file to check. Or, if you omit the file name,
all files listed in `org-agenda-files' will be checked automatically:
&%%(org-diary)
If you don't give any arguments (as in the example above), the default
arguments (:deadline :scheduled :timestamp :sexp) are used.
So the example above may also be written as
&%%(org-diary :deadline :timestamp :sexp :scheduled)
The function expects the lisp variables `entry' and `date' to be provided
by the caller, because this is how the calendar works. Don't use this
function from a program - use `org-agenda-get-day-entries' instead.
--
Bastien
next prev parent reply other threads:[~2007-10-17 14:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 23:19 PocketMod for org-mode Christian Egli
2007-10-17 1:08 ` Bastien
2007-10-17 11:58 ` Christian Egli
2007-10-17 13:08 ` Bastien
2007-10-17 12:51 ` Christian Egli
2007-10-17 14:00 ` Bastien
[not found] ` <q4odex6f0i.fsf@home.net>
2007-10-17 15:00 ` Bastien [this message]
2007-10-17 20:59 ` Christian Egli
2007-10-18 1:47 ` Bastien
2007-10-18 1:37 ` Leo
2007-10-18 10:05 ` Bastien
2007-10-18 9:51 ` Christian Egli
2007-10-18 12:21 ` Bastien
2007-10-25 5:48 ` Carsten Dominik
2007-10-25 12:46 ` Christian Egli
2007-10-25 20:29 ` Christian Egli
2007-10-26 1:56 ` Bastien
2007-10-17 2:03 ` Dan Griswold
2007-10-17 9:42 ` Leo
2007-10-17 10:56 ` Dan Griswold
2007-10-17 11:47 ` Bastien
2007-10-17 12:14 ` pete phillips
2007-10-17 13:36 ` Bastien
2007-10-17 12:02 ` Christian Egli
2007-10-17 20:15 ` Dan Griswold
2007-10-17 10:09 ` Ian Barton
2007-10-17 10:25 ` Leo
2007-10-17 10:45 ` Ian Barton
2007-10-17 10:36 ` [OT] pdfjam [Was: PocketMod for org-mode] Stefan Kamphausen
2007-10-17 11:46 ` PocketMod for org-mode Bastien
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wstlu6pr.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--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 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).