From: Drew Adams <drew.adams@oracle.com>
To: bruce.connor.am@gmail.com, Emacs developers <emacs-devel@gnu.org>
Subject: RE: Demoting `custom-file' to a defvar
Date: Sun, 8 Nov 2015 08:31:28 -0800 (PST) [thread overview]
Message-ID: <e65ab71c-a3d6-409e-a5d4-01b5376f9fbf@default> (raw)
In-Reply-To: <CAAdUY-JCV6a27wOaKZ+yUj4x5WSXJciJPSMyBHF_pzOj10U9+A@mail.gmail.com>
> 2015-11-08 4:33 GMT+00:00 Drew Adams <drew.adams@oracle.com>:
> > [There should also perhaps be some mention of the possibly
> > confusing fact that `custom-file' is itself a user option,
> > i.e., something managed by Customize! Clearly it is a
> > special option, in that you cannot depend on it becoming
> > properly defined by loading the file that defines it!]
> Thanks for bringing this up Drew.
>
> Honestly, this sounds like a bug to me. Perhaps there's some
> witchcraft involved, but I fail to see how it can be possible to save
> `custom-file' via the customization interface and have it be properly
> loaded on the next session.
>
> Unless someone would like to correct me on that, I'd like to
> just demote it to a defvar.
I don't disagree that it is a gotcha, which is why I mentioned
it. (And I've mentioned it before.) I disagree that it should
simply be changed to a defvar. (But I don't feel strongly about
it.)
Please read the doc string of option `custom-file' carefully.
IMO, users should be able to take advantage of Customize when
defining the value.
What's missing is up-front mention of this in the manual,
at the place where we explain the init file (node Init File).
The general _recommendation_ should be to use `custom-file',
and in node `Init File' we should present a simple init-file
example that shows how to do this. That's all.
The newbie question "Where is my init file?" or "How do I
create my init file?" gets asked over and over anyway, even
though this is covered in node `Init File'. The same way the
node answers that question, it should show users how to set
and load `custom-file' in their init files. End of story.
Another thing that could help is for Customize to remind
(nag) you whenever you try to save anything, if `custom-file'
is nil. The nag should point you to the doc about
`custom-file' in node `Init File'.
An option could turn off this nagging, or a particular
response when nagged could turn it off. IOW, the nagging
would be for the benefit of newbies, not those who are
aware of `custom-file' but prefer, for whatever reason,
not to use it.
next prev parent reply other threads:[~2015-11-08 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-08 11:14 Demoting `custom-file' to a defvar Artur Malabarba
2015-11-08 13:06 ` Nicolas Petton
2015-11-08 16:31 ` Drew Adams [this message]
2015-11-08 17:15 ` bruce.connor.am
2015-11-08 18:15 ` Drew Adams
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=e65ab71c-a3d6-409e-a5d4-01b5376f9fbf@default \
--to=drew.adams@oracle.com \
--cc=bruce.connor.am@gmail.com \
--cc=emacs-devel@gnu.org \
/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).