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: Michael Albinus
Subject: Re: How to avoid loading file when just testing if function is bound?
Date: Mon, 02 Apr 2012 15:48:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Peter Münster <pmlists@free.fr> writes:

>> Adjusted code block:
>>
>>   (if (and (featurep 'org-clock)
>>            (org-clocking-p)
>>         (y-or-n-p "You are currently clocking time, clock out? "))
>>       (org-clock-out)
>>     t))
>>
>> When reading your proposition, I thought it should be it... but no. It still
>> loads Org whenever quitting Emacs (before doing anything).
>>
>> Any other idea?
>
> On my system, (featurep 'org-clock) does not load anything. So I think,
> the problem must be somewhere else. Did you try with edebug?

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?

Best regards, Michael.



reply via email to

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