unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [BUG] Dark/bright face detection problem
@ 2007-09-28 14:38 Johannes Weiner
  2007-09-28 15:46 ` Johannes Weiner
  2007-09-29 15:52 ` Eli Zaretskii
  0 siblings, 2 replies; 18+ messages in thread
From: Johannes Weiner @ 2007-09-28 14:38 UTC (permalink / raw)
  To: Emacs development discussions


[-- 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-10-02 22:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 14:38 [BUG] Dark/bright face detection problem Johannes Weiner
2007-09-28 15:46 ` 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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).