From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: when to call provide, first or last? Date: Mon, 27 Feb 2012 14:44:51 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330350351 16338 80.91.229.3 (27 Feb 2012 13:45:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 13:45:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Le Wang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 27 14:45:50 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S20ti-0005Iz-2g for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2012 14:45:50 +0100 Original-Received: from localhost ([::1]:37997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S20th-00046q-NR for ged-emacs-devel@m.gmane.org; Mon, 27 Feb 2012 08:45:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S20ta-00044P-28 for emacs-devel@gnu.org; Mon, 27 Feb 2012 08:45:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S20tQ-0006yi-Nq for emacs-devel@gnu.org; Mon, 27 Feb 2012 08:45:41 -0500 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:36570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S20tQ-0006yc-HC for emacs-devel@gnu.org; Mon, 27 Feb 2012 08:45:32 -0500 Original-Received: by dadv6 with SMTP id v6so5305668dad.0 for ; Mon, 27 Feb 2012 05:45:31 -0800 (PST) Received-SPF: pass (google.com: domain of lekktu@gmail.com designates 10.68.222.72 as permitted sender) client-ip=10.68.222.72; Authentication-Results: mr.google.com; spf=pass (google.com: domain of lekktu@gmail.com designates 10.68.222.72 as permitted sender) smtp.mail=lekktu@gmail.com; dkim=pass header.i=lekktu@gmail.com Original-Received: from mr.google.com ([10.68.222.72]) by 10.68.222.72 with SMTP id qk8mr40900794pbc.1.1330350331409 (num_hops = 1); Mon, 27 Feb 2012 05:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=rvYuYh3bNvo4wiWLU5NPEpmAwMTnCpKV9l7R0o2F5eQ=; b=AQRciuLCsLMjrlfleF+aQdwtD4wv0z4fCMp6RwcNrHMAArBHM15hRF5uR2CdKIzyDl qFg0p3MPUlr9snpP5n283HVa5Y0KFp6zYH/Ru73hQHREUJw/yxA1+fyTFwCBHUrwTtDb egqQXimu/7y2ty/PXbbYR3YdPxawjEgWOXozk= Original-Received: by 10.68.222.72 with SMTP id qk8mr34749047pbc.1.1330350331182; Mon, 27 Feb 2012 05:45:31 -0800 (PST) Original-Received: by 10.142.241.5 with HTTP; Mon, 27 Feb 2012 05:44:51 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148816 Archived-At: On Mon, Feb 27, 2012 at 14:32, Le Wang wrote: > So what?=C2=A0 You have broken code.=C2=A0 Bad things happened, and Emacs= is in a bad > state either way. No, sorry. One package failing to load does not necessarily leave "Emacs in a bad state", at least not in theory. That's why ignore-errors, condition-case and (require x nil t) exist, for example. Your way makes a bit more difficult to detect the problem, and a bit more likely that it will be missed and subsequent requires fail without warning. But, hey, it's your code, put it whenever you think it's right. > This function announces that feature is now loaded, or being loaded, into= the current Emacs session. > > NOTE: "or being loaded" Right. And using your method, you can have a feature that does not mean that the code is loaded or being loaded. =C2=A0 =C2=A0 Juanma