all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: emacs-devel@gnu.org
Subject: Autoloading (was: bug#5752: 23.1.94; sgml-lexical-context in post-command-hook)
Date: Tue, 23 Mar 2010 10:29:25 -0400	[thread overview]
Message-ID: <jwvvdcnyv58.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <qtys7wyoi.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 22 Mar 2010 22:37:33 -0400")

> Fixed in emacs-23 branch by autoloading sgml-lexical-context in
> flyspell.el.

BTW, such manual autoloads are slightly problematic since they fail to
provide docstrings (and arglists).

I'm not sure how best to resolve such issues, but one solution I've been
considering (for quite a while yet, but have never found time to dig
into it) is to introduce a new form (require-autoload <feature>) which
would behave as follows:
- when interpreting, it's just a require (we can't do much better).
- when compiling, it causes the package to be loaded at compile time but
  in the .elc it's replaced by a bunch of autoloads (computed by the
  byte-compiler based on the intersection of the set of functions
  defined by <feature> and the set of functions called from the .elc
  file).


-- Stefan




  reply	other threads:[~2010-03-23 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22 15:36 bug#5752: 23.1.94; sgml-lexical-context in post-command-hook Jay Berkenbilt
2010-03-23  2:37 ` Glenn Morris
2010-03-23 14:29   ` Stefan Monnier [this message]
2010-03-24  3:38     ` Autoloading Glenn Morris
2010-03-24  3:41       ` Autoloading Stefan Monnier
2010-03-24  3:56         ` Autoloading Glenn Morris
2010-07-08 17:41     ` Autoloading (was: bug#5752: 23.1.94; sgml-lexical-context in post-command-hook) Agustin Martin

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=jwvvdcnyv58.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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 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.