From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Gary" Newsgroups: gmane.emacs.help Subject: Re: Face differences between emacs-nox & windows-nt Date: Fri, 08 Oct 2010 13:00:43 +0200 Message-ID: <83y6a97xus.fsf@garydjones.name> References: <87k4ltivfv.fsf@mail.tbulka.de> <83wrptrtjk.fsf@garydjones.name> <83hbgxnjzh.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286535861 23903 80.91.229.12 (8 Oct 2010 11:04:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2010 11:04:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 08 13:04:20 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1P4AkL-0002YF-Az for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Oct 2010 13:04:17 +0200 Original-Received: from localhost ([127.0.0.1]:49184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4AkK-0006im-4B for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Oct 2010 07:04:16 -0400 Original-Received: from [140.186.70.92] (port=50613 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4Ah9-0004WZ-Az for help-gnu-emacs@gnu.org; Fri, 08 Oct 2010 07:01:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4Ah8-00060P-01 for help-gnu-emacs@gnu.org; Fri, 08 Oct 2010 07:00:59 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4Ah7-00060J-Lo for help-gnu-emacs@gnu.org; Fri, 08 Oct 2010 07:00:57 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P4Ah3-0001PS-P9 for help-gnu-emacs@gnu.org; Fri, 08 Oct 2010 13:00:53 +0200 Original-Received: from 80-219-87-195.dclient.hispeed.ch ([80.219.87.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Oct 2010 13:00:53 +0200 Original-Received: from help-gnu-emacs by 80-219-87-195.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Oct 2010 13:00:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 80-219-87-195.dclient.hispeed.ch User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (cygwin) X-No-Archive: Yes Cancel-Lock: sha1:aZY47OBUCDrQvSEOBegoyznWc7c= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Gmane-Expiry: 2010-10-22 Xref: news.gmane.org gmane.emacs.help:75095 Archived-At: Eli Zaretskii wrote: >> From: "Gary" >> Date: Fri, 08 Oct 2010 10:13:35 +0200 >> >> Basically I have two versions - one the standard Windows emacs from >> ftp.gnu.org/gnu/emacs/windows/ and the other the Cygwin emacs - one >> "graphical" and one console. I have got most of my configuration > working >> with both, only the faces (particularly the colours) aren't happily >> working with both. > > What exactly are the problems? Your original question was about the > default faces, Yeah. I thought that was a good starting point. > but now you seem to say that you have the faces > customized, I hae *some* faces customised. Not the ones I initially posted about though. > and the results of those customizations are somehow > unsatisfactory. They're fine in one (console, where I actually did the customisation), less so in the other (graphical). A couple of examples: 1. The background colour of the console and "graphics" windows are very different - black vs. white (note: I'm not referring to the effect of M-x set-background-color here, but rather the bg colour of the window/console "behind" emacs). I happen to prefer a black bg for working with text, but other windows lighter in colour (i.e. I would also like my graphical emacs to have a black bg). That means face colour contrasts are wrong when faces are customized in (say) console emacs. Some text is simple invisible in the graphical version as a result. 2. Because of differences in the default faces, the colouring of some modes' syntactical elements is different between the two (i.e. when the used face is the default face I started the thread about). In fact, since a lot of faces use inherited values, won't that potentially affect more than just those specific faces? I'm wondering if the best way is just to (setq custom-file "~/.emacs.d/.emacs-custom.el") because where emacs thinks "~" is depends on whether it is Cygwin or Windows, so I can customize them independently. Not exactly DRY though. Note: calling set-background-color in the console version, where I did all my customisation, can have the pretty unpleasant effect of changing foreground text colours as well (I guess there is some built-in contrast calculation going on somewhere). For example the content of gnus' "Newsgroup" header line is shown in dark blue or bright yellow depending on whether set-background-color is called with black or white. So many my lovingly declared colours and contrasts vanish because emacs now "knows" I have a black bg, even though, actually, the colour of the bg does *not* change (it is set in the console, remember). That's not a total disaster, since I can customise them again to something that contrasts okay - at least then the bg could be the same in both emacsen - but I don't know how much that would help and it's a rather large project if I don't know it will work. Any thoughts on that?