From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Re: Agenda repeats diary entries Date: Wed, 30 Dec 2009 14:59:34 -0600 Message-ID: <211769420912301259s2b8b559v519426ee2b93c212@mail.gmail.com> References: <211769420912141152n547ecbeka37f0774e5054f42@mail.gmail.com> <211769420912271233h21c96ddfnb599c9755aa3327c@mail.gmail.com> <874on96xn6.fsf@fastmail.fm> <211769420912292133s284bb7b0oa7d8cbab322ea87@mail.gmail.com> <87oclgpuio.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1445625336==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQ5dx-0008AH-4n for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 15:59:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQ5dr-00089k-4j for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 15:59:44 -0500 Received: from [199.232.76.173] (port=39070 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQ5dr-00089h-1h for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 15:59:39 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:33470) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NQ5dq-0001o7-BU for emacs-orgmode@gnu.org; Wed, 30 Dec 2009 15:59:38 -0500 Received: by bwz7 with SMTP id 7so8541377bwz.26 for ; Wed, 30 Dec 2009 12:59:35 -0800 (PST) In-Reply-To: <87oclgpuio.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: Matt Lundin , emacs-orgmode@gnu.org --===============1445625336== Content-Type: multipart/alternative; boundary=000325557ce2722755047bf86a89 --000325557ce2722755047bf86a89 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen wrote: > Nathan Neff writes: > > > On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin wrote: > > > > Hi Nathan, > > > > Nathan Neff writes: > > > > > I'm using org-agenda-diary-file. > > > > > > When I run agenda-mode with the attached configuration, > > > I see the same diary entry under each day. > > > > > > Here's what my agenda shows. 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 14 December 2009 W51 > > > Diary: 2009 > > > Diary: 2009-12 December > > > Diary: * 2009-12-08 Tuesday > > > Diary: ** Something else. > > > Diary: <2009-12-08 Tue> > > > Tuesday 15 December 2009 > > > Diary: 2009 > > > Diary: 2009-12 December > > > Diary: * 2009-12-08 Tuesday > > > Diary: ** Something else. > > > Diary: <2009-12-08 Tue> > > > > > > Here's the contents of my diary file "journal.org" > > > * 2009 > > > ** 2009-12 December > > > *** 2009-12-08 Tuesday > > > **** Something else. > > > <2009-12-08 Tue> > > > > > > I've tried to include the bare-minimum in my .emacs file, > > > and I can provide it if necessary. I'm submitting this > > > using M-x org-submit-bug-report, so hopefully, all necessary > > > info is included. > > > > > > > I can't reproduce this. Here's what my agenda looks like using the > same > > source along with the settings you included in your email: > > > > Week-agenda (W50-W51): > > Tuesday 8 December 2009 > > journal: Something else. > > Wednesday 9 December 2009 > > Thursday 10 December 2009 > > Friday 11 December 2009 > > Saturday 12 December 2009 > > Sunday 13 December 2009 > > Monday 14 December 2009 W51 > > > > Best, > > Matt > > > > Thanks for the help, guys -- If I set the org-agenda-file to a filename > that 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-after-promote() > > > > Here's the stack trace: > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > looking-at(nil) > > org-fix-position-after-promote() > > org-do-demote() > > org-datetree-insert-line(2009 12) > > org-datetree-find-month-create(2009 12) > > org-datetree-find-date-create((12 29 2009)) > > org-agenda-add-entry-to-org-agenda-diary-file(day "foo" (12 29 2009)) > > org-agenda-diary-entry-in-org-file() > > org-agenda-diary-entry() > > 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 > Thank you very much. I finally got it to work, using only this setting: (setq org-agenda-diary-file "~/Documents/personal/journal.org") Whenever I press "i" in agenda, org-mode puts date/timestamped entries in the correct file, using org mode formatting, which is what I want. Since I don't use the diary-file ~/Documents/journal file, it seems odd to have to define it, but oh well :-) Thank you very much -- I will use the org-agenda-diary-file much more now. --Nate --000325557ce2722755047bf86a89 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Dec 30, 2009 at 5:32 AM, Bernt H= ansen <bernt@norang= .ca> wrote:
Nathan Neff <nathan.neff@gmail.com> writes:

