From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: Why do themes stack? Date: Sat, 31 Jan 2015 08:37:40 -0500 Message-ID: <87oapfnk9n.fsf@gmail.com> References: <87vbjnnm9z.fsf@gmail.com> <87sierrsxm.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422711496 23776 80.91.229.3 (31 Jan 2015 13:38:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 13:38:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Rasmus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 14:38:16 2015 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 1YHYFZ-0007tW-B0 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 14:38:13 +0100 Original-Received: from localhost ([::1]:41650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYFY-00072k-5i for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 08:38:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYF6-0006gi-AL for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:37:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHYF5-0000Wy-7V for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:37:44 -0500 Original-Received: from mail-yh0-x230.google.com ([2607:f8b0:4002:c01::230]:44272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYF5-0000Wp-4j for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:37:43 -0500 Original-Received: by mail-yh0-f48.google.com with SMTP id a41so12960179yho.7 for ; Sat, 31 Jan 2015 05:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ydrN6W0ia8B3parZ66ba76Lt7Kxa39rFmhNPFFjz9+A=; b=hcSUKJk7uRrF81UdMEV8WWU4pOW0nAcIelBbeOCB5wLD4AVoHix7PerhL2eAeMGJSY hldUqu4++zshgrz+N9BhnMTwTdLsC7Zyk2Vr+ts5Ojg9CwjHU27xFrvLIwRv3/UsYbes ZJEzOjw6flXSf1UnK3a0874FbuGKDMjdpv6KZMSLV55U+IHEQWak0DQQm9jr9+9oYIw4 v+qS+OWTrc3eaaURNUc8UESh/3gz7GVkVIh38WSll/qv2smBwrzJTdeFVMeE8/5yYgz+ C4ZkKLEn/G30oY+8T3YOZo1vpan6u4xik6tfT4uJnNQ5beQKE6QC+teoXOj7IxhJ9j3Q qLCA== X-Received: by 10.170.131.70 with SMTP id x67mr5982838ykb.120.1422711462743; Sat, 31 Jan 2015 05:37:42 -0800 (PST) Original-Received: from localhost.localdomain ([2601:0:a000:4a1:ee55:f9ff:feb5:5589]) by mx.google.com with ESMTPSA id v18sm8422624yha.16.2015.01.31.05.37.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 05:37:41 -0800 (PST) In-Reply-To: <87sierrsxm.fsf@gmx.us> (rasmus@gmx.us's message of "Sat, 31 Jan 2015 14:16:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::230 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102396 Archived-At: Thanks for the snippet; that's useful. I guess I have yet to imagine someone who wants to mix their paints manually, so to speak, rather than just putting them in a bottle (making a custom theme). Rasmus writes: > torys.anderson@gmail.com (Tory S. Anderson) writes: > >> Why is it implemented this way? Does anyone out there actually gain >> utility from theme stacking? Or am I doing something wrong? I would >> think the simpler implementation would simply to have "load theme" >> automatically disable the present theme, which is both conceptually >> and pragmatically easier. But the manual doesn't seem to mention much >> about themes, so I haven't found an explanation (or possible use) for >> this stacking implementation. > > Some people use it for overlaying themes on top of the default theme, > e.g. for different. > > You could just do something like this, I guess: > > (defun my/load-theme () > "call load-theme, but disable all themes first" > (interactive) > (call-interactively 'load-theme) > (mapc 'disable-theme (cdr-safe custom-enabled-themes)))