Browse Source

Fix display of current time to show up only today

* lisp/org-agenda.el (org-agenda-add-time-grid-maybe): Show time only
when grid is being made for today.

Patch by Matt Lundin
Carsten Dominik 14 years ago
parent
commit
fbe3eb4d2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -5353,7 +5353,7 @@ The modified list may contain inherited tags, and tags matched by
 		new)
 		new)
 	  (put-text-property
 	  (put-text-property
 	   2 (length (car new)) 'face 'org-time-grid (car new))))
 	   2 (length (car new)) 'face 'org-time-grid (car new))))
-      (when org-agenda-show-current-time-in-grid
+      (when (and todayp org-agenda-show-current-time-in-grid)
 	(push (org-format-agenda-item
 	(push (org-format-agenda-item
 	       nil 
 	       nil 
 	       org-agenda-current-time-string
 	       org-agenda-current-time-string