From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: How to avoid loading file when just testing if function is bound? Date: Mon, 02 Apr 2012 15:48:49 +0200 Message-ID: <8762di2qim.fsf@gmx.de> References: <80limempbs.fsf@somewhere.org> <801uo6uz5l.fsf@somewhere.org> <87aa2u6ypk.fsf@micropit.couberia.bzh> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333374554 32230 80.91.229.3 (2 Apr 2012 13:49:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 13:49:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 02 15:49:10 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SEhd6-0002IM-4V for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 15:49:08 +0200 Original-Received: from localhost ([::1]:45975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhd5-0005gQ-D9 for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 09:49:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhct-0005fY-D1 for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:49:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEhcr-0005U6-D7 for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:48:54 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:58813) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SEhcr-0005TE-2z for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:48:53 -0400 Original-Received: (qmail invoked by alias); 02 Apr 2012 13:48:50 -0000 Original-Received: from p57BB9647.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.71] by mail.gmx.net (mp037) with SMTP; 02 Apr 2012 15:48:50 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18+cjUvidQ+Si21dYmzzA+8DX7KcqA63r8F5nnNfn v8h5lXncGHzB/I User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84251 Archived-At: Peter M=C3=BCnster 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 s= till >> 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.