Agenda: Simplify old fix of face for deadline warning 0 day
commit2f07dd516326289260e547705ad529788c080f87
authorMichael Brand <michael.ch.brand@gmail.com>
Mon, 1 Aug 2011 08:53:33 +0000 (1 10:53 +0200)
committerBastien Guerry <bzg@altern.org>
Sun, 14 Aug 2011 16:40:42 +0000 (14 18:40 +0200)
tree6720325e3982ddccb6baab96be0422cbd3d91ec1
parent662c7a047be8beb124a020e8da2831d181bb7965
Agenda: Simplify old fix of face for deadline warning 0 day

* lisp/org-agenda.el (org-agenda-get-deadlines): Fix dfrac for the
case of wdays being 0.  Don't pass wdays to org-agenda-deadline-face,
like before the old fix.
(org-agenda-deadline-face): Revert to old state that was without
wdays.

This allows a deadline warning period of "-0d" to work also with a
custom configuration like:
(setq org-agenda-deadline-faces
      '((1.0001 . org-warning)              ; due yesterday or before
        (0.0    . org-upcoming-deadline)))  ; due today or later
For org-agenda-deadline-faces left at default and all other settings
not exceeding 1.0, the face for a deadline warning of any length
remains untouched by this patch.

references to history:
* commit of the old fix
  - http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=d0d6325
  - git show d0d6325
* mailing list old thread
  - http://thread.gmane.org/gmane.emacs.orgmode/5753
  - http://lists.gnu.org/archive/html/emacs-orgmode/2008-02/msg00395.html
lisp/org-agenda.el