From: Johannes Weiner <hannes@saeurebad.de>
To: Emacs development discussions <emacs-devel@gnu.org>
Subject: [BUG] Dark/bright face detection problem
Date: Fri, 28 Sep 2007 16:38:33 +0200 [thread overview]
Message-ID: <20070928143833.GC26384@saeurebad.de> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1361 bytes --]
Hi,
I have the following scenario:
$ cat broken.el
(set-background-color "gray20")
(set-foreground-color "white")
(set-default-font "lucidasans-10")
$ cat working.el
(set-background-color "gray20")
(set-foreground-color "white")
(set-default-font "lucidasans-10")
1. emacs -Q -l working.el
The background is dark, the face is bright. Everything ok.
2. emacs -Q -l broken.el
The face stays dark. For example in the minibuffer, when I do `find-file', the
font is dark blue and I can hardly read it.
When I call `set-default-font' or evaluate (set-default-font ...) in the
scratch buffer, the face is updated to be bright as in the first scenario.
I compared `set-default-font' and `set-background-color' in frame.el and could
not find anything that could cause this behaviour, so I figured the bug has to
be in `modify-frame-parameters'.
So, `Fmodify_frame_parameters' calls `frame-set-background-mode' when
!HAVE_WINDOW_SYSTEM, otherwise it just calls `x_set_frame_parameter', which
does NOT call `frame-set-background-mode'. Is that right?!
Shouldn't `x_set_frame_parameter' also do something to update the faces
afterwards? I could not find something that loos like it in the code.
HTH! And hit me, if you need more debugging information.
Hannes
--
3BD8 AF56 11AF 205C 9DB6 B10F 76F1 0634 71A4 DCA0
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
next reply other threads:[~2007-09-28 14:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 14:38 Johannes Weiner [this message]
2007-09-28 15:46 ` [BUG] Dark/bright face detection problem Johannes Weiner
2007-09-29 16:10 ` Richard Stallman
2007-09-29 21:20 ` Johannes Weiner
2007-09-29 21:32 ` Johannes Weiner
[not found] ` <E1IbyK0-0005DQ-DU@fencepost.gnu.org>
2007-09-30 16:28 ` Problems with setting face attributes for specific frames Eli Zaretskii
2007-10-01 17:40 ` Richard Stallman
2007-09-30 23:54 ` Drew Adams
2007-10-01 17:40 ` Richard Stallman
2007-10-01 18:17 ` Drew Adams
2007-10-02 3:32 ` Richard Stallman
2007-10-02 15:09 ` Drew Adams
2007-10-02 22:00 ` Richard Stallman
2007-10-01 18:45 ` Stephen J. Turnbull
2007-10-02 3:32 ` Richard Stallman
2007-09-29 16:21 ` [BUG] Dark/bright face detection problem Dan Nicolaescu
2007-09-29 15:52 ` Eli Zaretskii
2007-09-29 16:16 ` Johannes Weiner
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=20070928143833.GC26384@saeurebad.de \
--to=hannes@saeurebad.de \
--cc=emacs-devel@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.