From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: Multi-line Diary Entry Date: Thu, 8 Nov 2007 15:24:36 +0000 (UTC) Message-ID: References: <47322065.3000101@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq9Ff-0000f9-2L for emacs-orgmode@gnu.org; Thu, 08 Nov 2007 10:25:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq9Fd-0000eI-C2 for emacs-orgmode@gnu.org; Thu, 08 Nov 2007 10:25:02 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq9Fd-0000eC-8Z for emacs-orgmode@gnu.org; Thu, 08 Nov 2007 10:25:01 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iq9Fc-0002IY-9V for emacs-orgmode@gnu.org; Thu, 08 Nov 2007 10:25:00 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Iq9FP-0007h1-CT for emacs-orgmode@gnu.org; Thu, 08 Nov 2007 15:24:47 +0000 Received: from www-gw3.credit-suisse.com ([198.240.212.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2007 15:24:47 +0000 Received: from christian.egli by www-gw3.credit-suisse.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Nov 2007 15:24:47 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Wanrong Lin 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