From 768d88acc3d1572ffcb3e879d7e65c763af573b9 Mon Sep 17 00:00:00 2001 From: David Maus Date: Thu, 19 Aug 2010 21:52:18 +0200 Subject: [PATCH] Move require statements to proper place in evaluated lisp expression * org-agenda.el (org-write-agenda): Move require statements to proper place in evaluated lisp expression. --- lisp/org-agenda.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 15024e835..7d37187cf 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2503,9 +2503,6 @@ higher priority settings." (interactive "FWrite agenda to file: \nP") (if (not (file-writable-p file)) (error "Cannot write agenda to file %s" file)) - (cond - ((string-match "\\.html?\\'" file) (require 'htmlize)) - ((string-match "\\.ps\\'" file) (require 'ps-print))) (org-let (if nosettings nil org-agenda-exporter-settings) '(save-excursion (save-window-excursion @@ -2527,6 +2524,7 @@ higher priority settings." ((org-bound-and-true-p org-mobile-creating-agendas) (org-mobile-write-agenda-for-mobile file)) ((string-match "\\.html?\\'" file) + (require 'htmlize) (set-buffer (htmlize-buffer (current-buffer))) (when (and org-agenda-export-html-style -- 2.11.4.GIT