From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: zack@upsilon.cc (Stefano Zacchiroli) Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2234: 23.0.90; custom-set-faces inhibits faces differences between X11 and console clients Date: Sun, 8 Feb 2009 11:52:19 +0100 (CET) Message-ID: <20090208105219.8F70061AA@usha.takhisis.invalid> Reply-To: Stefano Zacchiroli , 2234@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234091095 29216 80.91.229.12 (8 Feb 2009 11:04:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2009 11:04:55 +0000 (UTC) Cc: rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 12:06:09 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LW7TI-0007uC-P7 for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 12:05:40 +0100 Original-Received: from localhost ([127.0.0.1]:58208 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LW7Ry-0007uX-1s for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Feb 2009 06:03:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LW7Rs-0007sp-D9 for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2009 06:03:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LW7Rq-0007qa-LR for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2009 06:03:39 -0500 Original-Received: from [199.232.76.173] (port=42744 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LW7Rq-0007qA-4I for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2009 06:03:38 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:32999) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LW7Rp-0001fE-E9 for bug-gnu-emacs@gnu.org; Sun, 08 Feb 2009 06:03:37 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n18B3WlQ006309; Sun, 8 Feb 2009 03:03:33 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n18B02l2005172; Sun, 8 Feb 2009 03:00:02 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: zack@upsilon.cc (Stefano Zacchiroli) Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 08 Feb 2009 11:00:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2234 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12340903903949 (code B ref -1); Sun, 08 Feb 2009 11:00:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 8 Feb 2009 10:53:10 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n18Ar7J6003943 for ; Sun, 8 Feb 2009 02:53:08 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:59626 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LW7Fo-0007Fq-VN for emacs-pretest-bug@gnu.org; Sun, 08 Feb 2009 05:51:13 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LW7Ha-000142-Pm for emacs-pretest-bug@gnu.org; Sun, 08 Feb 2009 05:53:05 -0500 Original-Received: from fettunta.fettunta.org ([67.207.129.222]:34353) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LW7Ha-00013p-Ci for emacs-pretest-bug@gnu.org; Sun, 08 Feb 2009 05:53:02 -0500 Original-Received: from usha.takhisis.invalid (unknown [10.17.0.10]) by fettunta.fettunta.org (Postfix) with ESMTP id 8B1C3186CF; Sun, 8 Feb 2009 10:53:00 +0000 (UTC) Original-Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 8F70061AA; Sun, 8 Feb 2009 11:52:19 +0100 (CET) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 08 Feb 2009 06:03:39 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25036 gmane.emacs.pretest.bugs:23869 Archived-At: I use a main X11 emacs with clients (sometime X11, sometime console) which attach to it. I want to have "black on white" X11 clients and "white on black" console clients. (Actually, I don't care what Emacs does with console colors, I just want it to preserves my terminal defaults and I do use black background terminals.) If I have *no* custom-set-faces section in my .emacs the default configuration just does what I want. - I start main X11 emacs (which is white on black) - I start console clients (which are black on white, respecting the terminal) ... but I do need to customize faces, because I want the font in X11 to be smaller than the default. As soon as I add a (custom-set-faces...) to my ~/.emacs, no matter _what_ I write into it, the above doesn't work anymore. More precisely it seems that the first kind of emacs which gets launched (X11 vs console) fixes once and for all foreground and background colors. Hence: - if I start the first emacs on X11, I'll the have "black on white" console clients - if I start the first emacs on console, everything is fine again My feeling is that there is a quite profund issue here of separation of the initialization code, which looks like to be centralized while it should be (to some extent) split and partly executed by clients. ... but more practically I'm also looking for workarounds :-) TIA, Cheers. In GNU Emacs 23.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-02-07 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090207-1) Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.90/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: it_IT.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Conf[Xdefaults] Minor modes in effect: iswitchb-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 1 6 1 4 ; 0 c C-x C-c M-x r e p o r C-g C-x C-f , e . X r C-n C-n C-n i E a m a c s . f o n t : SPC m o n o s p a c e C-/ M-x r e p o r t - e m ESC [ > 1 ; 1 6 1 4 ; 0 c C-x C-g j n C-n C-n C-n C-n C-c C-c C-l C-x C-c ESC [ > 1 ; 1 6 1 4 ; 0 c C-x C-c k k k k ESC [ > 1 ; 1 6 1 4 ; 0 c M-x r e p o r t Recent messages: When done with a buffer, type C-x # viper-find-char: Viper bell [2 times] viper-prefix-arg-com: Viper bell Quit viper-search-next: No previous search string (No files need saving) When done with a buffer, type C-x # (No files need saving) line-move-1: Beginning of buffer When done with a buffer, type C-x #