From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Clarification of eval-after-load [was: Problem mit symlinks, locate-library and load-history] Date: Thu, 11 May 2006 17:19:34 +0000 (GMT) Message-ID: References: <58982.128.165.123.132.1147365967.squirrel@webmail.lanl.gov> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1147367739 13757 80.91.229.2 (11 May 2006 17:15:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 May 2006 17:15:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 11 19:15:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FeEkU-000450-L0 for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 19:14:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeEkT-00086A-QJ for ged-emacs-devel@m.gmane.org; Thu, 11 May 2006 13:14:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeEkH-00085v-Ju for emacs-devel@gnu.org; Thu, 11 May 2006 13:14:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeEkD-00083u-Kh for emacs-devel@gnu.org; Thu, 11 May 2006 13:14:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeEkD-00083m-FT for emacs-devel@gnu.org; Thu, 11 May 2006 13:14:33 -0400 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FeEld-0005VG-NU for emacs-devel@gnu.org; Thu, 11 May 2006 13:16:09 -0400 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id RAA00924; Thu, 11 May 2006 17:19:35 GMT X-Sender: root@acm.acm Original-To: "Stuart D. Herring" In-Reply-To: <58982.128.165.123.132.1147365967.squirrel@webmail.lanl.gov> 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:54272 Archived-At: Hi, Stuart! On Thu, 11 May 2006, Stuart D. Herring wrote: >> (i) "FILE must match exactly" doesn't say what FILE must match, or how it >> must match it, and it is unclear what "exactly" means. Given this >> description, I would not expect the argument "font-lock" to match the >> file name "font-lock.elc", but it does. :-( >This may be a horribly naive question, but why doesn't this mechanism just >use the `provide'd symbols? Is there really much need to use >`eval-after-load' with libraries that are considered so basic (i.e., >automatically loaded) that they don't provide anything? I would think >that things like `emacs-startup-hook' would be sufficient for that. The use of symbols (as opposed to file names) here has only just been introduced into Emacs (sometime in Emacs 22), so there are many millions of (eval-after-load "foo" ....) forms in existing source throughout the Emacs universe. We need to stay compatible with that source. >It just seems eminently clear to me what (eval-after-provide 'dired >(unload-feature 'dired)) intends to do, and how to define it precisely. IWHBB, probably, if it had been done this way back in 4004 B.C. Maybe we can phase out the (eval-after-load "foo" ....) variant by Emacs 24 or so. Maybe, on the other hand, there are users who "need" the flexibility of specifying an exact file name. >Davis -- Alan.