> On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin <mdl@imapmail.org> wrote:
>
> =A0 =A0 Hi Nathan,
>
> =A0 =A0 Nathan Neff <natha= n.neff@gmail.com> writes:
>
> =A0 =A0 > I'm using org-agenda-diary-file.=A0
> =A0 =A0 >
> =A0 =A0 > When I run agenda-mode with the attached configuration, > =A0 =A0 > I see the same diary entry under each day.
> =A0 =A0 >
> =A0 =A0 > Here's what my agenda shows.=A0 Notice that the entry=
> =A0 =A0 > from Dec. 08 shows up on Dec. 14's and Dec. 15's = agenda.
> =A0 =A0 > Also, "2009" and "2009-12-December" h= eaders
> =A0 =A0 > repeated under each day.
> =A0 =A0 >
> =A0 =A0 > Monday=A0=A0=A0=A0 14 December 2009 W51
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 2009
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 2009-12 December
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 * 2009-12-08 Tuesday
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 ** Something else.
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 <2009-12-08 Tue>
> =A0 =A0 > Tuesday=A0=A0=A0 15 December 2009
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 2009
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 2009-12 December
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 * 2009-12-08 Tuesday
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 ** Something else.
> =A0 =A0 > =A0 Diary:=A0=A0=A0=A0=A0 <2009-12-08 Tue>
> =A0 =A0 >
> =A0 =A0 > Here's the contents of my diary file "journal.org"
> =A0 =A0 > * 2009
> =A0 =A0 > ** 2009-12 December
> =A0 =A0 > *** 2009-12-08 Tuesday
> =A0 =A0 > **** Something else.
> =A0 =A0 > =A0=A0=A0=A0=A0 <2009-12-08 Tue>
> =A0 =A0 >
> =A0 =A0 > I've tried to include the bare-minimum in my .emacs f= ile,
> =A0 =A0 > and I can provide it if necessary.=A0 I'm submitting = this
> =A0 =A0 > using M-x org-submit-bug-report, so hopefully, all necess= ary
> =A0 =A0 > info is included.
> =A0 =A0 >
>
> =A0 =A0 I can't reproduce this. Here's what my agenda looks li= ke using the same
> =A0 =A0 source along with the settings you included in your email:
>
> =A0 =A0 Week-agenda (W50-W51):
> =A0 =A0 Tuesday =A0 =A0 8 December 2009
> =A0 =A0 =A0journal: =A0 =A0Something else.
> =A0 =A0 Wednesday =A0 9 December 2009
> =A0 =A0 Thursday =A0 10 December 2009
> =A0 =A0 Friday =A0 =A0 11 December 2009
> =A0 =A0 Saturday =A0 12 December 2009
> =A0 =A0 Sunday =A0 =A0 13 December 2009
> =A0 =A0 Monday =A0 =A0 14 December 2009 W51
>
> =A0 =A0 Best,
> =A0 =A0 Matt
>
> Thanks for the help, guys -- If I set the org-agenda-file to a filenam= e that 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-= after-promote()
>
> Here's the stack trace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> =A0 looking-at(nil)
> =A0 org-fix-position-after-promote()
> =A0 org-do-demote()
> =A0 org-datetree-insert-line(2009 12)
> =A0 org-datetree-find-month-create(2009 12)
> =A0 org-datetree-find-date-create((12 29 2009))
> =A0 org-agenda-add-entry-to-org-agenda-diary-file(day "foo" = (12 29 2009))
> =A0 org-agenda-diary-entry-in-org-file()
> =A0 org-agenda-diary-entry()
> =A0 call-interactively(org-agenda-diary-entry nil nil)

Your org-agenda-files need to be files in org-mode (normally en= ding in
.org). =A0Your org-agenda-diary-file should also be an org file (your
journal.org). =A0BUT t= he diary-file is a totally different animal. =A0Mine
is set to ~/diary which is a zero-length empty file. =A0I don't use the=
standard Emacs diary at all. =A0I have org-agenda-include-diary set to nil<= br> and just use my diary.org file (your journal.org) and my regular org
files for all of my appointment information.

HTH,
Bernt

Thank you very much.=A0 I finally got it to w= ork, using only this setting:

(setq org-agenda-diary-file "~/Do= cuments/personal/
journal.org")

Whenever I press "i" in agenda, org-mode puts date/timestampe= d entries in the correct file, using org mode formatting, which is what I w= ant.

Since I don't use the diary-file ~/Documents/journal file, = it seems odd to have to define it, but oh well :-)

Thank you very much -- I will use the org-agenda-diary-file much more n= ow.

--Nate
--000325557ce2722755047bf86a89-- --===============1445625336== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1445625336==--