diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 044590584..33f10b33d 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-09-24 Carsten Dominik + + * org.el (org-map-entries): Protect the keyword-selecting variables. + 2008-09-23 Bastien Guerry * org-agenda.el (org-agenda-to-appt): Make sure the function check diff --git a/lisp/org.el b/lisp/org.el index 67d26f01a..70d519b9e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8685,7 +8685,7 @@ only lines with a TODO keyword are included in the output." (tags-alist (list (cons 0 (mapcar 'downcase org-file-tags)))) (llast 0) rtn rtn1 level category i txt todo marker entry priority) - (when (not (member action '(agenda sparse-tree))) + (when (not (or (member action '(agenda sparse-tree)) (functionp action))) (setq action (list 'lambda nil action))) (save-excursion (goto-char (point-min)) @@ -9506,9 +9506,12 @@ the scanner. The following items can be given here: (org-agenda-skip-function (car (org-delete-all '(comment archive) skip))) (org-tags-match-list-sublevels t) - matcher pos file) + matcher pos file + org-todo-keywords-for-agenda + org-done-keywords-for-agenda + org-todo-keyword-alist-for-agenda + org-tag-alist-for-agenda) - (cond ((eq match t) (setq matcher t)) ((eq match nil) (setq matcher t)) (t (setq matcher (if match (org-make-tags-matcher match) t))))