emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] Make sure `flet' is fbound when executing `org-write-a


From: David Maus
Subject: [Orgmode] [PATCH] Make sure `flet' is fbound when executing `org-write-agenda'.
Date: Sun, 27 Jun 2010 16:30:49 +0200

* org-agenda.el (org-write-agenda): Make sure `flet' is fbound
at runtime.
---
 lisp/org-agenda.el |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 8035add..957bbf2 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -2464,6 +2464,8 @@ higher priority settings."
                beg (or (next-single-property-change beg 'org-filtered)
                        (point-max))))
             (run-hooks 'org-agenda-before-write-hook)
+            ;; make sure flet is fbound at runtime
+            (unless (fboundp 'flet) (require 'cl))
             (cond
              ((org-bound-and-true-p org-mobile-creating-agendas)
               (org-mobile-write-agenda-for-mobile file))
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]