Use org-icalendar-verify-function only if non-nil

Patch by Andrew Lawson.
This commit is contained in:
Carsten Dominik 2009-11-05 08:08:46 +01:00
parent e946c7d239
commit 3e84540bfa
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2009-11-05 Carsten Dominik <carsten.dominik@gmail.com>
* org-icalendar.el (org-print-icalendar-entries): Use
org-icalendar-verify-function only if non-nil.
* org.el (org-refile): Refile to clock only if the prefix arg is
2.
(org-sparse-tree): Fix docstring to be in line with prompt.

View File

@ -280,7 +280,7 @@ When COMBINE is non nil, add the category to each line."
(while (re-search-forward re1 nil t)
(catch :skip
(org-agenda-skip)
(when (boundp 'org-icalendar-verify-function)
(when org-icalendar-verify-function
(unless (funcall org-icalendar-verify-function)
(outline-next-heading)
(backward-char 1)
@ -403,7 +403,7 @@ END:VEVENT\n"
(while (re-search-forward org-todo-line-regexp nil t)
(catch :skip
(org-agenda-skip)
(when (boundp 'org-icalendar-verify-function)
(when org-icalendar-verify-function
(unless (save-match-data
(funcall org-icalendar-verify-function))
(outline-next-heading)