From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: 5529@debbugs.gnu.org
Subject: bug#5529: `uniquify-buffer-name-style' doesn't exist
Date: Sun, 07 Feb 2010 20:49:27 -0500 [thread overview]
Message-ID: <jwv3a1c33kp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20100206204400.GC2157@muc.de> (Alan Mackenzie's message of "Sat, 6 Feb 2010 20:44:00 +0000")
>> > Seems to me that what's wanted is an autoload for variables, just like
>> > we've got for functions/macros. Or have we got this already? Then when
>> > anybody tries to access this variable in any way, uniquify.elc would get
>> > loaded.
>> We can autoload defcustoms, but there are so many so we probably do
>> not want that.
> Why? The "eight megabytes and continually swapping" joke is several
> decades out of date.
Actually, the problem is not just its size, it's that the
current ;;;###autoload behavior for variables is not quite as clean as
it is for functions: it doesn't auto-load the package when accessing the
var, but instead it preloads just the variable, thus changing the order
of execution between the variable that are "autoloaded" and those that
aren't, thus leading to all kinds of bugs and problems.
What Lennart has been working on is a real autoloading mechanism,
whereby the package will be loaded when the user asks to customize
this variable.
>> Therefore Stefan instead had the idea that we can make them available
>> for completion, for example when you do "M-x customize-option". If
>> choosen they will then be loaded. I started to work a bit on that, but
>> it is not finished. (See the thread I pointed to.)
> What does "make them available" mean? Create a separate obarray for
> them, perhaps?
The technical means by which the autoloading will take place is not
finalized yet. Lennart has something implemented using some technique,
but IIRC it was still using too much memory for my taste.
Stefan
next prev parent reply other threads:[~2010-02-08 1:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 15:18 bug#5529: `uniquify-buffer-name-style' doesn't exist Alan Mackenzie
2010-02-05 15:56 ` Lennart Borgman
2010-02-05 18:17 ` Alan Mackenzie
2010-02-05 18:18 ` Lennart Borgman
2010-02-06 18:17 ` Alan Mackenzie
2010-02-06 18:18 ` Lennart Borgman
2010-02-06 18:37 ` Drew Adams
2010-02-06 20:44 ` Alan Mackenzie
2010-02-08 1:49 ` Stefan Monnier [this message]
2010-02-05 20:10 ` Stefan Monnier
2010-02-05 17:06 ` Glenn Morris
2010-02-05 20:01 ` Alan Mackenzie
2010-02-08 7:23 ` Glenn Morris
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=jwv3a1c33kp.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=5529@debbugs.gnu.org \
--cc=acm@muc.de \
/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).