From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.devel Subject: Is (provide 'foo) at the start good or bad? Date: Thu, 11 Jun 2009 15:56:01 +0300 Organization: the Church of Emacs Message-ID: <21glws7jx732.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1244735659 16801 80.91.229.12 (11 Jun 2009 15:54:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Jun 2009 15:54:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 11 17:54:16 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 1MEmbV-0003Gu-9I for ged-emacs-devel@m.gmane.org; Thu, 11 Jun 2009 17:54:15 +0200 Original-Received: from localhost ([127.0.0.1]:36816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEmbS-00079f-5O for ged-emacs-devel@m.gmane.org; Thu, 11 Jun 2009 11:54:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEmbN-00077P-QI for emacs-devel@gnu.org; Thu, 11 Jun 2009 11:54:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEmbI-0006tI-UG for emacs-devel@gnu.org; Thu, 11 Jun 2009 11:54:05 -0400 Original-Received: from [199.232.76.173] (port=36388 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEmbI-0006t0-OR for emacs-devel@gnu.org; Thu, 11 Jun 2009 11:54:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:39726 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 1MEmbG-0004Is-Uj for emacs-devel@gnu.org; Thu, 11 Jun 2009 11:54:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MEmbB-0005Fi-Pj for emacs-devel@gnu.org; Thu, 11 Jun 2009 15:53:53 +0000 Original-Received: from 62.237.32.162 ([62.237.32.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 15:53:53 +0000 Original-Received: from william.xwl by 62.237.32.162 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 11 Jun 2009 15:53:53 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 62.237.32.162 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (windows-nt) Cancel-Lock: sha1:l1y1aoailotyJiPfqwKxVlVl+XI= 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:111436 Archived-At: 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? -- William http://xwl.appspot.com