From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: W. Greenhouse Newsgroups: gmane.emacs.help Subject: Re: custom-themes BAD? Date: Tue, 25 Feb 2014 21:05:13 +0000 Message-ID: <87ppmaoqd2.fsf@motoko.kusanagi> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1393362348 14288 80.91.229.3 (25 Feb 2014 21:05:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2014 21:05:48 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Feb 25 22:05:56 2014 Return-path: Envelope-to: geh-help-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 1WIPCN-0003Zc-6Q for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 22:05:55 +0100 Original-Received: from localhost ([::1]:37060 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIPCM-0008Vj-Mz for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Feb 2014 16:05:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIPC7-0008KH-41 for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 25 Feb 2014 16:05:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIPC0-0006do-Vb for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 25 Feb 2014 16:05:39 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIPC0-0006ck-Fx for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 25 Feb 2014 16:05:32 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WIPBx-0001uK-8Y for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 25 Feb 2014 22:05:29 +0100 Original-Received: from manning1.torservers.net ([96.44.189.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 22:05:29 +0100 Original-Received: from wgreenhouse by manning1.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Feb 2014 22:05:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: manning1.torservers.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:a2n+pDKfs1Y5S3tjB4wwGZu08Uc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 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.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:96203 Archived-At: Rainer M Krug writes: > Dan Espen writes: [...] >> It should be a simple matter for all themes to run a hook that removes >> the previous theme. Then have each theme define it's own hook function. >> But removing a face won't revert to the prior face, so each theme would >> have to query the current setting, then save it in the hook function >> for removal. > > Exactly - should not be to difficult to implement. The by-default-cumulative behavior of themes is confusing to newbies, but there is already `disable-theme'. `load-theme' does not normally call `disable-theme' on the rest of `custom-enable-themes' prior to loading a new one, but you could advice it to do so. See also M-x customize-themes, which already is hooked up to enable one theme at a time, removing others.