[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tty_defined_color is called even in non-tty environment
From: |
Takeshi YAMADA |
Subject: |
tty_defined_color is called even in non-tty environment |
Date: |
Tue, 07 Dec 2004 16:04:41 +0900 (JST) |
In face_color_supported_p in xfaces.c,
tty_defined_color is called even in non-tty environment if HAVE_X_WINDOWS is
not defined.
This may cause a possible problem in Windows and/or MacOS.
A suggested fix follows.
Best wishes,
Takeshi
--
Takeshi Yamada
*** /yamada/emacs/xfaces.c.org Tue Dec 7 15:52:29 2004
--- /yamada/emacs/xfaces.c Tue Dec 7 15:53:36 2004
***************
*** 1510,1516 ****
XSETFRAME (frame, f);
return
! #ifdef HAVE_X_WINDOWS
FRAME_WINDOW_P (f)
? (!NILP (Fxw_display_color_p (frame))
|| xstricmp (color_name, "black") == 0
--- 1510,1516 ----
XSETFRAME (frame, f);
return
! #if defined (HAVE_X_WINDOWS) || defined (WINDOWSNT) || defined (MAC_OS)
FRAME_WINDOW_P (f)
? (!NILP (Fxw_display_color_p (frame))
|| xstricmp (color_name, "black") == 0
- tty_defined_color is called even in non-tty environment,
Takeshi YAMADA <=