From: <emacsnews@aleblanc.cotse.net>
To: help-gnu-emacs@gnu.org
Subject: Re: programatically save customization for future sessions
Date: Sat, 31 Jan 2009 22:36:45 +0000 [thread overview]
Message-ID: <871vujnlvm.fsf@it.com> (raw)
In-Reply-To: 87ljsrtrog.fsf@galatea.local
pjb@informatimago.com (Pascal J. Bourguignon) writes:
> <emacsnews@aleblanc.cotse.net> writes:
>> is there any function to save a variable customization for future
>> sessions (i.e. to the custom-set-variables section of my .emacs),
>> or do I have to write it myself?
>>
>> Just to clarify; I know how to save a customization manually from the
>> custom buffer, but I want to do this by calling a function from
>> within some other elisp code.
>
> What is your bet?
>
> How do you think the customization buffer does it?
>
> Do you know about C-h -k ?
>
> Since the customization buffer saves these variables when you type C-x
> C-s, you can learn what command is called by typing in a
> customization buffer: C-h k C-x C-s
>
> In the help buffer giving the help about that command, you can clic on
> the link to the command source, and there you can read it and find
> what function is called to save all the custom variables. Go see the
> source of that function to check that it does exactly what you want,
> and if yes, then use it.
Hi Pascal,
that was the first thing I tried.
It lead me to the function that saves all changes in the *Customize
Group* buffer (I want to save just a single variable). I followed a
trail which led back to a c function, and still didn't give me the answer.
--
aleblanc
next prev parent reply other threads:[~2009-01-31 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6333.1233408608.26697.help-gnu-emacs@gnu.org>
2009-01-31 15:34 ` programatically save customization for future sessions Pascal J. Bourguignon
2009-01-31 22:36 ` emacsnews [this message]
2009-01-31 15:35 ` B. T. Raven
2009-01-31 22:31 ` emacsnews
2009-01-30 20:23 emacsnews
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=871vujnlvm.fsf@it.com \
--to=emacsnews@aleblanc.cotse.net \
--cc=help-gnu-emacs@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.
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).