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 15:38:15 +0200 Message-ID: <87aa2u6ypk.fsf@micropit.couberia.bzh> References: <80limempbs.fsf@somewhere.org> <801uo6uz5l.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333373928 26747 80.91.229.3 (2 Apr 2012 13:38:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2012 13:38:48 +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:38:47 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 1SEhT5-0003Lp-FM for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 15:38:47 +0200 Original-Received: from localhost ([::1]:37799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhT4-0000ah-OZ for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Apr 2012 09:38:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhSu-0000aM-Br for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:38:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEhSo-0002or-6D for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:38:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:42764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEhSn-0002oi-LW for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 09:38:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SEhSl-0003BL-C3 for help-gnu-emacs@gnu.org; Mon, 02 Apr 2012 15:38:27 +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 15:38:27 +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 15:38:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 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:fLPekxJj7HieUbjlE/8/yDOY7oQ= 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:84250 Archived-At: On Mon, Apr 02 2012, Sebastien Vauban wrote: > 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? -- Peter