emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda repeats diary entries
@ 2009-12-14 19:52 Nathan Neff
  2009-12-16 19:18 ` Nathan Neff
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Nathan Neff @ 2009-12-14 19:52 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2702 bytes --]

Hello,

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.

Thanks for any suggestions,

--Nate




mode
Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on crested, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/tmp/temp-org-dir/temp.org")
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-agenda-diary-file "~/Documents/journal.org"
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/tmp/temp-org-dir"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
          org-cycle-show-empty-lines
          org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
           [org-add-hook change-major-mode-hook org-show-block-all
            append local]
           5]
         )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                   org-beamer-auto-fragile-frames
                   org-beamer-place-default-actions-for-lists)
 )

[-- Attachment #1.2: Type: text/html, Size: 3295 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  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
  2 siblings, 1 reply; 11+ messages in thread
From: Nathan Neff @ 2009-12-16 19:18 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3611 bytes --]

On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff <nathan.neff@gmail.com> wrote:

> Hello,
>
> 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.
>
> Thanks for any suggestions,
>
> --Nate
>
>
>
>
> mode
> Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
>  of 2009-09-27 on crested, modified by Debian
> Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)
>
> current state:
> ==============
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-agenda-files '("~/tmp/temp-org-dir/temp.org")
>  org-agenda-include-diary t
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '(org-export-blocks-preprocess)
>  org-agenda-diary-file "~/Documents/journal.org"
>  org-tab-first-hook '(org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-directory "~/tmp/temp-org-dir"
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>           org-cycle-show-empty-lines
>           org-optimize-window-after-visibility-change)
>  org-mode-hook '(#[nil "\300\301\302\303\304$\207"
>            [org-add-hook change-major-mode-hook org-show-block-all
>             append local]
>            5]
>          )
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-occur-hook '(org-first-headline-recenter)
>  org-export-preprocess-before-selecting-backend-code-hook
> '(org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>                    org-beamer-auto-fragile-frames
>                    org-beamer-place-default-actions-for-lists)
>  )
>


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     14 December 2009 W51
  Diary:      2009-12 December
  Diary:      2009-12-15 Tuesday
  Diary:      * Foo bar
  Diary:      <2009-12-15 Tue>
Tuesday    15 December 2009
  Diary:      2009-12 December
  Diary:      2009-12-15 Tuesday
  Diary:      * Foo bar
  Diary:      <2009-12-15 Tue>

Am I doing something wrong when declaring the org-agenda-diary-file?

Thanks,
--Nate

[-- Attachment #1.2: Type: text/html, Size: 4512 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-14 19:52 Agenda repeats diary entries Nathan Neff
  2009-12-16 19:18 ` Nathan Neff
@ 2009-12-26 20:12 ` Nathan Neff
  2009-12-27 20:33 ` Nathan Neff
  2 siblings, 0 replies; 11+ messages in thread
From: Nathan Neff @ 2009-12-26 20:12 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3006 bytes --]

On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff <nathan.neff@gmail.com> wrote:

> Hello,
>
> 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.
>
> Thanks for any suggestions,
>
> --Nate
>
>
>
>
> mode
> Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
>  of 2009-09-27 on crested, modified by Debian
> Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)
>
> current state:
> ==============
> (setq
>  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>  org-agenda-files '("~/tmp/temp-org-dir/temp.org")
>  org-agenda-include-diary t
>  org-after-todo-state-change-hook '(org-clock-out-if-current)
>  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>  org-export-preprocess-hook '(org-export-blocks-preprocess)
>  org-agenda-diary-file "~/Documents/journal.org"
>  org-tab-first-hook '(org-hide-block-toggle-maybe)
>  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>  org-confirm-shell-link-function 'yes-or-no-p
>  org-export-first-hook '(org-beamer-initialize-open-trackers)
>  org-agenda-before-write-hook '(org-agenda-add-entry-text)
>  org-directory "~/tmp/temp-org-dir"
>  org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>           org-cycle-show-empty-lines
>           org-optimize-window-after-visibility-change)
>  org-mode-hook '(#[nil "\300\301\302\303\304$\207"
>            [org-add-hook change-major-mode-hook org-show-block-all
>             append local]
>            5]
>          )
>  org-confirm-elisp-link-function 'yes-or-no-p
>  org-occur-hook '(org-first-headline-recenter)
>  org-export-preprocess-before-selecting-backend-code-hook
> '(org-beamer-select-beamer-code)
>  org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>                    org-beamer-auto-fragile-frames
>                    org-beamer-place-default-actions-for-lists)
>  )
>

