From: "Gary" <help-gnu-emacs@garydjones.name>
To: help-gnu-emacs@gnu.org
Subject: Re: Face differences between emacs-nox & windows-nt
Date: Fri, 08 Oct 2010 13:00:43 +0200 [thread overview]
Message-ID: <83y6a97xus.fsf@garydjones.name> (raw)
In-Reply-To: 83hbgxnjzh.fsf@gnu.org
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?
next prev parent reply other threads:[~2010-10-08 11:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 9:01 Face differences between emacs-nox & windows-nt Gary
2010-10-07 13:49 ` Eli Zaretskii
2010-10-07 14:23 ` Gary
2010-10-07 15:10 ` Eli Zaretskii
2010-10-07 20:45 ` Thomas Bulka
2010-10-08 8:13 ` Gary
2010-10-08 8:53 ` Eli Zaretskii
2010-10-08 11:00 ` Gary [this message]
2010-10-08 12:36 ` Eli Zaretskii
2010-10-20 8:37 ` Gary
2010-10-20 8:59 ` Gary
[not found] ` <mailman.0.1287565213.18510.help-gnu-emacs@gnu.org>
2010-10-20 16:45 ` Stefan Monnier
[not found] ` <mailman.3.1286535662.6837.help-gnu-emacs@gnu.org>
2010-10-08 22:18 ` Tim X
2010-10-08 15:14 ` Thomas Bulka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83y6a97xus.fsf@garydjones.name \
--to=help-gnu-emacs@garydjones.name \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.