From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Agenda repeats diary entries Date: Tue, 29 Dec 2009 20:43:25 -0500 Message-ID: <87skatp77m.fsf@gollum.intra.norang.ca> References: <211769420912141152n547ecbeka37f0774e5054f42@mail.gmail.com> <211769420912161118u596ee1a7j90ca191263be9f6a@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 1NPnb8-0007yV-Av for emacs-orgmode@gnu.org; Tue, 29 Dec 2009 20:43:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPnb4-0007y7-UZ for emacs-orgmode@gnu.org; Tue, 29 Dec 2009 20:43:37 -0500 Received: from [199.232.76.173] (port=58743 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPnb4-0007y4-O7 for emacs-orgmode@gnu.org; Tue, 29 Dec 2009 20:43:34 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:58717) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NPnb4-00060i-B7 for emacs-orgmode@gnu.org; Tue, 29 Dec 2009 20:43:34 -0500 In-Reply-To: <211769420912161118u596ee1a7j90ca191263be9f6a@mail.gmail.com> (Nathan Neff's message of "Wed\, 16 Dec 2009 13\:18\:36 -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: emacs-orgmode@gnu.org Nathan Neff writes: > On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff wrot= e: > > Hello, >=20=20=20=20 > I'm using org-agenda-diary-file.=C2=A0 >=20=20=20=20 > When I run agenda-mode with the attached configuration, > I see the same diary entry under each day. >=20=20=20=20 > 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. >=20=20=20=20 > 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> >=20=20=20=20 > 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> >=20=20=20=20 > 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 > Thanks for any suggestions, >=20=20=20=20 > --Nate > > mode > Emacs=C2=A0 : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version = 2.18.0) > =C2=A0of 2009-09-27 on crested, modified by Debian > Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7) >=20=20=20=20 > current state: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > (setq > =C2=A0org-export-latex-after-initial-vars-hook '(org-beamer-after-ini= tial-vars) > =C2=A0org-agenda-files '("~/tmp/temp-org-dir/temp.org") > =C2=A0org-agenda-include-diary t > =C2=A0org-after-todo-state-change-hook '(org-clock-out-if-current) > =C2=A0org-export-latex-format-toc-function 'org-export-latex-format-t= oc-default > =C2=A0org-export-preprocess-hook '(org-export-blocks-preprocess) > =C2=A0org-agenda-diary-file "~/Documents/journal.org" > =C2=A0org-tab-first-hook '(org-hide-block-toggle-maybe) > =C2=A0org-src-mode-hook '(org-src-mode-configure-edit-buffer) > =C2=A0org-confirm-shell-link-function 'yes-or-no-p > =C2=A0org-export-first-hook '(org-beamer-initialize-open-trackers) > =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text) > =C2=A0org-directory "~/tmp/temp-org-dir" > =C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hid= e-drawers > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-cycle-show-empty-lin= es > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-optimize-window-afte= r-visibility-change) > =C2=A0org-mode-hook '(#[nil "\300\301\302\303\304$\207" > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 [org-add-hook chan= ge-major-mode-hook org-show-block-all > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 append local] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 5] > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0) > =C2=A0org-confirm-elisp-link-function 'yes-or-no-p > =C2=A0org-occur-hook '(org-first-headline-recenter) > =C2=A0org-export-preprocess-before-selecting-backend-code-hook '(org-= beamer-select-beamer-code) > =C2=A0org-export-latex-final-hook '(org-beamer-amend-header org-beame= r-fix-toc > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 org-beamer-auto-fragile-frames > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 org-beamer-place-default-actions-for-lists) > =C2=A0) > > I've tried getting rid of the above problem by using a bare-bones .emacs = file > with only these lines in it: > > (setq org-agenda-include-diary t) > (setq diary-file "~/Documents/personal/journal.org") > (setq org-agenda-diary-file diary-file) > > I still see repeated diary entries like this in the agenda > 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-12 December > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009-12-15 Tuesday > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * Foo bar > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <2009-12-15 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-12 December > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2009-12-15 Tuesday > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * Foo bar > =C2=A0 Diary:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <2009-12-15 Tue> > > Am I doing something wrong when declaring the org-agenda-diary-file? Yes. Everything works fine for me until I define the diary-file to be the journal.org file. The normal diary file is _not_ an org file normally. So I think org-mode is trying to read the diary file in diary format which is completely confused. Try (setq diary-file "~/diary") where ~/diary is empty. That fixes it for me. -Bernt