From unknown Wed Jun 18 23:15:41 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20766 <20766@debbugs.gnu.org> To: bug#20766 <20766@debbugs.gnu.org> Subject: Status: 24.5; disable-theme leaves lingering effects Reply-To: bug#20766 <20766@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:15:41 +0000 retitle 20766 24.5; disable-theme leaves lingering effects reassign 20766 emacs submitter 20766 Anders Papitto severity 20766 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 07 21:20:06 2015 Received: (at submit) by debbugs.gnu.org; 8 Jun 2015 01:20:07 +0000 Received: from localhost ([127.0.0.1]:44411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1ljN-00075F-Cj for submit@debbugs.gnu.org; Sun, 07 Jun 2015 21:20:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36393) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1lYz-0006q5-UN for submit@debbugs.gnu.org; Sun, 07 Jun 2015 21:09:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1lYt-000361-8B for submit@debbugs.gnu.org; Sun, 07 Jun 2015 21:09:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1lYt-00035w-5G for submit@debbugs.gnu.org; Sun, 07 Jun 2015 21:09:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1lYr-0002CN-Mv for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 21:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1lYn-00034Z-Sb for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 21:09:09 -0400 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:36260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1lYn-00034E-KG for bug-gnu-emacs@gnu.org; Sun, 07 Jun 2015 21:09:05 -0400 Received: by pabqy3 with SMTP id qy3so84539484pab.3 for ; Sun, 07 Jun 2015 18:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=T0SdkGJbThggZ1ue9ZYWbrebBWixAUCW3QBF3hQb4y0=; b=Hzi7VzEpON1SuANCJQQSB6/zaMz4tz7YqeAiLUcjlfxLjUOna5SwEReVZzl2RL+6dl Pge6xTULJxWagsWWsP5iD9kqzjtwwHYNcUqFhvnPPdiza4Ugz+pdGPe4/AU2NJh+NCjc Bwh642foEqD+fhl2rXczftRpMRcnIxViIAVdhLz/34EhK4BnAAWEw2txjf1z0Y5J1r6l OeGXDRaAeRrQQPnW2qYL8c8ke4Tq/B0uqC/6+lGiAbGTyVdGjFfxA7naO/e31dE7mPTI FqYhkvua+ynJVR+Elw+TNWoWKJ6+/340xTGymWwklb763a3ZgJ4my4QfNB6SR/4GE/nS u6qw== MIME-Version: 1.0 X-Received: by 10.66.165.8 with SMTP id yu8mr25158718pab.82.1433725744373; Sun, 07 Jun 2015 18:09:04 -0700 (PDT) Received: by 10.70.111.3 with HTTP; Sun, 7 Jun 2015 18:09:04 -0700 (PDT) Date: Sun, 7 Jun 2015 18:09:04 -0700 Message-ID: Subject: 24.5; disable-theme leaves lingering effects From: Anders Papitto To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 07 Jun 2015 21:19:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) When I run these commands from a fresh Emacs instance M-x load-theme RET solarized-light RET M-x disable-theme RET solarized-light RET M-x term RET RET the text background color in term-mode stays what it was set to by the solarized-light theme. A very similar invocation does not have this behavior: M-x term RET RET C-c k RET yes RET M-x load-theme RET solarized-light RET M-x disable-theme RET solarized-light RET M-x term RET RET i.e. If term mode gets to run before loading the theme, no bug. the 'solarized-light' theme was installed from melpa via M-x package-list-packages, and is upstream at https://github.com/bbatsov/solarized-emacs. I'm not certain whether the behavior is specific to that theme or not. What I have observed is that there seems to be an interaction with the variables term-default-fg-color and term-default-bg-color. They start as :not-bound. Solarized light sets them to some value when loaded, and resets them to :not-bound when unloaded. However, term mode also sets them when started (both to 'nil) and seems to never reset them to :not-bound. Note: I don't have Emacs configured to send email, so I copied the following from the bug-submission utility. In GNU Emacs 24.5.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.27) of 2015-05-13 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.11604000 Configured using: `configure --disable-dependency-tracking --prefix=/nix/store/wjlxah8xdid8qw12rsf3cjxvqj3zw69p-emacs-24.5 --with-x-toolkit=gtk2 --with-xft' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. delete-backward-char: Text is read-only Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 71068 7059) (symbols 48 17455 0) (miscs 40 39 163) (strings 32 9117 4368) (string-bytes 1 264156) (vectors 16 8912) (vector-slots 8 383152 18293) (floats 8 63 249) (intervals 56 166 16) (buffers 960 11) (heap 1024 12859 662)) From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 06 07:26:56 2020 Received: (at 20766) by debbugs.gnu.org; 6 Nov 2020 12:26:57 +0000 Received: from localhost ([127.0.0.1]:55312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb0pU-0008Vj-KH for submit@debbugs.gnu.org; Fri, 06 Nov 2020 07:26:56 -0500 Received: from mail-wr1-f52.google.com ([209.85.221.52]:33302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb0pS-0008VU-Mn for 20766@debbugs.gnu.org; Fri, 06 Nov 2020 07:26:55 -0500 Received: by mail-wr1-f52.google.com with SMTP id b8so1150989wrn.0 for <20766@debbugs.gnu.org>; Fri, 06 Nov 2020 04:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=JC1/v+PjP9IDBb+/TMtoHYzSv8KLV9RLdvM1P62IY1Q=; b=rE9mVRODfW/QpCnsL/UxJfIW+qIfrOM51HOewsgqzwVdT5+F8v82lpSxCwSRx1hrUO 910tpssNjNbpiWP8/8ZeuZmwPOaaKompCjeuXuloVingxN61oeSEni350m/rCHdHKXai 1GROkHfMflCMsNr/5lQfeLzsmAf9UAa/Lh1w0y/MCo4hQ0ZUyPLXQkY3u4hPAzDCrod1 0Ud19VymiLpqZzdQwYfpnZo52Uf2OZ5uQW5OruBwFkkgTXk/8ZrYLJmE3/0Tg/RAxSwr ReML2n/C9sPUW/EOgKS7o+Npgp0LB4dvQcVKnCGbNkwlJl+Lv7TbaCe0/F5mrGEmhUya Vprg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=JC1/v+PjP9IDBb+/TMtoHYzSv8KLV9RLdvM1P62IY1Q=; b=BSeN6uQZ4v90J9tK5zEID5Mwaljn2+7iel5WWafAZK6w26xjZcf6OIHxcPsKb+wdme K9A370/kxavCBX1DCsGp4ibzluYczcBF1YQQx5NfiJZmi/KX3DQTEJSVCZKJT9j12+Zo PdF0rvsKj8moirp6wQKmGD4QmY2oC1Vbmr7DmlWcMLn9iyrMne02lBJgCkmbwxpm7Knc v4EKQlQPjx+Xek8I7YB16QXvLpL7ECnxXTX8htBywo6+6jUrjwJY0TYkSZ0D/3M1kkVY vzFvZ2v6pADjm7JMyUuaZuDgE4Qg7AW4+0cTUqY7tVqgmWDeBXqnibnpnN3yFS4U7Ncp 3zdQ== X-Gm-Message-State: AOAM531bAWgG3/nhHIhYT6yJ3vwNCvk5Fs1kw5GbVr2l/uXfqBoy9Ele rtqyCUTHCfRWdDdpHSoBq4Xr/FFbMx+4Z9B/Ofk= X-Google-Smtp-Source: ABdhPJylHLXKzbW3Bi6HZ13kQo1PKl9PPkm0Pmm88J/fCsAUf6UF/NU5DK5XL4aImykMkrLKt+ZweTDZTbOqwa9R3Zs= X-Received: by 2002:a5d:69d1:: with SMTP id s17mr2537937wrw.77.1604665608803; Fri, 06 Nov 2020 04:26:48 -0800 (PST) MIME-Version: 1.0 From: Mauro Aranda Date: Fri, 6 Nov 2020 09:26:36 -0300 Message-ID: Subject: Re: bug#20766: 24.5; disable-theme leaves lingering effects To: Anders Papitto Content-Type: multipart/alternative; boundary="0000000000009899f905b36f5309" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20766 Cc: 20766@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000009899f905b36f5309 Content-Type: text/plain; charset="UTF-8" Anders Papitto writes: > When I run these commands from a fresh Emacs instance > > M-x load-theme RET solarized-light RET > M-x disable-theme RET solarized-light RET > M-x term RET RET > > the text background color in term-mode stays what it was set to by the > solarized-light theme. A very similar invocation does not have this > behavior: > > M-x term RET RET > C-c k RET yes RET > M-x load-theme RET solarized-light RET > M-x disable-theme RET solarized-light RET > M-x term RET RET > > i.e. If term mode gets to run before loading the theme, no bug. > This bug is still present. It looks like solarized still sets the obsoleted variables term-default-fg-color and term-default-bg-color, but still, the bug is in custom.el and it's related to Bug#21355. Here's a recipe: Save this theme into test-bug20766-theme.el, and arrange to load it. (deftheme test-bug20766) (custom-theme-set-variables 'test-bug20766 '(test-option 'foo)) (provide-theme 'test-bug20766) emacs -Q M-x load-theme RET test-bug20766 test-option is not yet known, so custom stores the theme setting under the saved-value property of test-option. M-x disable-theme RET test-bug20766 The saved-value property should be nil, because the theme setting is no longer relevant. However, it's still ('foo). Then eval the following defcustom: (defcustom test-option 'bar "..." :type 'symbol :group 'emacs) M-: test-option ==> foo, which is wrong. In the original recipe, that is how term-default-fg-color and term-default-bg-color get the solarized theme setting after loading term. --0000000000009899f905b36f5309 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Anders Papitto <anderspapitto@gmail.com> writes:

