emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "due today" agenda command stopped working
@ 2010-03-14 16:20 Michael Gilbert
  2010-03-15 15:16 ` Carsten Dominik
  2010-03-17 14:44 ` David Maus
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Gilbert @ 2010-03-14 16:20 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

Hi —

A while back, Carsten helped me out with a "due today" custom agenda command. This is it:

(setq org-agenda-custom-commands
     '(("d" "Due today" agenda ""
        ((org-deadline-warning-days 0)
         (org-agenda-skip-scheduled-if-deadline-is-shown t)
         (org-agenda-skip-function
          (lambda ()
            (let* ((dl (org-entry-get nil "DEADLINE")))
              (if (or (not dl)
                      (equal dl "")
                      (org-time> dl (org-time-today)))
                  (progn (outline-next-heading) (point))))))))
       )

I routinely keep up with org-mode updates and recently this stopped working properly. What it does now is list a small subset of the items due today. After an hour looking at them, I can't figure out why it's leaving most of them out. The pattern just isn't clear to me. I'm wondering if something this command depends upon has changed. Well, probably it has, but the questions are: What changed? And is there another solution to the "due today" custom command?

Any thoughts?

— Michael

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

* Re: "due today" agenda command stopped working
  2010-03-14 16:20 "due today" agenda command stopped working Michael Gilbert
@ 2010-03-15 15:16 ` Carsten Dominik
  2010-03-17 14:44 ` David Maus
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2010-03-15 15:16 UTC (permalink / raw)
  To: Michael Gilbert; +Cc: emacs-orgmode Mailinglist

Hi Michael,

are you using git to keep up to date?  Then you could use git bisect  
to locate the precise commit where this behavior changed - that would  
then make it very easy to find out what is causing the problem.

- Carsten

On Mar 14, 2010, at 5:20 PM, Michael Gilbert wrote:

> Hi —
>
> A while back, Carsten helped me out with a "due today" custom agenda  
> command. This is it:
>
> (setq org-agenda-custom-commands
>     '(("d" "Due today" agenda ""
>        ((org-deadline-warning-days 0)
>         (org-agenda-skip-scheduled-if-deadline-is-shown t)
>         (org-agenda-skip-function
>          (lambda ()
>            (let* ((dl (org-entry-get nil "DEADLINE")))
>              (if (or (not dl)
>                      (equal dl "")
>                      (org-time> dl (org-time-today)))
>                  (progn (outline-next-heading) (point))))))))
>       )
>
> I routinely keep up with org-mode updates and recently this stopped  
> working properly. What it does now is list a small subset of the  
> items due today. After an hour looking at them, I can't figure out  
> why it's leaving most of them out. The pattern just isn't clear to  
> me. I'm wondering if something this command depends upon has  
> changed. Well, probably it has, but the questions are: What changed?  
> And is there another solution to the "due today" custom command?
>
> Any thoughts?
>
> — Michael
>
>
>
> _______________________________________________
> 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

- Carsten

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

* Re: "due today" agenda command stopped working
  2010-03-14 16:20 "due today" agenda command stopped working Michael Gilbert
  2010-03-15 15:16 ` Carsten Dominik
@ 2010-03-17 14:44 ` David Maus
  1 sibling, 0 replies; 3+ messages in thread
From: David Maus @ 2010-03-17 14:44 UTC (permalink / raw)
  To: Michael Gilbert; +Cc: emacs-orgmode Mailinglist


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

Michael Gilbert wrote:
>Hi —

>A while back, Carsten helped me out with a "due today" custom agenda
>command. This is it:

>(setq org-agenda-custom-commands
>     '(("d" "Due today" agenda ""
>        ((org-deadline-warning-days 0)
>         (org-agenda-skip-scheduled-if-deadline-is-shown t)
>         (org-agenda-skip-function
>          (lambda ()
>            (let* ((dl (org-entry-get nil "DEADLINE")))
>              (if (or (not dl)
>                      (equal dl "")
>                      (org-time> dl (org-time-today)))
>                  (progn (outline-next-heading) (point))))))))
>       )

>I routinely keep up with org-mode updates and recently this stopped
>working properly. What it does now is list a small subset of the
>items due today. After an hour looking at them, I can't figure out
>why it's leaving most of them out. The pattern just isn't clear to
>me. I'm wondering if something this command depends upon has
>changed. Well, probably it has, but the questions are: What changed?
>And is thethere another solution to the "due today" custom command?

I cannot reproduce this with

Org-mode version 6.34trans (release_6.34c.224.ga8427)

on

GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.7) of
 2010-03-11 on elegiac, modified by Debian

My test file:
,----
| * TODO Another one
|   DEADLINE: <2010-03-20 Sa>
| 
| * TODO Test
|   DEADLINE: <2010-03-17 Mi>
`----

Setting `org-agenda-custom-commands' as mentioned and hitting C-a d
show only the headline with deadline of today whilst using C-a a shows
both.

Wild guess: Do the headlines appear in the weekly/daily agenda view
and are the files with headlines that are not shown with C-a d in
Orgmode's list of agenda files?

HTH
 -- David

-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 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] 3+ messages in thread

end of thread, other threads:[~2010-03-17 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-14 16:20 "due today" agenda command stopped working Michael Gilbert
2010-03-15 15:16 ` Carsten Dominik
2010-03-17 14:44 ` David Maus

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