On Mon, Feb 27, 2012 at 9:25 PM, Juanma Barranquero <lekktu@gmail.com> wrote:
On Mon, Feb 27, 2012 at 14:08, Le Wang <l26wang@gmail.com> 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"

 
    Juanma



--
Le