From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 11106@debbugs.gnu.org
Subject: bug#11106: 24.0.94; enhancement request: have autoload treat faces like it does options
Date: Wed, 28 Mar 2012 14:45:34 -0400 [thread overview]
Message-ID: <jwvty18a80k.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <08A31323DD6D4526AE56E760D45A623F@us.oracle.com> (Drew Adams's message of "Wed, 28 Mar 2012 10:08:26 -0700")
> No special problem for #1. It's not completely clear to me how an
> option is handled, but clearly the defcustom is not simply copied to
> the autoloads file.
Indeed, but it's supposed to be an internal detail (i.e. an optimization).
>> I can't assume it, since you're trying to explain to me why that would
>> be useful.
> No, I was not trying to explain why autoloading faces can be useful in
> general.
Then you were not trying to answer my question (which was not "in
general" but at least in one scenario, by the way).
> As to the assumption of usefulness in general, since that is
> apparently a stumbling block for you: Why, in your opinion, can (real)
> autoloading be useful for a command but not for an option or a face?
Because the user can invoke commands, but not faces (with very few
exceptions).
> IOW, why do we have function `autoload' for functions? Why not just
> use autoload cookies and have them simply copy a function's defun to
> the autoloads file (i.e., not handle functions specially)?
Because a function usually depends on its surrounding code, so copying
its body without its surroundings would not result in a usable function.
Because such autoloaded functions are simply entry points to the package
and it's convenient to be able to auto-load the package without having to
`require' it explicitly.
> The same reason applies to options and functions: real autoloading has a use,
> independent of the use of predefinition.
I don't see how faces generally depend on their surrounding code.
I don't see how the use of a face will often lead to the use of the rest
of the package where it's defined.
[ I stopped here, sorry, too long. ]
Stefan
next prev parent reply other threads:[~2012-03-28 18:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-27 23:57 bug#11106: 24.0.94; enhancement request: have autoload treat faces like it does options Drew Adams
2012-03-28 0:31 ` Drew Adams
2012-03-28 12:41 ` Stefan Monnier
2012-03-28 13:39 ` Drew Adams
2012-03-28 15:50 ` Stefan Monnier
2012-03-28 17:08 ` Drew Adams
2012-03-28 18:45 ` Stefan Monnier [this message]
2016-04-28 14:17 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvty18a80k.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=11106@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.