From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.emacs.bugs Subject: bug#3756: eval-after-load 'ffap vs provide at start of file Date: Wed, 08 Jul 2009 08:02:50 +1000 Message-ID: <871vosxib9.fsf@blah.blah> References: <87ljn4x8dj.fsf@blah.blah> Reply-To: Kevin Ryde , 3756@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1247005119 1209 80.91.229.12 (7 Jul 2009 22:18:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Jul 2009 22:18:39 +0000 (UTC) Cc: 3756@emacsbugs.donarmstrong.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 00:18:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MOIze-0003B3-1x for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jul 2009 00:18:30 +0200 Original-Received: from localhost ([127.0.0.1]:42659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOIzd-0003kX-9T for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jul 2009 18:18:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOIyk-0003Ht-L1 for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 18:17:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOIyg-0003G3-3M for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 18:17:33 -0400 Original-Received: from [199.232.76.173] (port=40950 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOIyf-0003Fi-GF for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 18:17:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57811) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MOIye-0007hv-Sx for bug-gnu-emacs@gnu.org; Tue, 07 Jul 2009 18:17:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n67MHQqw001208; Tue, 7 Jul 2009 15:17:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n67MA4UT032238; Tue, 7 Jul 2009 15:10:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kevin Ryde Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 07 Jul 2009 22:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3756 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3756-submit@emacsbugs.donarmstrong.com id=B3756.124700418530578 (code B ref 3756); Tue, 07 Jul 2009 22:10:04 +0000 Original-Received: (at 3756) by emacsbugs.donarmstrong.com; 7 Jul 2009 22:03:05 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mailout1.pacific.net.au (mailout1-1.pacific.net.au [61.8.2.208]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n67M2wDp030562 for <3756@emacsbugs.donarmstrong.com>; Tue, 7 Jul 2009 15:03:00 -0700 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 8557C4FCC7B; Wed, 8 Jul 2009 08:02:56 +1000 (EST) Original-Received: from blah.blah (ppp208C.dyn.pacific.net.au [61.8.32.140]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id CF6682740B; Wed, 8 Jul 2009 08:02:55 +1000 (EST) Original-Received: from gg by blah.blah with local (Exim 4.69) (envelope-from ) id 1MOIkU-0001Cy-Pj; Wed, 08 Jul 2009 08:02:50 +1000 In-Reply-To: (Glenn Morris's message of "Sat, 04 Jul 2009 22:18:18 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 07 Jul 2009 18:17:33 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:29235 Archived-At: --=-=-= Glenn Morris writes: > > http://lists.gnu.org/archive/html/emacs-devel/2009-06/msg00202.html I didn't see that. Doing provide when a feature is not yet ready for use would seem fairly dubious though, in normal circumstances. > I'll mention something about this in the doc of eval-after-load. provide could cross-reference eval-after-load, if that helped remind to take care with what point it's called, perhaps per below. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=loading.texi.provide-xref-eval-after-load.diff *** loading.texi 17 Mar 2009 10:34:05 +1100 1.10 --- loading.texi 08 Jul 2009 07:40:12 +1000 *************** *** 733,742 **** associated with @var{feature} are or will be available for other Lisp programs. ! The direct effect of calling @code{provide} is to add @var{feature} to ! the front of the list @code{features} if it is not already in the list. ! The argument @var{feature} must be a symbol. @code{provide} returns ! @var{feature}. If provided, @var{subfeatures} should be a list of symbols indicating a set of specific subfeatures provided by this version of --- 733,743 ---- associated with @var{feature} are or will be available for other Lisp programs. ! The direct effect of calling @code{provide} is if not already in ! @var{features} then to add @var{feature} to the front of that list and ! call any @code{eval-after-load} code waiting for it (@pxref{Hooks for ! Loading}). The argument @var{feature} must be a symbol. ! @code{provide} returns @var{feature}. If provided, @var{subfeatures} should be a list of symbols indicating a set of specific subfeatures provided by this version of --=-=-=--