From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: defcustom: changing from defvar - order of execution
Date: Wed, 4 May 2005 15:49:45 -0700 [thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICGEJGCHAA.drew.adams@oracle.com> (raw)
In-Reply-To: <1115221884.483680.249680@o13g2000cwo.googlegroups.com>
It appears that defcustom acts just like defvar and
custom-set-variables acts much like setq.
Yes, wrt setting the value.
So the position of your load command, with respect to the
custom-set-variables section is unimportant.
Right, if the user uses setq. In my initial email the user used defvar,
which only takes effect if done before the load (with its own defvar or
defcustom).
Obviously the position of your call to foo-fn IS important.
In my .emacs nothing comes before custom-set-variables.
But I notice that if the section doesn't already exist
it gets added at the end rather than the beginning.
I question the logic behind that. Especially considering
the existence of options like :require and :set-after which
make the need for anything before it unlikely.
At least it doesn't move if it's present so you can put it
where you want and it will stay.
Yes, I am referring to the placement in .emacs, by Customize, of
custom-set-variables. Obviously, a user can reposition that at will, but, a
priori, a user will just let Customize place it, and it will be placed at
the end, after the load-library.
next prev parent reply other threads:[~2005-05-04 22:49 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-03 15:50 defcustom: changing from defvar - order of execution Drew Adams
2005-05-03 16:13 ` Drew Adams
[not found] ` <mailman.3227.1115174847.2819.help-gnu-emacs@gnu.org>
2005-05-04 15:03 ` Stefan Monnier
2005-05-04 22:49 ` Drew Adams
2005-05-04 15:51 ` rgb
2005-05-04 22:49 ` Drew Adams [this message]
[not found] <mailman.3356.1115247555.2819.help-gnu-emacs@gnu.org>
2005-05-06 3:20 ` Stefan Monnier
2005-05-06 17:00 ` Drew Adams
[not found] <mailman.3782.1115404280.2819.help-gnu-emacs@gnu.org>
2005-05-07 15:56 ` Stefan Monnier
[not found] <mailman.3763.1115399076.2819.help-gnu-emacs@gnu.org>
2005-05-06 17:38 ` Stefan Monnier
2005-05-06 18:19 ` Drew Adams
2005-05-10 16:14 ` Per Abrahamsen
2005-05-10 18:32 ` Drew Adams
[not found] <mailman.4474.1115750087.2819.help-gnu-emacs@gnu.org>
2005-05-11 14:07 ` Stefan Monnier
2005-05-11 16:36 ` Drew Adams
2005-05-11 16:37 ` Drew Adams
[not found] <mailman.4674.1115829901.2819.help-gnu-emacs@gnu.org>
2005-05-11 18:32 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DNEMKBNJBGPAOPIJOOICGEJGCHAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
/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.