emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Egli <christian.egli@novell.com>
To: emacs-orgmode@gnu.org
Subject: Re: Multi-line Diary Entry
Date: Thu, 8 Nov 2007 15:24:36 +0000 (UTC)	[thread overview]
Message-ID: <loom.20071108T151622-681@post.gmane.org> (raw)
In-Reply-To: 47322065.3000101@gmail.com

Hi

Wanrong Lin <wanrong.lin <at> gmail.com> writes:

> It seems there is a bug in dealing with multi-line diary entries in 
> org-agenda. For example, I have a diary entry like this:
> 
> %%(diary-cyclic 1 11 7 2007) 5:25pm End of Day:
>                                       - Review tomorrow's task.
>                                       - Check tomorrow's schedule in Outlook
>                                       - Check weather forecast
> 
> When diary entry is included in org agenda, the sub-lines are separated 
> from the main line, something like this:
> 
> Thursday   8 November 2007
>   Diary:      17:25...... End of Day:
>   WorkEnv:    Scheduled:  TODO Fill in timesheet
>   Diary:      - Review tomorrow's task.
>   Diary:      - Check tomorrow's schedule in Outlook
>   Diary:      - Check weather forecast

The function org-get-entries-from-diary just does a (org-split-string entries
"\n") on the contents it gets from the fancy calendar display. So of course
you'll get them as separate entries and then sorted (probably according to
category). 

I presume you'd like the lines to stay together?

As a workaround you could just put three separate tasks in your diary i.e. 

%%(diary-cyclic 1 11 7 2007) 5:25pm Review tomorrow's task)
%%(diary-cyclic 1 11 7 2007) 5:25pm Check tomorrow's schedule in Outlook)
%%(diary-cyclic 1 11 7 2007) 5:25pm Check weather forecast)

HTH
Christian

      parent reply	other threads:[~2007-11-08 15:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07 20:30 Multi-line Diary Entry Wanrong Lin
2007-11-07 23:26 ` Bastien
2007-11-08 15:24 ` Christian Egli [this message]

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=loom.20071108T151622-681@post.gmane.org \
    --to=christian.egli@novell.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 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).