emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: [PATCH] Make sure `flet' is fbound when executing `org-wri


From: Štěpán Němec
Subject: [Orgmode] Re: [PATCH] Make sure `flet' is fbound when executing `org-write-agenda'.
Date: Sun, 27 Jun 2010 17:00:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

David Maus <address@hidden> 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



reply via email to

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