소스 검색

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 년 전
부모
커밋
69ebb265be
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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.
   "Export current agenda view to an iCalendar FILE.
 This function assumes major mode for current buffer is
 This function assumes major mode for current buffer is
 `org-agenda-mode'."
 `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
 	(marker-list
 	 ;; Collect the markers pointing to entries in the current
 	 ;; Collect the markers pointing to entries in the current
 	 ;; agenda buffer.
 	 ;; agenda buffer.