Browse Source

Agenda: Make sure diary items are searched for a time.

The new variable `org-agenda-search-headline-for-time' also turned off
time searching for diary items as an unwanted side-effect.  This
commit makes sure that diary entries are always parsed for a time.
Carsten Dominik 10 years ago
parent
commit
b4c6dab208
2 changed files with 2 additions and 1 deletions
  1. 1 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 1 - 0
lisp/ChangeLog

@@ -2,6 +2,7 @@
 
 	* org-agenda.el (org-agenda-get-todos): Fix bug with match-data.
 	(org-agenda-get-todos): Mark file tags as inherited.
+	(org-agenda-list): Always search diary lines for a time.
 
 2009-03-24  Carsten Dominik  <carsten.dominik@gmail.com>
 

+ 1 - 1
lisp/org-agenda.el

@@ -2753,7 +2753,7 @@ given in `org-agenda-start-on-weekday'."
 		       :deadline :scheduled :sexp :timestamp))))
 	  (setq rtnall (append rtnall rtn))))
       (if org-agenda-include-diary
-	  (progn
+	  (let ((org-agenda-search-headline-for-time t))
 	    (require 'diary-lib)
 	    (setq rtn (org-get-entries-from-diary date))
 	    (setq rtnall (append rtnall rtn))))