From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: themes Date: Wed, 13 Oct 2010 01:57:13 -0400 Message-ID: <87eibuskhy.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286949453 30887 80.91.229.12 (13 Oct 2010 05:57:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 05:57:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 13 07:57:32 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P5uLA-00027H-6x for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 07:57:28 +0200 Original-Received: from localhost ([127.0.0.1]:32911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5uL9-0006hl-Qf for ged-emacs-devel@m.gmane.org; Wed, 13 Oct 2010 01:57:27 -0400 Original-Received: from [140.186.70.92] (port=49309 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5uL0-0006gS-Lg for emacs-devel@gnu.org; Wed, 13 Oct 2010 01:57:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5uKz-0005Hj-Jz for emacs-devel@gnu.org; Wed, 13 Oct 2010 01:57:18 -0400 Original-Received: from pantheon-po24.its.yale.edu ([130.132.50.118]:48349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5uKy-0005HW-0O; Wed, 13 Oct 2010 01:57:16 -0400 Original-Received: from furry (adsl-99-111-197-225.dsl.wlfrct.sbcglobal.net [99.111.197.225]) (authenticated bits=0) by pantheon-po24.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o9D5vEer004049 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 13 Oct 2010 01:57:15 -0400 Original-Received: by furry (Postfix, from userid 1000) id D9EC4C018; Wed, 13 Oct 2010 01:57:13 -0400 (EDT) In-Reply-To: (Miles Bader's message of "Wed, 13 Oct 2010 12:35:01 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131657 Archived-At: Miles Bader writes: > 1. I normally have a dark-background. Since the "tango" theme is a > light-background theme, I did "load-theme RET tango RET" expecting > it to change my background color ... which it didn't. Instead, my > window flashed, and some random faces changed, but mainly things > seemed exactly the same. That sounds like a bug. The tango theme defines "#eeeeec" for the background of the `default' face. Indeed, I just tried with a dark background set using .Xresources (Emacs.background: Black), and M-x load-theme RET tango RET changes the background to pale grey. Could you provide more details? > 2. The basic interface seems to be "load-theme", which also turns on > the theme, and then you can subsequently use "disable-theme" and > "enable-theme" to turn it off or on again. > > Isn't this kind oaf out-of-sync with general Emacs policy, which is > that "loading" should only load stuff, and not actually execute it? > > Perhaps it would be better to deprecate load-theme for user usage, > make `enable-theme' the main entry point, and give the latter the > ability to auto-load themes (and do completion on unloaded themes) etc. I think this is a good idea. The main entry point for users, however, should be M-x customize-themes, rather than the load-theme/enable-theme/disable-theme commands. This interface, by default, allows only one theme to be selected at once (unchecking the "Allow more than one theme at a time" box allows multiple selections). This should alleviate the confusion you allude to over stacking themes.