Can anyone confirm this behavior?  It appears to be a bug.

Thanks,
--Nate

[-- Attachment #1.2: Type: text/html, Size: 3782 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Agenda repeats diary entries
  2009-12-14 19:52 Agenda repeats diary entries Nathan Neff
  2009-12-16 19:18 ` Nathan Neff
  2009-12-26 20:12 ` Nathan Neff
@ 2009-12-27 20:33 ` Nathan Neff
  2009-12-30  1:47   ` Matt Lundin
  2 siblings, 1 reply; 11+ messages in thread
From: Nathan Neff @ 2009-12-27 20:33 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2702 bytes --]

Hello,

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.

Thanks for any suggestions,

--Nate




mode
Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
 of 2009-09-27 on crested, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)

current state:
==============
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '("~/tmp/temp-org-dir/temp.org")
 org-agenda-include-diary t
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-agenda-diary-file "~/Documents/journal.org"
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory "~/tmp/temp-org-dir"
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
          org-cycle-show-empty-lines
          org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
           [org-add-hook change-major-mode-hook org-show-block-all
            append local]
           5]
         )
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
                   org-beamer-auto-fragile-frames
                   org-beamer-place-default-actions-for-lists)
 )

[-- Attachment #1.2: Type: text/html, Size: 3392 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-16 19:18 ` Nathan Neff
@ 2009-12-30  1:43   ` Bernt Hansen
  0 siblings, 0 replies; 11+ messages in thread
From: Bernt Hansen @ 2009-12-30  1:43 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

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

> On Mon, Dec 14, 2009 at 1:52 PM, Nathan Neff <nathan.neff@gmail.com> wrote:
>
>     Hello,
>    
>     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.
>    
>     Thanks for any suggestions,
>    
>     --Nate
>
>     mode
>     Emacs  : GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0)
>      of 2009-09-27 on crested, modified by Debian
>     Package: Org-mode version 6.33trans (release_6.33f.113.ga3b7)
>    
>     current state:
>     ==============
>     (setq
>      org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
>      org-agenda-files '("~/tmp/temp-org-dir/temp.org")
>      org-agenda-include-diary t
>      org-after-todo-state-change-hook '(org-clock-out-if-current)
>      org-export-latex-format-toc-function 'org-export-latex-format-toc-default
>      org-export-preprocess-hook '(org-export-blocks-preprocess)
>      org-agenda-diary-file "~/Documents/journal.org"
>      org-tab-first-hook '(org-hide-block-toggle-maybe)
>      org-src-mode-hook '(org-src-mode-configure-edit-buffer)
>      org-confirm-shell-link-function 'yes-or-no-p
>      org-export-first-hook '(org-beamer-initialize-open-trackers)
>      org-agenda-before-write-hook '(org-agenda-add-entry-text)
>      org-directory "~/tmp/temp-org-dir"
>      org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
>               org-cycle-show-empty-lines
>               org-optimize-window-after-visibility-change)
>      org-mode-hook '(#[nil "\300\301\302\303\304$\207"
>                [org-add-hook change-major-mode-hook org-show-block-all
>                 append local]
>                5]
>              )
>      org-confirm-elisp-link-function 'yes-or-no-p
>      org-occur-hook '(org-first-headline-recenter)
>      org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
>      org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
>                        org-beamer-auto-fragile-frames
>                        org-beamer-place-default-actions-for-lists)
>      )
>
> 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     14 December 2009 W51
>   Diary:      2009-12 December
>   Diary:      2009-12-15 Tuesday
>   Diary:      * Foo bar
>   Diary:      <2009-12-15 Tue>
> Tuesday    15 December 2009
>   Diary:      2009-12 December
>   Diary:      2009-12-15 Tuesday
>   Diary:      * Foo bar
>   Diary:      <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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-27 20:33 ` Nathan Neff
@ 2009-12-30  1:47   ` Matt Lundin
  2009-12-30  5:33     ` Nathan Neff
  0 siblings, 1 reply; 11+ messages in thread
From: Matt Lundin @ 2009-12-30  1:47 UTC (permalink / raw)
  To: Nathan Neff; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-30  1:47   ` Matt Lundin
@ 2009-12-30  5:33     ` Nathan Neff
  2009-12-30 11:32       ` Bernt Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Nathan Neff @ 2009-12-30  5:33 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2467 bytes --]

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)


Thanks,
-Nate

[-- Attachment #1.2: Type: text/html, Size: 3394 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-30  5:33     ` Nathan Neff
@ 2009-12-30 11:32       ` Bernt Hansen
  2009-12-30 20:59         ` Nathan Neff
  0 siblings, 1 reply; 11+ messages in thread
From: Bernt Hansen @ 2009-12-30 11:32 UTC (permalink / raw)
  To: Nathan Neff; +Cc: Matt Lundin, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-30 11:32       ` Bernt Hansen
@ 2009-12-30 20:59         ` Nathan Neff
  2009-12-30 22:22           ` Bernt Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Nathan Neff @ 2009-12-30 20:59 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: Matt Lundin, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 3944 bytes --]

On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen <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:
> >
> >     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
>

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

[-- Attachment #1.2: Type: text/html, Size: 5411 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-30 20:59         ` Nathan Neff
@ 2009-12-30 22:22           ` Bernt Hansen
  2009-12-31  2:05             ` Bernt Hansen
  0 siblings, 1 reply; 11+ messages in thread
From: Bernt Hansen @ 2009-12-30 22:22 UTC (permalink / raw)
  To: Nathan Neff; +Cc: Matt Lundin, emacs-orgmode

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

> On Wed, Dec 30, 2009 at 5:32 AM, Bernt Hansen <bernt@norang.ca> wrote:
>
>     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.

You can probably do

(setq diary-file nil)

I just did that.

This variable seems to want to be a filename - and there's no way to
customize it to nil on my version of emacs... but I never use it so it
doesn't bother me and it can point to any non-existent or empty file.

I used the diary eons ago and so I have a leftover empty ~/diary file in
my setup.  I have since moved to keeping my diary entries in the
org-agenda-diary-file instead.

I've just set diary-file to nil and nothing broke immediately so I'll
just leave it that way until something bad happens :)

