From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: customization theme users/use-cases/info Date: Fri, 21 Oct 2011 15:42:52 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319204597 32282 80.91.229.12 (21 Oct 2011 13:43:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2011 13:43:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dave Abrahams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 21 15:43:13 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RHFNP-0001nT-BM for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 15:43:11 +0200 Original-Received: from localhost ([::1]:33282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHFNM-0007Wc-2E for ged-emacs-devel@m.gmane.org; Fri, 21 Oct 2011 09:43:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHFNI-0007WL-Vg for emacs-devel@gnu.org; Fri, 21 Oct 2011 09:43:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHFNH-0001yf-KO for emacs-devel@gnu.org; Fri, 21 Oct 2011 09:43:04 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:60028 helo=gate.verona.se) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHFNH-0001yS-44 for emacs-devel@gnu.org; Fri, 21 Oct 2011 09:43:03 -0400 Original-Received: from chopper.vpn.verona.se (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id p9LDgq5K014843; Fri, 21 Oct 2011 15:42:53 +0200 In-Reply-To: (Dave Abrahams's message of "Fri, 21 Oct 2011 05:18:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 82.115.149.64 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145391 Archived-At: Dave Abrahams writes: > I've been trying to use the themes feature that's been in Emacs since > v23.x, and I am finding it a little bit awkward... most of what's in > Emacs is oriented around using the regular customization interface, > which stomps on anything set up by a theme. There isn't much > information in the Emacs manual about how one might use themes, there's > no information on EmacsWiki, and the facilities go un-mentioned in the > Elisp manual. I might expect to find information there about the theme > data structure, for example. Especially because of the silence of > EmacsWiki (I think I made the one page that mentions themes there---no, > color-theme is something different) it makes me wonder how the feature > was designed, who's actually using it, and whether they're being > well-served by it. > > Any information appreciated, I'm using themes in my zen-mode.el package. I use it to create a stackable set of features. Maybe it's easier with an example: 0: 1: A 2: A B 3: A B C so; A B C are features. 0 1 2 3 are levels that you can switch between. Customize makes this feature a bit problematic, as you have observed. It happens frequently that a variable I want the theme to own winds up in the default customize level instead. Then my entire stack fails, since it means feature C winds up in level 0. I haven't delved much further. I reported a bug at least. -- Joakim Verona