From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Le Wang Newsgroups: gmane.emacs.bugs Subject: bug#10982: documentation bug eval-after-load Date: Sat, 10 Mar 2012 01:33:30 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044287a681821304bad2ca13 X-Trace: dough.gmane.org 1331314537 24164 80.91.229.3 (9 Mar 2012 17:35:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 17:35:37 +0000 (UTC) To: 10982@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 18:35:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1S63j3-00010a-CF for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2012 18:35:33 +0100 Original-Received: from localhost ([::1]:45711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63j2-0000wT-PS for geb-bug-gnu-emacs@m.gmane.org; Fri, 09 Mar 2012 12:35:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63ie-0000lA-5d for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:35:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S63ic-0006nI-2n for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:35:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63ib-0006mT-TA for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:35:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S63jV-0000tb-Sw for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Le Wang Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Mar 2012 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10982 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13313145103379 (code B ref -1); Fri, 09 Mar 2012 17:36:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Mar 2012 17:35:10 +0000 Original-Received: from localhost ([127.0.0.1]:40802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S63if-0000sR-VI for submit@debbugs.gnu.org; Fri, 09 Mar 2012 12:35:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58471) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S63iS-0000rl-WF for submit@debbugs.gnu.org; Fri, 09 Mar 2012 12:35:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S63hB-0006Bm-9u for submit@debbugs.gnu.org; Fri, 09 Mar 2012 12:34:00 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:40823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63hB-0006Bi-4M for submit@debbugs.gnu.org; Fri, 09 Mar 2012 12:33:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63h9-0000TC-7E for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:33:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S63h7-0006BO-1P for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:33:34 -0500 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:56437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63h6-0006B9-Ou for bug-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:33:32 -0500 Original-Received: by werj55 with SMTP id j55so1590967wer.0 for ; Fri, 09 Mar 2012 09:33:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=7sw5qvNLXRoUAwXz91WFQ1OvG0dLPkHQ8R9XPt0j6zk=; b=XnZYex+7+q34aHW2Uejc/u2qm1gSIxQz+LIAsYFQ2HcIL4mbaUdNMHDAANYhhyhtxR btPvYvXIilapN+nf3ZJ6A7uFXXqqc2sMLhbnTZ7ethiidc3RKwuUI2DsRtv9tM0AoZ1D GntWuKxF7KPSlGcuP8CycJuEx1DMoPlGLSgGXrp7GPHYVLEw4g7edpX4KpM8anNHfhZW zbqFP35A10yIW6X1juGwawaVsf8Y55YBhLmX50sHTg0wsJ/FLLNq08k1RiJlnVDcUfKo yQukpIZd53FHD2iOu5rjhUlqowxvpB70Cn6ngvZPGoXgnLOOQVSph/Ds6ABazIfS1IxX SO+A== Original-Received: by 10.180.98.8 with SMTP id ee8mr6762291wib.14.1331314410226; Fri, 09 Mar 2012 09:33:30 -0800 (PST) Original-Received: by 10.216.29.130 with HTTP; Fri, 9 Mar 2012 09:33:30 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57592 Archived-At: --f46d044287a681821304bad2ca13 Content-Type: text/plain; charset=ISO-8859-1 Hi on this page: http://www.gnu.org/software/emacs/manual/html_node/elisp/Hooks-for-Loading.html#Hooks-for-Loading > library can also be a feature (i.e. a symbol), in which case form is evaluated when (provide library) is called. Then on this page 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. This means that the facilities associated with feature are or will be available for other Lisp programs. So two issue come up: should symbol even be supported by `eval-after-load` if the feature might not be finished loading? If it has to be kept for backward compatibility, documentation should explicitly say don't use symbol because the feature might not be finished loading. -- Le --f46d044287a681821304bad2ca13 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi on this page:

http://www.gnu.o= rg/software/emacs/manual/html_node/elisp/Hooks-for-Loading.html#Hooks-for-L= oading

> library can also be a feature (i.e. a symbol), in which= case form is evaluated when (provide library<= code>) is called.

Then on this page http://www.gnu.org/software= /emacs/manual/html_node/elisp/Named-Features.html

> This func= tion announces that feature is now loaded, or being loaded, into the current Emacs session. This means that the facilities associated with feature are or will be available for other Lisp programs.

So two issue come up:=A0 should symbol even b= e supported by `eval-after-load` if the feature might not be finished loadi= ng?=A0 If it has to be kept for backward compatibility, documentation shoul= d explicitly say don't use symbol because the feature might not be fini= shed loading.

--
Le
--f46d044287a681821304bad2ca13--