I'm glad you got that issue fixed.

Regards,
Bernt

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Agenda repeats diary entries
  2009-12-30 22:22           ` Bernt Hansen
@ 2009-12-31  2:05             ` Bernt Hansen
  0 siblings, 0 replies; 11+ messages in thread
From: Bernt Hansen @ 2009-12-31  2:05 UTC (permalink / raw)
  To: Nathan Neff; +Cc: Matt Lundin, emacs-orgmode

Bernt Hansen <bernt@norang.ca> writes:

> You can probably do
>
> (setq diary-file nil)
>
> I just did that.

Don't do that.  :)

>
> This variable seems to want to be a filename - and there's no way to
> customize it to nil on my version of emacs... but I never use it so it
> doesn't bother me and it can point to any non-existent or empty file.
>
> I used the diary eons ago and so I have a leftover empty ~/diary file in
> my setup.  I have since moved to keeping my diary entries in the
> org-agenda-diary-file instead.
>
> I've just set diary-file to nil and nothing broke immediately so I'll
> just leave it that way until something bad happens :)

I can't exit Emacs anymore if diary-file is set to nil so that's a
really bad idea.  I removed the customization and it's back to the
default "~/diary" value and all is well again.

-Bernt

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-12-31  2:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2009-12-30 20:59         ` Nathan Neff
2009-12-30 22:22           ` Bernt Hansen
2009-12-31  2:05             ` Bernt Hansen

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).