From: uzibalqa <uzibalqa@proton.me>
To: Jean Louis <bugs@gnu.support>
Cc: uzibalqa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: Updating defcustom variables in elisp code
Date: Mon, 19 Sep 2022 19:14:07 +0000 [thread overview]
Message-ID: <qpep1YcwzmVJzEufpbhfCEuvagAGKUymiUK-Bcjz0sDaxivrkrVAZOB9eQHcMVDjGSpZjaxUFqByGVd8fyz-78zePnwERSZmWoxqNkIF8l4=@proton.me> (raw)
In-Reply-To: <Yyg+K+/2kCOT1g1c@protected.localdomain>
------- Original Message -------
On Monday, September 19th, 2022 at 10:02 AM, Jean Louis <bugs@gnu.support> wrote:
> Do this:
>
> {M-x customize-group RET savehist RET}
>
> Find:
>
> Hide Savehist Additional Variables:
> Repeat:
> [INS] [DEL] Variable: rcd-sample
> [INS]
> [ State ]: SET for current session only.
> List of additional variables to save. Hide
> Each element is a variable that will be persisted across Emacs
> sessions that use Savehist.
>
> An element may be variable name (a symbol) or a cons cell of the form
> (VAR . MAX-SIZE), which means to truncate VAR’s value to at most
> MAX-SIZE elements (if the value is a list) before saving the value.
>
> As that can save variables.
I did that, but although the new values get updated, the defcustom in the file
used during init resets to the default values.
In my file I define
(defgroup tpframe nil
"Set position of frame."
:group 'convenience)
(defcustom frame-pos (cons 8 8)
"Position of initial frame as (X . Y) ."
:type 'sexp
:group 'tpframe)
prev parent reply other threads:[~2022-09-19 19:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-18 14:29 Updating defcustom variables in elisp code uzibalqa
2022-09-19 10:02 ` Jean Louis
2022-09-19 19:14 ` uzibalqa [this message]
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='qpep1YcwzmVJzEufpbhfCEuvagAGKUymiUK-Bcjz0sDaxivrkrVAZOB9eQHcMVDjGSpZjaxUFqByGVd8fyz-78zePnwERSZmWoxqNkIF8l4=@proton.me' \
--to=uzibalqa@proton.me \
--cc=bugs@gnu.support \
--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).