From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Is (provide 'foo) at the start good or bad? Date: Thu, 11 Jun 2009 18:01:55 +0100 Organization: University of Cambridge Message-ID: References: <21glws7jx732.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244739769 31560 80.91.229.12 (11 Jun 2009 17:02:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 17:02:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 11 19:02:44 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MEnfQ-0000LK-N9 for ged-emacs-devel@m.gmane.org; Thu, 11 Jun 2009 19:02:21 +0200 Original-Received: from localhost ([127.0.0.1]:34291 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEnfP-0003Zw-SG for ged-emacs-devel@m.gmane.org; Thu, 11 Jun 2009 13:02:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEnfM-0003Zp-AE for emacs-devel@gnu.org; Thu, 11 Jun 2009 13:02:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEnfI-0003Zc-Ui for emacs-devel@gnu.org; Thu, 11 Jun 2009 13:02:16 -0400 Original-Received: from [199.232.76.173] (port=42896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEnfI-0003ZZ-Ny for emacs-devel@gnu.org; Thu, 11 Jun 2009 13:02:12 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36268 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MEnfI-0007rZ-1n for emacs-devel@gnu.org; Thu, 11 Jun 2009 13:02:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MEnfD-0008Tg-Id for emacs-devel@gnu.org; Thu, 11 Jun 2009 17:02:07 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 17:02:07 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 17:02:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:+wrSs6ZL7dCoixy8aGotYlV0pHM= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111438 Archived-At: On 2009-06-11 13:56 +0100, William Xu wrote: > Hi, > > I got a problem while configuring ffap. I have this in my .emacs: > > (eval-after-load 'ffap > '(progn > (setq ffap-c-path (cons "../inc" ffap-c-path)))) > > And when I M-x ffap, it will complain that ffap-c-path is not defined. > I figured it out it is due to (provide 'ffap) at the very start of > ffap.el. The easist solution is changing it to: > > (eval-after-load "ffap" > ... Then it will depend on loading of the file, not just the > feature. But I always like to depend on the feature(at least typing > one less char). So what is the benefit of providing it at the very > start? I have run into this problem before. I prefer putting provide at the end of the file. -- Leo's Emacs uptime: 1 day, 3 hours, 18 minutes, 37 seconds