From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.emacs.help Subject: Re: How to avoid loading file when just testing if function is bound? Date: Mon, 02 Apr 2012 16:02:19 +0200 Message-ID: <87y5qe5j10.fsf@micropit.couberia.bzh> References: <80limempbs.fsf@somewhere.org> <801uo6uz5l.fsf@somewhere.org> <87aa2u6ypk.fsf@micropit.couberia.bzh> <8762di2qim.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333375381 6893 80.91.229.3 (2 Apr 2012 14:03:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 14:03:01 +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 16:03:00 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 1SEhqV-0003fa-Vc for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 16:03:00 +0200 Original-Received: from localhost ([::1]:55828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhqV-0003qw-Bv for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 10:02:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhqL-0003qZ-MI for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 10:02:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEhqB-0001qt-P5 for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 10:02:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhqB-0001qX-IR for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 10:02:39 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SEhq7-0003NH-Hy for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 16:02:35 +0200 Original-Received: from arennes-359-1-222-46.w2-2.abo.wanadoo.fr ([2.2.173.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Apr 2012 16:02:35 +0200 Original-Received: from pmlists by arennes-359-1-222-46.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Apr 2012 16:02:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: arennes-359-1-222-46.w2-2.abo.wanadoo.fr User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:gFwkfCo4Rk5RAsjRtx3JTYAOsPo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:84252 Archived-At: 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