> When I run these co= mmands from a fresh Emacs instance
>
> M-x load-theme RET solar= ized-light RET
> M-x disable-theme RET solarized-light RET
> M-= x term RET RET
>
> the text background color in term-mode stays= what it was set to by the
> solarized-light theme. A very similar in= vocation does not have this
> behavior:
>
> M-x term RET = RET
> C-c k RET yes RET
> M-x load-theme RET solarized-light RE= T
> M-x disable-theme RET solarized-light RET
> M-x term RET RE= T
>
> i.e. If term mode gets to run before loading the theme, n= o bug.
>

This bug is still present.

It looks like solar= ized still sets the obsoleted variables
term-default-fg-color and term-d= efault-bg-color, but still, the bug is
in custom.el and it's related= to Bug#21355.

Here's a recipe:
Save this theme into test-bug= 20766-theme.el, and arrange to load it.
(deftheme test-bug20766)

= (custom-theme-set-variables
=C2=A0'test-bug20766
=C2=A0'(test= -option 'foo))

(provide-theme 'test-bug20766)

emacs -= Q

M-x load-theme RET test-bug20766
test-option is not yet known, = so custom stores the theme setting under
the saved-value property of tes= t-option.

M-x disable-theme RET test-bug20766
The saved-value pro= perty should be nil, because the theme setting is no
longer relevant.=C2= =A0 However, it's still ('foo).

