help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating defcustom variables in elisp code


From: uzibalqa
Subject: Re: Updating defcustom variables in elisp code
Date: Mon, 19 Sep 2022 19:14:07 +0000

------- 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)







reply via email to

[Prev in Thread] Current Thread [Next in Thread]