emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: Matt Lundin <mdl@imapmail.org>, emacs-orgmode@gnu.org
Subject: Re: Agenda repeats diary entries
Date: Wed, 30 Dec 2009 06:32:15 -0500	[thread overview]
Message-ID: <87oclgpuio.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <211769420912292133s284bb7b0oa7d8cbab322ea87@mail.gmail.com> (Nathan Neff's message of "Tue\, 29 Dec 2009 23\:33\:33 -0600")

Nathan Neff <nathan.neff@gmail.com> writes:

> On Tue, Dec 29, 2009 at 7:47 PM, Matt Lundin <mdl@imapmail.org> wrote:
>
>     Hi Nathan,
>    
>     Nathan Neff <nathan.neff@gmail.com> 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

  reply	other threads:[~2009-12-30 11:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-14 19:52 Agenda repeats diary entries Nathan Neff
2009-12-16 19:18 ` Nathan Neff
2009-12-30  1:43   ` Bernt Hansen
2009-12-26 20:12 ` Nathan Neff
2009-12-27 20:33 ` Nathan Neff
2009-12-30  1:47   ` Matt Lundin
2009-12-30  5:33     ` Nathan Neff
2009-12-30 11:32       ` Bernt Hansen [this message]
2009-12-30 20:59         ` Nathan Neff
2009-12-30 22:22           ` Bernt Hansen
2009-12-31  2:05             ` Bernt Hansen

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=87oclgpuio.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    --cc=nathan.neff@gmail.com \
    /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).