From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.help Subject: Re: Why do themes stack? Date: Sat, 31 Jan 2015 11:56:08 -0200 Message-ID: References: <87vbjnnm9z.fsf@gmail.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422712590 7901 80.91.229.3 (31 Jan 2015 13:56:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 13:56:30 +0000 (UTC) Cc: help-gnu-emacs To: "Tory S. Anderson" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 14:56:25 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 1YHYX9-0004Vp-D9 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 14:56:23 +0100 Original-Received: from localhost ([::1]:41674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYX8-0001QW-K8 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 08:56:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYWw-0001QQ-Fs for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:56:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHYWv-0006QD-De for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:56:10 -0500 Original-Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:45064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHYWv-0006Q9-8G for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 08:56:09 -0500 Original-Received: by mail-ob0-f171.google.com with SMTP id gq1so1866896obb.2 for ; Sat, 31 Jan 2015 05:56:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=wnJJ93EJj9H4NxSfnBTpmdK/Gjw5nh6wrLKgAOH4dxg=; b=aU/1E6en18m+OJt/+p3/tRIad1dDB8OxNgtJXDA0ciNhNw0ojv2uLQ/B/CaeqF323C ns+ECekudm814r40mQWZAzhEbysc90bSIbV9VRIOM8N34gxu218wWeTcVSLVGnynIaDa MpHG3PRgj7ac/TcekGessTEQnVf7oiurmM8AVNY3E5blGNWZE+Jc7YyyXRzXbVgMrnM1 NKuMHRVHo12lE5++ZNb1qSpp+X75KEy3kraMYoa5Zht9T64qoGhOV0Hb6iArfKqtXQr9 jYYbtnmKKHvPPioLhL80EObWp/5xkNMEED1E2NLyogUjn5qXHz5CnW8C75jHMYPDdTrj DYYg== X-Received: by 10.182.231.230 with SMTP id tj6mr6874443obc.58.1422712568542; Sat, 31 Jan 2015 05:56:08 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Sat, 31 Jan 2015 05:56:08 -0800 (PST) Original-Received: by 10.76.125.1 with HTTP; Sat, 31 Jan 2015 05:56:08 -0800 (PST) In-Reply-To: <87vbjnnm9z.fsf@gmail.com> X-Google-Sender-Auth: k299te_7YWkoIXbmRohfKEOBNX4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:102397 Archived-At: Because then you can have different themes which apply to different faces. For instance, if you really like Magit you could release a theme that only customizes Magit faces. If themes didn't stack, nobody would ever use your theme because it doesn't do anything outside Magit buffers. Since themes DO stack, users can use your theme in addition to their global theme. This way, people get all the Magit-dedicated love of your theme while still having another nice theme everywhere else. The fact that extremely few special themes like this exist is a shame. It increases confusion on the users, and increases pressure on the theme developers to support every single major-mode under the sun. On 31 Jan 2015 12:54, "Tory S. Anderson" wrote: > Throughout my work day I'll switch themes now and again to go from high > contrast to lower, or from dark to light. This process requires disabling > the present theme and then loading the next theme; if you forget to > disable, the themes stack, usually with undesirable consequences. > > 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. > >