From: Jean Louis <bugs@gnu.support>
To: uzibalqa <uzibalqa@proton.me>
Cc: Drew Adams <drew.adams@oracle.com>,
Marcin Borkowski <mbork@mbork.pl>,
Robert Pluim <rpluim@gmail.com>,
uzibalqa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: [External] : Saving variables for use between emacs sessions
Date: Fri, 16 Sep 2022 10:30:00 +0300 [thread overview]
Message-ID: <YyQl+G3tWJATGEPv@protected.localdomain> (raw)
In-Reply-To: <o5I7aKj1e6hGOxMVsAhXfZNBIVxo8fojqHdsVvgX9HWK2ANblAeKJWifO2N3Sq2WfoMP2UWZpFEjsPDKKy4Ms6lR2SbQaCpEvqmzlPrMV7c=@proton.me>
* uzibalqa <uzibalqa@proton.me> [2022-09-16 05:42]:
> I do not understand. Once I define a variable with the declaration "defcustom",
> how can I make a function change the value?
Hyperbole link:
{C-h f defcustom RET}
where it says:
This macro calls ‘custom-declare-variable’. If you want to
programmatically alter a customizable variable (for instance, to
write a package that extends the syntax of a variable), you can
call that function directly.
Hyperbole link:
{C-h f custom-declare-variable RET}
(custom-declare-variable SYMBOL DEFAULT DOC &rest ARGS)
Like ‘defcustom’, but SYMBOL and DEFAULT are evaluated as normal arguments.
DEFAULT should be an expression to evaluate to compute the default value,
not the default value itself.
That way you can programmatically change variables created by
`defcustom'.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-09-16 7:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-15 10:54 Saving variables for use between emacs sessions uzibalqa
2022-09-15 11:46 ` [External] : " Drew Adams
2022-09-15 12:49 ` Robert Pluim
2022-09-15 13:26 ` Marcin Borkowski
2022-09-15 14:57 ` Drew Adams
2022-09-15 16:51 ` uzibalqa
2022-09-15 17:23 ` Drew Adams
2022-09-16 0:56 ` uzibalqa
2022-09-16 2:19 ` Drew Adams
2022-09-16 2:40 ` uzibalqa
2022-09-16 7:30 ` Jean Louis [this message]
2022-09-16 8:05 ` uzibalqa
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=YyQl+G3tWJATGEPv@protected.localdomain \
--to=bugs@gnu.support \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@mbork.pl \
--cc=rpluim@gmail.com \
--cc=uzibalqa@proton.me \
/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.