unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Is (provide 'foo) at the start good or bad?
@ 2009-06-11 12:56 William Xu
  2009-06-11 17:01 ` Leo
  2009-06-12 21:16 ` Stefan Monnier
  0 siblings, 2 replies; 16+ messages in thread
From: William Xu @ 2009-06-11 12:56 UTC (permalink / raw)
  To: emacs-devel

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





^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2009-06-16  3:47 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-11 12:56 Is (provide 'foo) at the start good or bad? William Xu
2009-06-11 17:01 ` Leo
2009-06-12  4:09   ` Stephen J. Turnbull
2009-06-12  5:01     ` William Xu
2009-06-12 10:02       ` Thien-Thi Nguyen
2009-06-12 10:26       ` Stephen J. Turnbull
2009-06-12 15:15         ` William Xu
2009-06-12  8:36     ` Alan Mackenzie
2009-06-12 10:10       ` Stephen J. Turnbull
2009-06-12 23:00     ` Davis Herring
2009-06-13 12:19       ` Stephen J. Turnbull
2009-06-14 19:30         ` Davis Herring
2009-06-15  3:04           ` Stephen J. Turnbull
2009-06-15 18:20             ` Davis Herring
2009-06-16  3:47               ` Stephen J. Turnbull
2009-06-12 21:16 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).