unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
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)	[thread overview]
Message-ID: <Pine.LNX.3.96.1060511171042.368B-100000@acm.acm> (raw)
In-Reply-To: <58982.128.165.123.132.1147365967.squirrel@webmail.lanl.gov>

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.

  reply	other threads:[~2006-05-11 17:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10 21:11 Clarification of eval-after-load [was: Problem mit symlinks, locate-library and load-history] Alan Mackenzie
2006-05-11 16:46 ` Stuart D. Herring
2006-05-11 17:19   ` Alan Mackenzie [this message]
2006-05-11 17:46     ` Stuart D. Herring
2006-05-11 21:44       ` Alan Mackenzie
2006-05-12  4:15       ` Richard Stallman
2006-05-14 11:07 ` FIXED!! " Alan Mackenzie
2006-05-15  5:13   ` Richard Stallman
2006-05-21  9:39     ` Alan Mackenzie
2006-05-22  2:39       ` Richard Stallman
2006-05-23 17:21         ` Alan Mackenzie
2006-05-23 17:51           ` Andreas Schwab
2006-05-23 20:10             ` Alan Mackenzie
2006-05-23 20:58             ` FIXED!! Re: Clarification of eval-after-load Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.96.1060511171042.368B-100000@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).