Browse Source

ox-icalendar.el (org-icalendar-export-current-agenda): Do not evaluate babel code blocks

* ox-icalendar.el (org-icalendar-export-current-agenda): Do
not evaluate babel code blocks.

Thanks to Nicolas for directions about this.
Bastien Guerry 12 years ago
parent
commit
69ebb265be
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-icalendar.el

+ 2 - 1
lisp/ox-icalendar.el

@@ -897,7 +897,8 @@ The file is stored under the name chosen in
   "Export current agenda view to an iCalendar FILE.
 This function assumes major mode for current buffer is
 `org-agenda-mode'."
-  (let ((org-icalendar-combined-agenda-file file)
+  (let (org-export-babel-evaluate ; Don't evaluate Babel block
+	(org-icalendar-combined-agenda-file file)
 	(marker-list
 	 ;; Collect the markers pointing to entries in the current
 	 ;; agenda buffer.