all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Defcustoms, how do users find them?
Date: Tue, 17 Nov 2009 04:17:03 +0100	[thread overview]
Message-ID: <e01d8a50911161917h36826fa7lbb769d263b871927@mail.gmail.com> (raw)
In-Reply-To: <jwvocn1lv6y.fsf-monnier+emacs@gnu.org>

On Tue, Nov 17, 2009 at 3:52 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>>>> Should all defcustoms be autoloaded?
>>> No, please god, no!
>> Maybe you have explained why, but I do not know. Why? Is the cost for
>> autoloading them to high in some way, or?
>
> I don't really care to explain, but I hate autoloaded variables and
> autoloaded defcustoms even more so.


It might be so, but what is the reason not to autload defcustoms in
Emacs ... ? ;-)

There are around 7000 defcustoms in Emacs. That probably make memory
consumption a bit troublesome. But perhaps the doc strings can be
stored on file for those, they do not have to go into the dumped
Emacs. So I guess that is not your reason to hate autoloaded vars.

And the elisp files do not get loaded just because the defcustoms are
autoloaded (as long as you have not set them) - or do they?

Or is it the size of obarray? In a bare Emacs the number of symbols is
around 13 000. In my current Emacs it is around 40 000. Does adding 7
000 (or is it maybe 5000 to add) make a big difference in lookup?

Defcustoms can be complex, but does that matter in the case of
autoloading? It is only defcustoms that are at their default values
that will be in an autoloaded state.


I would be a bit surprised if there was strong reasons to autoload
vars that are not defcustoms, but defcustoms are a bit different. They
are meant to be used and found by the users. I would like to see
something like "apropos-options".

If it is really annoying to autoload defcustoms then maybe autoloading
just defgroups would be a possibility? (Or are they already autoloaded
in some way?)




  reply	other threads:[~2009-11-17  3:17 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 21:11 Defcustoms, how do users find them? Lennart Borgman
2009-11-16 23:05 ` Stefan Monnier
2009-11-16 23:49   ` Lennart Borgman
2009-11-17  2:52     ` Stefan Monnier
2009-11-17  3:17       ` Lennart Borgman [this message]
2009-11-17  3:38         ` Stefan Monnier
2009-11-17  3:41           ` Lennart Borgman
2009-11-17 14:22             ` Lennart Borgman
2009-11-17 14:45               ` Lennart Borgman
2009-11-17 23:13                 ` Lennart Borgman
2009-11-18  3:26                   ` Stefan Monnier
2009-11-18  3:31                     ` Lennart Borgman
2009-11-18 14:34                       ` Stefan Monnier
2009-11-26 12:51                         ` Lennart Borgman
2009-11-26 16:42                           ` Lennart Borgman
2009-11-26 17:30                             ` Stefan Monnier
2009-11-26 17:36                               ` Lennart Borgman
2009-11-27  2:09                                 ` Stefan Monnier
2009-11-27  2:22                                   ` Lennart Borgman
2009-11-26 16:45                           ` Stefan Monnier
2009-11-17 10:03 ` Juri Linkov
2009-11-17 17:24   ` Glenn Morris
2009-11-18  9:57     ` Juri Linkov
2009-11-18 14:37       ` Stefan Monnier
2009-11-17 17:49   ` Drew Adams
2009-11-17 17:56     ` Lennart Borgman

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=e01d8a50911161917h36826fa7lbb769d263b871927@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.