From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Fix for org-agenda-cleanup-fancy-diary Date: Thu, 2 Apr 2009 18:23:08 +0200 Message-ID: References: <49d27cda.1f538c0a.3e43.0351@mx.google.com> <1ACBF12E-6592-4A9C-A487-330DDA9FFB6F@gmail.com> <49d3a3ad.0e538c0a.623d.ffff9e16@mx.google.com> <94189A4C-6EFF-4D4B-A67D-0937092E809E@gmail.com> <49d4da47.18038e0a.3a2a.ffffe74a@mx.google.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LpPhI-0002yg-B7 for emacs-orgmode@gnu.org; Thu, 02 Apr 2009 12:23:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LpPhD-0002wz-1W for emacs-orgmode@gnu.org; Thu, 02 Apr 2009 12:23:20 -0400 Received: from [199.232.76.173] (port=47943 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LpPhC-0002wu-TM for emacs-orgmode@gnu.org; Thu, 02 Apr 2009 12:23:14 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:50026) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LpPhC-0001mH-1H for emacs-orgmode@gnu.org; Thu, 02 Apr 2009 12:23:14 -0400 Received: by ewy4 with SMTP id 4so657880ewy.42 for ; Thu, 02 Apr 2009 09:23:12 -0700 (PDT) In-Reply-To: <49d4da47.18038e0a.3a2a.ffffe74a@mx.google.com> 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: Erik Hetzner Cc: emacs-orgmode@gnu.org On Apr 2, 2009, at 5:31 PM, Erik Hetzner wrote: > At Thu, 2 Apr 2009 09:29:46 +0200, > Carsten Dominik wrote: >> >> Hi Erik, >> >> I see your point. The trouble is that it is a traditional syntax >> to write things in the diary like this: >> >> 1/4/2009 some event >> 8:30 another event >> 10:00 meet with Sam for coffee >> >> >> etc etc. >> >> You patch will remove all those secondary lines. >> >> I think the right solution fr your case is that I will give you >> a hook in the cleanup routine, so that you can do your own >> cleanup. >> >> Or a variable, OK, we could do that too. > > I see. Thanks, I didn=92t know that. > > A hook would be perfect for me. There is now org-agenda-cleanup-fancy-diary-hook > > Another nice feature if possible would be to keep lines that do not > match =93^ +[0-9].*$=94 together with the first line in the fancy = diary > display? This would mean that diary entries: > > 1/4/2009 09:00 Some event > Event description. > > Would not be mangled by sorting the agenda. I have no idea if this is > possible. It is mangled because the first line contains a time, the second does =20= not. Since I am assuming one event per line, the sorting according to time will separate these. You could turn off sorting by time, or use the hook to add the time to each line. - Carsten > > Thanks again! > > best, > Erik