From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15687: 24.3.50; custom themes: disabling does not restore initial configuration Date: Tue, 26 Nov 2013 13:16:21 -0800 (PST) Message-ID: <6c0691be-bed5-4e0a-bc90-87a20ccef9c1@default> References: <87d2ln9f0b.fsf@motoko.kusanagi> <8761rf9ccv.fsf@motoko.kusanagi> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385500705 4163 80.91.229.3 (26 Nov 2013 21:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 21:18:25 +0000 (UTC) Cc: wgg2@member.fsf.org, 15687@debbugs.gnu.org To: wgreenhouse@riseup.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 22:18:28 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlQ1c-0007NN-68 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 22:18:28 +0100 Original-Received: from localhost ([::1]:32815 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlQ1b-000282-FH for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 16:18:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlQ1N-00026S-4k for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:18:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlQ1D-0001e4-1M for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:18:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlQ1C-0001dx-Tq for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VlQ1C-0000xo-ES for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2013 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo X-Debbugs-Original-Cc: "William G. Gardella" , bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13855006233616 (code B ref -1); Tue, 26 Nov 2013 21:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2013 21:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:46487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlQ0E-0000wG-RF for submit@debbugs.gnu.org; Tue, 26 Nov 2013 16:17:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57540) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlQ0D-0000vk-29 for submit@debbugs.gnu.org; Tue, 26 Nov 2013 16:17:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlPzx-0000vq-O6 for submit@debbugs.gnu.org; Tue, 26 Nov 2013 16:16:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlPzx-0000vj-KH for submit@debbugs.gnu.org; Tue, 26 Nov 2013 16:16:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlPzo-0001y9-Sp for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:16:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlPzg-0000oe-9v for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:16:36 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:38833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlPzg-0000oW-4E for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 16:16:28 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rAQLGPK6021137 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Nov 2013 21:16:25 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAQLGMMw000842 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Nov 2013 21:16:24 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rAQLGMIY026934; Tue, 26 Nov 2013 21:16:22 GMT In-Reply-To: <8761rf9ccv.fsf@motoko.kusanagi> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81017 Archived-At: > To achieve a clean slate, `doremi-custom-themes[+]' should do > exactly what `customize-themes' does: if > `custom-theme-allow-multiple-selections' is nil, `disable-theme' should > be called for every element in `custom-enabled-themes' before enabling a > new one. Did you look at the code? What do you call this? (let ((orig-themes (delq nil (copy-sequence custom-enabled-themes))) ... (condition-case nil ; `C-g' (progn (mapc #'disable-theme custom-enabled-themes) (if orig-themes (mapc #'enable-theme orig-themes) (enable-theme snapshot))) (error nil))) > (customize-create-theme) is roughly equivalent to > `color-theme-make-snapshot'. It fills out a Custom theme using > Emacs's current state as a basis. ... > use (customize-create-theme) similarly to how you'd use > (color-theme-make-snapshot) to make a point to reverse to. No. `customize-create-theme' opens Customize. Show me a function that takes a snapshot of the Emacs state, even as a custom theme, which can then be used to restore the state. I give up. If you want to remain convinced there is no problem, fine. If you don't want to even try to see the problems reported, using the simple recipe I gave, fine. (Yes, simple to do: download the files, load them into emacs -Q, and try the command. Maybe 3 minutes altogether, including the time to download.) I have no axe to grind about this, no dog in any race. I provide cycling commands for both color themes and custom themes. And IF it were true that the latter had no drawbacks wrt the former, I would take pleasure in removing the code for color-theme cycling (for Emacs versions that support custom themes). Alas, that code needs to remain, so far. And apparently that will continue, as there seems to be little desire to fix the custom theme code in this regard. So be it.