Then eval the following defc= ustom:
(defcustom test-option 'bar "..."
:type 's= ymbol
:group 'emacs)

M-: test-option =3D=3D> foo, which = is wrong.

In the original recipe, that is how term-default-fg-color = and
term-default-bg-color get the solarized theme setting after loading<= br>term.
--0000000000009899f905b36f5309-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 08 04:45:49 2025 Received: (at 20766) by debbugs.gnu.org; 8 Mar 2025 09:45:49 +0000 Received: from localhost ([127.0.0.1]:52869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqqkf-000506-Ax for submit@debbugs.gnu.org; Sat, 08 Mar 2025 04:45:49 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:49398) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tqqkd-0004zl-BO; Sat, 08 Mar 2025 04:45:47 -0500 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2fea47bcb51so5745370a91.2; Sat, 08 Mar 2025 01:45:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741427140; x=1742031940; darn=debbugs.gnu.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=aqoEM1shquw/SLXG7qT31e0WydDTa+LlE+c7WHEFQ+Y=; b=eDbkejGwwSxNYccUuz/5X5SRgfdP4eXda4Jg5s8HLvZbHIpvI4yYASVOX2uwZKeHAz RCxfciO7GwvEpR7TJdTTR6PMrpTeDlQC2LDG+P7G+pXcRot1Z9O8Kms3YvjJErnqwatL dkbqqvGWh3+tmX7xCO5wNhqr1cNQMqvZ8uxTpmCCkd6NV/LDpgtsa2mvLhL6nT5p0kAd rkAJFbD+wohNN49iBLgjNYsFsgukVlaOe6P6DgDMNUn68vDkUaNJbgIoxmz7xvaGnXot n9oMR3GeFeGywy6qwxMdIsq4rOgYgrXHqTWIoWecyc5z5nrtPr4HKO0nIcwpcFj9OTEP UrXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741427140; x=1742031940; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=aqoEM1shquw/SLXG7qT31e0WydDTa+LlE+c7WHEFQ+Y=; b=fPn4ZiNp2cggyXrkAXL0LKl0xP3ImK9So3OGy/deoOuzLeDwgdvIrAGuVO4Ip0DRyE 8mfG+qRFwuipIz3NVzK0aQQ1wQBKZ/kwqaw38IdzqrSvYKGCUJBRVXaLbA5duPQ77glI uHCe7L0wc87KsgZCB7D6lQQj3nPdaXdFvsVJui3YyJRBf4xL5j8r2a8XgQJUS1PKwSL/ WWhGVB7+QAZqGS60st96EwLhqu940D9wRWRYo4ckYoi1kIkybMSzS/lD3umdXMZdzdnP L5yqmldFnx3CoIDPyxrDFM8NYzWy2FzHbBysiw3KeT/56OPTZVyPdKlyTveEKOCq6nWa xKfg== X-Forwarded-Encrypted: i=1; AJvYcCWwnRmpHBg6YHXaE5YqockiWEysBDIjSc2H7XauStkkAiwM6iUhgqG8y4EvTrJh31JYexTbQBua@debbugs.gnu.org X-Gm-Message-State: AOJu0YwDNmRVj6/2CvzaBs2ctuqxKZ4r3+vXsjB57gtWekc6UwRcqLT/ NLs3NXGDV1SaKE1QKvbfnW3E8sQLnBOC6ruA5kauMJK9V4l3TaM5JMLSDeVF X-Gm-Gg: ASbGnctgAxX+alXfFTxo7Qk4lXfDS/SGSEqi0WTyiGAfBJXJsdLhzZcxTC9yrkzEMIq UK8RZnGxZfnua2S+o/SeiIgrds8QrBRmq/9Gq+vC8/6uxkbNTUHAWy2kxbnYhcIdHjq5JAlnPtz Fij882cSPk2kyxF23O5N9X1NAyLh9fmMZgyI7Kgk/6HUM45A42acLe5TnMLAsSdRALInu7rALhZ FdOEP0+rn6WW8aZxfODx287gNWzHn4oBkn8R3KSnIx/VcD75ZvUvm/sNZ80A3F2quv9lua7VXdj AvR140IsNhpQ0s68OAj8npCBRYzXgHnZKSlUEgf3WrP9AybzCuo= X-Google-Smtp-Source: AGHT+IFvIPU7vscLxxs/jhk1VEA+EQK5JFg4Jw6JWcNqOc17hEv6l3UZDtGmyVZSFZieUUDFTqZn8w== X-Received: by 2002:a17:90a:d40f:b0:2fe:b8b9:5aa6 with SMTP id 98e67ed59e1d1-2ff7cf40f2emr9775179a91.31.1741427140423; Sat, 08 Mar 2025 01:45:40 -0800 (PST) Received: from [192.168.0.234] ([181.228.33.6]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ff69374622sm4911823a91.23.2025.03.08.01.45.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 08 Mar 2025 01:45:39 -0800 (PST) Message-ID: Date: Sat, 8 Mar 2025 06:45:35 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: 20766@debbugs.gnu.org From: Mauro Aranda Subject: Re: bug#20766: 24.5; disable-theme leaves lingering effects Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20766 Cc: Anders Papitto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 20766 28.1 quit Mauro Aranda writes: > Anders Papitto writes: > >> When I run these commands from a fresh Emacs instance >> >> M-x load-theme RET solarized-light RET >> M-x disable-theme RET solarized-light RET >> M-x term RET RET >> >> the text background color in term-mode stays what it was set to by the >> solarized-light theme. A very similar invocation does not have this >> behavior: >> >> M-x term RET RET >> C-c k RET yes RET >> M-x load-theme RET solarized-light RET >> M-x disable-theme RET solarized-light RET >> M-x term RET RET >> >> i.e. If term mode gets to run before loading the theme, no bug. >> > > This bug is still present. > > It looks like solarized still sets the obsoleted variables > term-default-fg-color and term-default-bg-color, but still, the bug is > in custom.el and it's related to Bug#21355. > > Here's a recipe: > Save this theme into test-bug20766-theme.el, and arrange to load it. > (deftheme test-bug20766) > > (custom-theme-set-variables >  'test-bug20766 >  '(test-option 'foo)) > > (provide-theme 'test-bug20766) > > emacs -Q > > M-x load-theme RET test-bug20766 > test-option is not yet known, so custom stores the theme setting under > the saved-value property of test-option. > > M-x disable-theme RET test-bug20766 > The saved-value property should be nil, because the theme setting is no > longer relevant.  However, it's still ('foo). > > Then eval the following defcustom: > (defcustom test-option 'bar "..." > :type 'symbol > :group 'emacs) > > M-: test-option ==> foo, which is wrong. > > In the original recipe, that is how term-default-fg-color and > term-default-bg-color get the solarized theme setting after loading > term. This is fixed since this commit: commit 779c615f333a01d11ab930b030d61545fb048f3d Author: Mauro Aranda Date:   Mon May 10 13:33:32 2021 +0200     Avoid saving session customizations in the custom-file Closing. From unknown Wed Jun 18 23:15:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 05 Apr 2025 11:24:23 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator