emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa @ /home/nmarais/.emacs.d/elpa/org-20160111/)]
@ 2016-01-15 11:14 Neilen Marais
  2016-01-15 13:04 ` Charles Millar
  0 siblings, 1 reply; 4+ messages in thread
From: Neilen Marais @ 2016-01-15 11:14 UTC (permalink / raw)
  To: emacs-orgmode

I tested this with both the packaged org-mode that came with my ubuntu
15.04 emacs24 install and with the latest org version on elpa.

Tasks with deadlines in the future spuriously show up under today's
schedule. E.g. Today is 2016-01-15 and I have a task with a deadline set
as 2016-01-19:

** TODO Prepare Goals of Internship talk
   DEADLINE: <2016-01-19 Tue>

If I do an org-agenda week display (M-x orga-agenda a), I see a spurious
entry for that task:

...
Friday     15 January 2016
...
  SKA-indo-SA:In   4 d.:  TODO Prepare Goals of Internship talk

If I do a month display, a properly formatted 'deadline' entry is also
shown for the 19th:

Tuesday    19 January 2016
  SKA-indo-SA:Deadline:   TODO Prepare Goals of Internship talk

but the spurious entry remains at today's date. This is happening for
all my tasks with future deadlines, making my agenda display quite cluttered.

Emacs  : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9)
 of 2015-03-21 on kissel, modified by Debian
Package: Org-mode version 8.3.3 (8.3.3-2-g6bc48c-elpa @
/home/nmarais/.emacs.d/elpa/org-20160111/)

Cheers
Neilen

current state:
==============
(setq
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-log-done 'time
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-custom-commands '(("c" "Context Next Tasks" tags-todo
                   (concat "SCHEDULED=\"\"+{" (mapconcat (quote car)
my-org-context-tag-alist "\\|") "}|SCHEDULED<=\"<today>\"+{"
(mapconcat (quote car) my-org-context-tag-alist "\\|") "}/NEXT")
                   ((org-agenda-sorting-strategy (quote (tag-up)))
(org-agenda-overriding-header "Context Next Tasks")))
                  ("s" "Startup View"
                   ((agenda "" ((org-agenda-ndays 3)
(org-deadline-warning-days 1)))
                (agenda ""
                 ((org-agenda-time-grid nil)
(org-deadline-warning-days 365) (org-agenda-entry-types (quote
(:deadline))) (org-agenda-skip-entry-if (quote scheduled))
(org-agenda-ndays 1)
                  (org-agenda-overriding-header "Unscheduled upcoming
deadlines:"))
                 )
                (todo "" (quote (org-agenda-overriding-header
"Unscheduled No Deadline TODO:"))))
                   )
                  ("o" "Context Next or Todo Tasks" tags-todo
(mapconcat (quote car) my-org-context-tag-alist "|")
                   ((org-agenda-skip-function (quote
(org-agenda-skip-entry-if (quote todo) (quote ("DONE")))))
(org-agenda-sorting-strategy (quote (tag-up)))
                (org-agenda-overriding-header "Context Next or Todo Tasks"))
                   )
                  ("w" todo "WAITING"))
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-show-block-all append local] 5]
         #[nil "\300\301\302\303\304$\207" [org-add-hook
change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes
org-better-keybindings)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w)" "DONE(d)"))
 org-confirm-elisp-link-function 'yes-or-no-p
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-agenda-mode-hook '((lambda nil
             (setq org-agenda-files
              (cons (expand-file-name
"~/Dropbox/scratchpad/work/work_notebook.org")
               (cons (expand-file-name
"~/Dropbox/scratchpad/notebook.org") (find-lisp-find-files
"~/Dropbox/GTD/ActiveProjects" ".org$")))
              )
             )
            )
 org-agenda-files
'("/home/nmarais/Dropbox/scratchpad/work/work_notebook.org"
"/home/nmarais/Dropbox/scratchpad/notebook.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/Work.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/SKA-indo-SA/SKA-indo-SA.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/SKA-learn-TANGO/SKA-learn-TANGO.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/ICALEPCS2015/ICALEPCS2015.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/SKA-katcp-talk.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/SKA-github-talk.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/None.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/BladleesProgramMasterProject.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/StockTrackingSoftware/StockTrackingSoftware.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/StockStrategy1/StockStrategy1.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/StockNewsScraper/StockNewsScraper.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/SpeelGlassI/SpellGlassI.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/SightNotesMaster/SightNotesMaster.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/SightNotes0.1/SightNotes0.1.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/OrgGTD/OrgGTD.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/Glatal16/Glatal16.org"
"/home/nmarais/Dropbox/GTD/ActiveProjects/DimmerAlarm/DimmerAlarm.org"
            "/home/nmarais/Dropbox/GTD/ActiveProjects/Budgeting2011/Budgeting2011.org")
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-tag-alist '(("@work" . 119) ("@home" . 104) ("@UCT" . 117)
("@errands" . 101) ("@internet" . 105) ("@computer" . 99) ("leaving" .
108) ("MorningHour" . 109) ("Reading" . 114) ("SometimeMaybe" . 115)
         ("@Phone" . 112) ("@Janneke" . 106) ("WeeklyReview" . 118)
("Waiting" . 97))
 )

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

* Re: Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa @ /home/nmarais/.emacs.d/elpa/org-20160111/)]
  2016-01-15 11:14 Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa @ /home/nmarais/.emacs.d/elpa/org-20160111/)] Neilen Marais
@ 2016-01-15 13:04 ` Charles Millar
  2016-01-18  8:15   ` Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa <at> /home/nmarais/.emacs.d/elpa/org-20160111/)] Neilen Marais
  2016-01-18  9:42   ` Neilen Marais
  0 siblings, 2 replies; 4+ messages in thread
