David Maus <dm...@ictsoc.de> writes: > * 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))
This, while being an obvious (and correct) solution, is unfortunately not suitable for Emacs core. You're not supposed to require the cl package at runtime (you even get a compiler warning if you do). Štěpán _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode