1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2025-01-05 11:45:52 +00:00

Fix icalendar export bug with verification function.

This commit is contained in:
Carsten Dominik 2009-11-05 23:46:39 +01:00
parent 0cb9bf9222
commit b49a735533
2 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2009-11-05 Carsten Dominik <carsten.dominik@gmail.com>
* org-icalendar.el (org-print-icalendar-entries): Save match data
around call to verify function.
(org-print-icalendar-entries): Add a call to the verification
function.
* org.el (org-speedbar-set-agenda-restriction): Remove unnecessary
save-restrivtion' form.

View File

@ -281,7 +281,7 @@ When COMBINE is non nil, add the category to each line."
(catch :skip
(org-agenda-skip)
(when org-icalendar-verify-function
(unless (funcall org-icalendar-verify-function)
(unless (save-match-data (funcall org-icalendar-verify-function))
(outline-next-heading)
(backward-char 1)
(throw :skip nil)))
@ -387,6 +387,11 @@ END:VEVENT\n"
(while (re-search-forward "^&?%%(" nil t)
(catch :skip
(org-agenda-skip)
(when org-icalendar-verify-function
(unless (save-match-data (funcall org-icalendar-verify-function))
(outline-next-heading)
(backward-char 1)
(throw :skip nil)))
(setq b (match-beginning 0))
(goto-char (1- (match-end 0)))
(forward-sexp 1)