emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-agenda-skip-entry-if 'notdeadline?
@ 2009-10-26  4:49 Michael Gilbert
  2009-10-26 15:22 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gilbert @ 2009-10-26  4:49 UTC (permalink / raw)
  To: org-mode Mailinglist

Hi --

Still trying to figure out how to show only (current) deadlines in my  
agenda. I use org-agenda-skip-entry-if 'notdeadline but that still  
seems to include all the scheduled items who have deadlines (some time  
in the future, but not currently). I apologize for missing something  
obvious, but ... any advice?

-- Michael

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

* Re: org-agenda-skip-entry-if 'notdeadline?
  2009-10-26  4:49 org-agenda-skip-entry-if 'notdeadline? Michael Gilbert
@ 2009-10-26 15:22 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-10-26 15:22 UTC (permalink / raw)
  To: Michael Gilbert; +Cc: org-mode Mailinglist


On Oct 26, 2009, at 5:49 AM, Michael Gilbert wrote:

> Hi --
>
> Still trying to figure out how to show only (current) deadlines in  
> my agenda. I use org-agenda-skip-entry-if 'notdeadline but that  
> still seems to include all the scheduled items who have deadlines  
> (some time in the future, but not currently). I apologize for  
> missing something obvious, but ... any advice?
>

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

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

end of thread, other threads:[~2009-10-26 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26  4:49 org-agenda-skip-entry-if 'notdeadline? Michael Gilbert
2009-10-26 15:22 ` Carsten Dominik

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