From: Charles Millar @ 2016-01-15 13:04 UTC (permalink / raw)
  To: emacs-orgmode

Hi Neilen,

On 01/15/2016 06:14 AM, Neilen Marais wrote:
> I tested this with both the packaged org-mode that came with my ubuntu
> 15.04 emacs24 install and with the latest org version on elpa.
>
> Tasks with deadlines in the future spuriously show up under today's
> schedule. E.g. Today is 2016-01-15 and I have a task with a deadline set
> as 2016-01-19:
>
> ** TODO Prepare Goals of Internship talk
>     DEADLINE: <2016-01-19 Tue>
>
> If I do an org-agenda week display (M-x orga-agenda a), I see a spurious
> entry for that task:
>
> ...
> Friday     15 January 2016
> ...
>    SKA-indo-SA:In   4 d.:  TODO Prepare Goals of Internship talk
>
> If I do a month display, a properly formatted 'deadline' entry is also
> shown for the 19th:
>
> Tuesday    19 January 2016
>    SKA-indo-SA:Deadline:   TODO Prepare Goals of Internship talk
>
> but the spurious entry remains at today's date. This is happening for
> all my tasks with future deadlines, making my agenda display quite cluttered.
>
>
>
I am not a programmer, coder, whatever, but you have 
org-deadline-warning-days set to two different values. Is this the problem?

current state:
==============

snip

