Fix bug in org-agenda-diary-sexp-prefix

* lisp/org-agenda.el (org-agenda-get-sexps): Reset `extra' to nil at
beginning of re-search-forward loop, otherwise next iteration picks up
`extra' value from previous entry.
This commit is contained in:
Toby S. Cubitt 2012-10-26 14:06:28 +02:00 committed by Bastien Guerry
parent 73cfba486b
commit 58551f1e5f

View file

@ -5454,7 +5454,8 @@ Do we have a reason to ignore this TODO entry because it has a time stamp?
tags (save-excursion (org-backward-heading-same-level 0)
(org-get-tags-at))
todo-state (org-get-todo-state)
warntime (org-entry-get (point) "APPT_WARNTIME"))
warntime (org-entry-get (point) "APPT_WARNTIME")
extra nil)
(dolist (r (if (stringp result)
(list result)