help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to avoid loading file when just testing if function is bound?


From: Peter Münster
Subject: Re: How to avoid loading file when just testing if function is bound?
Date: Mon, 02 Apr 2012 16:02:19 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

On Mon, Apr 02 2012, Michael Albinus wrote:

>>>   (if (and (featurep 'org-clock)
>>>            (org-clocking-p)
>>>        (y-or-n-p "You are currently clocking time, clock out? "))
>>>       (org-clock-out)
>>>     t))
>
> Maybe the mere existence of (org-clocking-p) in the if-clause causes the
> autoload. What happens, if you use (funcall 'org-clocking-p) instead?

I've done `eval-region' on the whole if-clause, and org-clock was not
loaded.

-- 
           Peter




reply via email to

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