(org-deadline-warning-days 1)))
                 (agenda ""
                  ((org-agenda-time-grid nil)
(org-deadline-warning-days 365) (org-agenda-entry-types (quote
(:deadline))) (org-agenda-skip-entry-if (quote scheduled))

Charlie Millar

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

* Re: Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa <at> /home/nmarais/.emacs.d/elpa/org-20160111/)]
  2016-01-15 13:04 ` Charles Millar
@ 2016-01-18  8:15   ` Neilen Marais
  2016-01-18  9:42   ` Neilen Marais
  1 sibling, 0 replies; 4+ messages in thread
From: Neilen Marais @ 2016-01-18  8:15 UTC (permalink / raw)
  To: emacs-orgmode

Charles Millar <millarc <at> verizon.net> writes:

Charles,

> 
> Hi Neilen,
> 
> On 01/15/2016 06:14 AM, Neilen Marais wrote:
> > I tested this with both the packaged org-mode that came with my ubuntu
> > 15.04 emacs24 install and with the latest org version on elpa.
> >
> > Tasks with deadlines in the future spuriously show up under today's
> > schedule. E.g. Today is 2016-01-15 and I have a task with a deadline set
> > as 2016-01-19:
> >
> > ** TODO Prepare Goals of Internship talk
> >     DEADLINE: <2016-01-19 Tue>
> >
> > If I do an org-agenda week display (M-x orga-agenda a), I see a spurious
> > entry for that task:
> >
> > ...
> > Friday     15 January 2016
> > ...
> >    SKA-indo-SA:In   4 d.:  TODO Prepare Goals of Internship talk


> I am not a programmer, coder, whatever, but you have 
> org-deadline-warning-days set to two different values. Is this the problem?
> 
> current state:
> ==============
> 
> snip
> 
> (org-deadline-warning-days 1)))
>                  (agenda ""
>                   ((org-agenda-time-grid nil)
> (org-deadline-warning-days 365) (org-agenda-entry-types (quote
> (:deadline))) (org-agenda-skip-entry-if (quote scheduled))

Thanks for taking a look. I removed the redundant org-deadline-warning-days
definition, but it does not seem to change anything. The relevant bit of
config is now:

 org-agenda-custom-commands '(("c" "Context Next Tasks" tags-todo
			       (concat "SCHEDULED=\"\"+{"
				(mapconcat (quote car) my-org-context-tag-alist "\\|")
				"}|SCHEDULED<=\"<today>\"+{"
				(mapconcat (quote car) my-org-context-tag-alist "\\|") "}/NEXT")
			       ((org-agenda-sorting-strategy (quote (tag-up)))
				(org-agenda-overriding-header "Context Next Tasks"))
			       )
			      ("s" "Startup View"
			       ((agenda ""
				 ((org-agenda-time-grid nil) (org-deadline-warning-days 365)
				  (org-agenda-entry-types (quote (:deadline)))
				  (org-agenda-skip-entry-if (quote scheduled)) (org-agenda-ndays 1)
				  (org-agenda-overriding-header "Unscheduled upcoming deadlines:"))
				 )
				(todo ""
				 (quote
				  (org-agenda-overriding-header "Unscheduled No Deadline TODO:"))
				 )
				)
			       )
			      ("o" "Context Next or Todo Tasks" tags-todo
			       (mapconcat (quote car) my-org-context-tag-alist "|")
			       ((org-agenda-skip-function
				 (quote (org-agenda-skip-entry-if (quote todo) (quote ("DONE")))))
				(org-agenda-sorting-strategy (quote (tag-up)))
				(org-agenda-overriding-header "Context Next or Todo Tasks"))
			       )
			      ("w" todo "WAITING"))



Cheers
Neilen

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

* Re: Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa <at> /home/nmarais/.emacs.d/elpa/org-20160111/)]
  2016-01-15 13:04 ` Charles Millar
  2016-01-18  8:15   ` Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa <at> /home/nmarais/.emacs.d/elpa/org-20160111/)] Neilen Marais
@ 2016-01-18  9:42   ` Neilen Marais
  1 sibling, 0 replies; 4+ messages in thread
From: Neilen Marais @ 2016-01-18  9:42 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Charles Millar <millarc <at> verizon.net> writes:

> 
> Hi Neilen,
> 
> On 01/15/2016 06:14 AM, Neilen Marais wrote:
> > I tested this with both the packaged org-mode that came with my ubuntu
> > 15.04 emacs24 install and with the latest org version on elpa.
> >
> > Tasks with deadlines in the future spuriously show up under today's
> > schedule. E.g. Today is 2016-01-15 and I have a task with a deadline set
> > as 2016-01-19:
> >
> > ** TODO Prepare Goals of Internship talk
> >     DEADLINE: <2016-01-19 Tue>
> >
> > Friday     15 January 2016
> > ...
> >    SKA-indo-SA:In   4 d.:  TODO Prepare Goals of Internship talk

It seems that I might have misunderstood this feature. Is this entry trying
 to tell me that the deadline is due in 4 days? That would make sense,
although I somehow managed to miss any references to that in the
documentation I read :)

In that case, please close the bug report. I assume I can set
org-deadline-warning-days to control this?

Thanks
Neilen

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

end of thread, other threads:[~2016-01-18  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 11:14 Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa @ /home/nmarais/.emacs.d/elpa/org-20160111/)] Neilen Marais
2016-01-15 13:04 ` Charles Millar
2016-01-18  8:15   ` Bug: Spurious entries in agenda if tasks have a deadline [8.3.3 (8.3.3-2-g6bc48c-elpa <at> /home/nmarais/.emacs.d/elpa/org-20160111/)] Neilen Marais
2016-01-18  9:42   ` Neilen Marais

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