From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa Newsgroups: gmane.emacs.help Subject: Re: Updating defcustom variables in elisp code Date: Mon, 19 Sep 2022 19:14:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2952"; mail-complaints-to="usenet@ciao.gmane.io" Cc: uzibalqa via Users list for the GNU Emacs text editor To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 19 21:14:53 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaMEH-0000bW-8q for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 21:14:53 +0200 Original-Received: from localhost ([::1]:50626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaMEG-0004hw-A3 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 19 Sep 2022 15:14:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaMDn-0004hA-4O for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 15:14:23 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:15265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaMDj-0002tF-NT for help-gnu-emacs@gnu.org; Mon, 19 Sep 2022 15:14:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1663614856; x=1663874056; bh=AjhPJfWbM22YatNiHTB2bnDNjZs9i96zqbdM9AypAfE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=QaOs9VstTEIpw8A+VYuJdH6x8F0syxaoAnoikbB6NCUleU27nUC9xlF01yAdXUpIq pAr5Ik5EC0osbk+GcMKSbcp+Y/lw1FmNZNWkDbxCQdHIgSP9GXgaa6nfs7MHQcDnLS dIZXQtOOZfmLDXTqid6nLZnzBq0R9mVnfKRNTkreVvTdGY2/1PqVRfp2QC90aDd9h4 v2J25Cl7aclD9g3Y11QU55A7MGByVeyNL59ZPDxenXhShsKxC7LaHrzn8s+VpOc6iL u5ziAn15vdy76VqUIumwqsmwDOhmO2jGDa2563+BtJ7eibqXnifYgn3nHG9hGPGqm8 CI5xPzmqKfz9w== In-Reply-To: Feedback-ID: 52887082:user:proton Received-SPF: pass client-ip=185.70.40.130; envelope-from=uzibalqa@proton.me; helo=mail-40130.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139585 Archived-At: ------- Original Message ------- On Monday, September 19th, 2022 at 10:02 AM, Jean Louis = wrote: > Do this: >=20 > {M-x customize-group RET savehist RET} >=20 > Find: >=20 > 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. >=20 > An element may be variable name (a symbol) or a cons cell of the form > (VAR . MAX-SIZE), which means to truncate VAR=E2=80=99s value to at most > MAX-SIZE elements (if the value is a list) before saving the value. >=20 > As that can save variables. I did that, but although the new values get updated, the defcustom in the f= ile =20 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)