From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: Disabling custom themes Date: Wed, 13 Jun 2018 10:21:36 -0700 Message-ID: <874li6iov3.fsf@ericabrahamsen.net> References: <10b7bd657091b074d8da1bf1ae35b1f4.squirrel@dancol.org> <83h8m8owp2.fsf@gnu.org> <48a7bd1277a18dd0a68d06cd8b022062.squirrel@dancol.org>> <83vaao3qrn.fsf@gnu.org>> <874li63iit.fsf@tcd.ie> <87602m1v94.fsf_-_@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528910643 10457 195.159.176.226 (13 Jun 2018 17:24:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2018 17:24:03 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 13 19:23:59 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fT9V1-0002c6-2S for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2018 19:23:59 +0200 Original-Received: from localhost ([::1]:35846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT9X8-00011J-3o for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2018 13:26:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT9Vp-0000eH-16 for emacs-devel@gnu.org; Wed, 13 Jun 2018 13:24:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT9Vo-0003DW-3J for emacs-devel@gnu.org; Wed, 13 Jun 2018 13:24:48 -0400 Original-Received: from [195.159.176.226] (port=35149 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT9Vn-00030K-SM for emacs-devel@gnu.org; Wed, 13 Jun 2018 13:24:48 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1fT9TY-0000xX-6d for emacs-devel@gnu.org; Wed, 13 Jun 2018 19:22:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:qhmfcRnHpFVh2q6MYKyNl72kinc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226298 Archived-At: Drew Adams writes: >> Sorry, I'm not sure I completely understand what you mean (for example >> w.r.t. "initial state" and "settings of the 'disabled' custom theme"), >> but I've posted a recipe with what I think you're getting at to >> bug#15687, where I think any further discussion of the effects of theme >> disabling can be continued. >> >> Either way, thanks for the explanation and background. > > Thanks for reopening bug #15687. And from your post there > I think you have understood. > > To try to clarify - > > I mean only that custom-theme enabling/disabling knows only > about (custom) themes. It does not know about other user > customizations, so it cannot restore them when it is disabled. > > What's missing is a function that captures the state of Emacs > (anything that a custom state might modify) before any custom > theme is applied, so that that state can be restored. > > Then you could (as you can with color themes) invoke that > function to take a snapshot of your Emacs before "theming", > and you could use that snapshot to restore your Emacs pretty > much as it was before "theming". I would find this useful as well. I switch to `color-theme-dark-laptop' at night (which is very nice), and would like to be able to switch back to my own customized state the next morning.