From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: Is (provide 'foo) at the start good or bad? Date: Fri, 12 Jun 2009 19:10:57 +0900 Message-ID: <87my8dwymm.fsf@uwakimon.sk.tsukuba.ac.jp> References: <21glws7jx732.fsf@gmail.com> <87r5xqw0s8.fsf@uwakimon.sk.tsukuba.ac.jp> <20090612083609.GA2953@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244801375 22577 80.91.229.12 (12 Jun 2009 10:09:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2009 10:09:35 +0000 (UTC) Cc: Leo , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 12 12:09:31 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 1MF3hT-0001J4-Bu for ged-emacs-devel@m.gmane.org; Fri, 12 Jun 2009 12:09:31 +0200 Original-Received: from localhost ([127.0.0.1]:40674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF3hS-0007sY-F9 for ged-emacs-devel@m.gmane.org; Fri, 12 Jun 2009 06:09:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF3gZ-0007LB-Qu for emacs-devel@gnu.org; Fri, 12 Jun 2009 06:08:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF3gV-0007HC-RF for emacs-devel@gnu.org; Fri, 12 Jun 2009 06:08:35 -0400 Original-Received: from [199.232.76.173] (port=53207 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF3gV-0007Gr-J1 for emacs-devel@gnu.org; Fri, 12 Jun 2009 06:08:31 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:35414) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MF3gU-0006LN-QB for emacs-devel@gnu.org; Fri, 12 Jun 2009 06:08:31 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id 625EC1537B8; Fri, 12 Jun 2009 19:08:28 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 6C5F41A27C1; Fri, 12 Jun 2009 19:10:57 +0900 (JST) In-Reply-To: <20090612083609.GA2953@muc.de> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) 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:111450 Archived-At: Alan Mackenzie writes: > Putting `provide' at the end of the file means you've actually loaded > the file when the provision is done. Thus if the load crashes (very > common when you're developing), you don't have a spurious provided > symbol. Dunno about your Emacs, but my Emacs undoes the `provide' if `require' does not complete successfully (assuming that Emacs itself is still alive, of course :-). This doesn't work for a plain `load', but I'm not sure I care, since I rarely use a plain load in a program, and if a `load' crashes interactively, presumably I intend to fix it immediately. YMMV.