unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chetan Pandya <pandyacus@sbcglobal.net>
To: Juri Linkov <juri@jurta.org>,
	Lennart Borgman <lennart.borgman@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Autoloaded defcustoms
Date: Tue, 6 Jan 2009 10:18:29 -0800 (PST)	[thread overview]
Message-ID: <377561.61615.qm@web83201.mail.mud.yahoo.com> (raw)
In-Reply-To: <e01d8a50901060717u5d032b5cn8939094ad8456c34@mail.gmail.com>

--- On Tue, 1/6/09, Lennart Borgman <lennart.borgman@gmail.com> wrote:

>> Yes, but the situation I am talking about is that custom-set-variables
> >>>> have been run before custom-autoload (see my prev message).
> >>>
> >>> That would be a pilot error.
> >>
> >> Yes, but who is the pilot ...?
> >
> > Catch-22 :-)
> >
> >> Or, why not take care of this problem? I have no problem giving more
> >> concrete examples why this can be needed, but do I have to do that?
> >
> > Why do you need to run custom-set-variables before custom-autoload?
> 
> This could be during startup of Emacs. There is nothing that says
> custom-set-variables should be the last thing there. (And default.el
> is run afterwards.)
> 
> Another situation could be if you are trying out a package. Doing that
> might require that you run a file with its load defs. You may
> customize some variables in that package. The next time you start
> Emacs and try this package again those customized variables
> will be in a mixed state. You can for example get global minor mode
> whose value is t, but that does not work. The people will start
> complaining that the package does not work.
> 
> I have seen this happen. Is there any reason not to handle the problem
> the way I suggested?

It looks like when custom-set-variables is written out the load dependency is not part of it. Is there anything else besides that?







  reply	other threads:[~2009-01-06 18:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-05 18:21 Autoloaded defcustoms Lennart Borgman
2009-01-05 22:15 ` Stefan Monnier
2009-01-05 22:22   ` Lennart Borgman
2009-01-06  0:57     ` Juri Linkov
2009-01-06  2:16       ` Lennart Borgman
2009-01-06  3:20     ` Stefan Monnier
2009-01-06 12:27       ` Lennart Borgman
2009-01-06 14:54         ` Stefan Monnier
2009-01-06 15:00           ` Lennart Borgman
2009-01-06 15:07             ` Juri Linkov
2009-01-06 15:17               ` Lennart Borgman
2009-01-06 18:18                 ` Chetan Pandya [this message]
2009-01-06 18:21                   ` Lennart Borgman
2009-01-06 18:20                 ` Stefan Monnier

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=377561.61615.qm@web83201.mail.mud.yahoo.com \
    --to=pandyacus@sbcglobal.net \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=lennart.borgman@gmail.com \
    --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 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).