unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* autoload cookies for defcustoms
@ 2010-01-23 18:31 Drew Adams
  2010-01-23 20:24 ` Lennart Borgman
  2010-01-25  2:56 ` Stefan Monnier
  0 siblings, 2 replies; 18+ messages in thread
From: Drew Adams @ 2010-01-23 18:31 UTC (permalink / raw)
  To: 'Emacs-Devel devel'

Just curious. Is there a policy, for the Lisp code distributed with Emacs, about
using autoload cookies for defcustoms? If so, what is it?

Looking through the code, it seems that most defcustoms are not autoloaded, but
some are. And in the same library some might be and others not.

Some use `purecopy' for their values, so I guess it makes sense to autoload
those. But it's not clear which came first, the cookie or the decision to use
`purecopy'. 

If, in some library, only the options that use `purecopy' are autoloaded,
doesn't that give a misleading impression to users of `C-h v'? They see only the
`purecopy' ones (before loading), which aren't necessarily the most important to
know about.

IOW, are there two conflicting criteria for autoloading an option: (1) its
importance or frequency of use or the need for users to know about it before
loading vs (2) the purely technical (implementation) criterion of its use of
`purecopy'. Shouldn't the only criterion be use- and user-centered (i.e., #1)?

Some options that do not use `purecopy' are nevertheless autoloaded. And some
that do use `purecopy' do not have an autoload cookie - e.g.,
`epa-file-name-regexp', `automount-dir-prefix', `directory-free-space-program',
`search-whitespace-regexp', `jka-compr-load-suffixes', `rmail-file-name',
`site-run-file', `initial-scratch-message', `vc-directory-exclusion-list',
`adaptive-fill-regexp', `adaptive-fill-first-line-regexp'. (Is that wrong, or
are all of those libraries always preloaded?)

If there is no general policy, and this is decided individually for each
defcustom, then just what considerations affect the judgment? And why is there
such variability among libraries?

The same question could apply to command definitions, but there there doesn't
seem to be such a difference among libraries for them. Most commands seem to
have autoload cookies (just as most options do not), and I'm guessing that those
commands that do not are considered to be less often used.





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-08-31  8:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-23 18:31 autoload cookies for defcustoms Drew Adams
2010-01-23 20:24 ` Lennart Borgman
2010-01-23 20:38   ` Drew Adams
2010-01-25  2:56 ` Stefan Monnier
2010-01-25  5:13   ` Drew Adams
2010-01-25 15:31     ` Stefan Monnier
2010-01-25 20:36       ` Drew Adams
2010-01-26  2:05         ` Stefan Monnier
2010-01-26  3:12           ` Drew Adams
2010-01-26 11:51         ` Juanma Barranquero
2010-08-29  9:46   ` Wojciech Meyer
2010-08-29 19:11     ` Glenn Morris
2010-08-30 12:30       ` Wojciech Meyer
2010-08-30 15:54         ` Stefan Monnier
2010-08-30 23:20         ` Glenn Morris
2010-08-30 23:52           ` Wojciech Meyer
2010-08-31  3:32           ` Andy Wingo
2010-08-31  8:04             ` Stefan Monnier

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).