From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Agenda repeats diary entries Date: Wed, 30 Dec 2009 06:32:15 -0500 Message-ID: <87oclgpuio.fsf@gollum.intra.norang.ca> References: <211769420912141152n547ecbeka37f0774e5054f42@mail.gmail.com> <211769420912271233h21c96ddfnb599c9755aa3327c@mail.gmail.com> <874on96xn6.fsf@fastmail.fm> <211769420912292133s284bb7b0oa7d8cbab322ea87@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPwn6-0007e3-Ka for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 06:32:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPwn2-0007dY-1c for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 06:32:35 -0500 Received: from [199.232.76.173] (port=53898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPwn1-0007dV-Sy for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 06:32:31 -0500 Received: from mx20.gnu.org ([199.232.41.8]:54406) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NPwn0-0004qw-IV for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 06:32:31 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPwmz-00089h-Th for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 06:32:30 -0500 In-Reply-To: <211769420912292133s284bb7b0oa7d8cbab322ea87@mail.gmail.com> (Nathan Neff's message of "Tue\, 29 Dec 2009 23\:33\:33 -0600") 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: Nathan Neff Cc: Matt Lundin , emacs-orgmode@gnu.org Nathan Neff writes: > On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin wrote: > > Hi Nathan, >=20=20=20=20 > Nathan Neff writes: >=20=20=20=20 > > I'm using org-agenda-diary-file.=C2=A0 > > > > When I run agenda-mode with the attached configuration, > > I see the same diary entry under each day. > > > > Here's what my agenda shows.=C2=A0 Notice that the entry > > from Dec. 08 shows up on Dec. 14's and Dec. 15's agenda. > > Also, "2009" and "2009-12-December" headers > > repeated under each day. > > > > Monday=C2=A0=C2=A0=C2=A0=C2=A0 14 December 2009 W51 > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009 > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009-12 December > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * 2009-12-08 Tuesday > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ** Something else. > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <2009-12-08 Tue> > > Tuesday=C2=A0=C2=A0=C2=A0 15 December 2009 > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009 > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009-12 December > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * 2009-12-08 Tuesday > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ** Something else. > > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <2009-12-08 Tue> > > > > Here's the contents of my diary file "journal.org" > > * 2009 > > ** 2009-12 December > > *** 2009-12-08 Tuesday > > **** Something else. > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <2009-12-08 Tue> > > > > I've tried to include the bare-minimum in my .emacs file, > > and I can provide it if necessary.=C2=A0 I'm submitting this > > using M-x org-submit-bug-report, so hopefully, all necessary > > info is included. > > >=20=20=20=20 > I can't reproduce this. Here's what my agenda looks like using the sa= me > source along with the settings you included in your email: >=20=20=20=20 > Week-agenda (W50-W51): > Tuesday =C2=A0 =C2=A0 8 December 2009 > =C2=A0journal: =C2=A0 =C2=A0Something else. > Wednesday =C2=A0 9 December 2009 > Thursday =C2=A0 10 December 2009 > Friday =C2=A0 =C2=A0 11 December 2009 > Saturday =C2=A0 12 December 2009 > Sunday =C2=A0 =C2=A0 13 December 2009 > Monday =C2=A0 =C2=A0 14 December 2009 W51 >=20=20=20=20 > Best, > Matt > > Thanks for the help, guys -- If I set the org-agenda-file to a filename t= hat doesn't have the .org extension, then I get the following error: > > Wront type argument: stringp, nil > > I turned on debugging, and the error is occurring in org-fix-position-aft= er-promote() > > Here's the stack trace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > =C2=A0 looking-at(nil) > =C2=A0 org-fix-position-after-promote() > =C2=A0 org-do-demote() > =C2=A0 org-datetree-insert-line(2009 12) > =C2=A0 org-datetree-find-month-create(2009 12) > =C2=A0 org-datetree-find-date-create((12 29 2009)) > =C2=A0 org-agenda-add-entry-to-org-agenda-diary-file(day "foo" (12 29 200= 9)) > =C2=A0 org-agenda-diary-entry-in-org-file() > =C2=A0 org-agenda-diary-entry() > =C2=A0 call-interactively(org-agenda-diary-entry nil nil) Your org-agenda-files need to be files in org-mode (normally ending in .org). Your org-agenda-diary-file should also be an org file (your journal.org). BUT the diary-file is a totally different animal. Mine is set to ~/diary which is a zero-length empty file. I don't use the standard Emacs diary at all. I have org-agenda-include-diary set to nil and just use my diary.org file (your journal.org) and my regular org files for all of my appointment information. HTH, Bernt