[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: when to call provide, first or last?

From: Le Wang
Subject: Re: when to call provide, first or last?
Date: Mon, 27 Feb 2012 21:32:28 +0800

On Mon, Feb 27, 2012 at 9:25 PM, Juanma Barranquero <address@hidden> wrote:
On Mon, Feb 27, 2012 at 14:08, Le Wang <address@hidden> wrote:

>> What happens next?  You have broken code, and you're either looking at the
>> backtrace or you get a ding.  How is this a problem?

The problem is that you can miss the error, and also that (require
'my-feature) will "work" afterwards.

So what?  You have broken code.  Bad things happened, and Emacs is in a bad state either way.

Are you going to fix the bug and try the require again?  If so, then you probably know enough to know that you should use load now.  If not you're screwed already.  Go file a bug.

It's better to put it at the end and be sure that having the feature
means that everything went OK.

That's not what provide means.  From the manual, http://www.gnu.org/software/emacs/manual/html_node/elisp/Named-Features.html:

This function announces that feature is now loaded, or being loaded, into the current Emacs session.

NOTE: "or being loaded"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]