From zack@upsilon.cc Sun Feb 8 02:53:10 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 8 Feb 2009 10:53:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 8F70061AA; Sun, 8 Feb 2009 11:52:19 +0100 (CET) To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org Subject: 23.0.90; custom-set-faces inhibits faces differences between X11 and console clients Message-Id: <20090208105219.8F70061AA@usha.takhisis.invalid> Date: Sun, 8 Feb 2009 11:52:19 +0100 (CET) From: zack@upsilon.cc (Stefano Zacchiroli) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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 # From cyd@stupidchicken.com Sun Feb 8 08:00:52 2009 Received: (at 2234) by emacsbugs.donarmstrong.com; 8 Feb 2009 16:00:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n18G0nvv016830 for <2234@emacsbugs.donarmstrong.com>; Sun, 8 Feb 2009 08:00:50 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id F3D3C57E1FC; Sun, 8 Feb 2009 11:01:32 -0500 (EST) From: Chong Yidong To: zack@upsilon.cc (Stefano Zacchiroli) Cc: 2234@debbugs.gnu.org Subject: Re: 23.0.90; custom-set-faces inhibits faces differences between X11 and console clients Date: Sun, 08 Feb 2009 11:01:32 -0500 Message-ID: <87d4dskjdv.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This is, indeed, a problem. Tthe customize-face facility ought to allow you to specify terminal-dependent face settings. Hopefully, someone will write such an enhancement, but this will probably not happen before the upcoming 23.1 release. One workaround that I can suggest is to reset the defface spec of the face within your .emacs file, like this: (put 'font-lock-comment-face 'face-defface-spec nil) (defface font-lock-comment-face '((((class color) (background light)) (:foreground "green")) (((class color) (background dark)) (:foreground "yellow")) (t (:weight bold :slant italic))) "Font Lock mode face used to highlight comments." :group 'font-lock-faces) The changes that you make this way will not apply to the first frame, but they will apply to subsequent frames. From cyd@stupidchicken.com Sun Feb 8 08:01:22 2009 Received: (at control) by emacsbugs.donarmstrong.com; 8 Feb 2009 16:01:22 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=VALID_BTS_CONTROL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n18G1FLe016839 for ; Sun, 8 Feb 2009 08:01:16 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id CBFB957E225; Sun, 8 Feb 2009 11:01:58 -0500 (EST) From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 2234 wishlist Date: Sun, 08 Feb 2009 11:01:58 -0500 Message-ID: <87ab8wkjd5.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 2234 wishlist thanks From monnier@iro.umontreal.ca Sun Feb 8 12:19:58 2009 Received: (at 2234) by emacsbugs.donarmstrong.com; 8 Feb 2009 20:19:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n18KJtiF016229 for <2234@emacsbugs.donarmstrong.com>; Sun, 8 Feb 2009 12:19:56 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsoEAATNjklFxIvi/2dsb2JhbACBbsp5hBoGgx0 X-IronPort-AV: E=Sophos;i="4.37,400,1231131600"; d="scan'208";a="33553066" Received: from 69-196-139-226.dsl.teksavvy.com (HELO ceviche.home) ([69.196.139.226]) by ironport2-out.teksavvy.com with ESMTP; 08 Feb 2009 15:19:48 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 2E1D6B4015; Sun, 8 Feb 2009 15:19:49 -0500 (EST) From: Stefan Monnier To: Chong Yidong Cc: 2234@debbugs.gnu.org, zack@upsilon.cc (Stefano Zacchiroli) Subject: Re: bug#2234: 23.0.90; custom-set-faces inhibits faces differences between X11 and console clients Message-ID: References: <87d4dskjdv.fsf@cyd.mit.edu> Date: Sun, 08 Feb 2009 15:19:49 -0500 In-Reply-To: <87d4dskjdv.fsf@cyd.mit.edu> (Chong Yidong's message of "Sun, 08 Feb 2009 11:01:32 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > This is, indeed, a problem. Tthe customize-face facility ought to allow > you to specify terminal-dependent face settings. Hopefully, someone > will write such an enhancement, but this will probably not happen before > the upcoming 23.1 release. Do M-x customize-face RET font-lock-comment-face RET Then middle-click on "state" and select "for all kinds of displays": you can then give distinct settings for different circumstances. Stefan From zack@upsilon.cc Sun Feb 15 09:29:00 2009 Received: (at 2234-done) by emacsbugs.donarmstrong.com; 15 Feb 2009 17:29:01 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fettunta.fettunta.org (fettunta.fettunta.org [67.207.129.222]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1FHSvDN028366 for <2234-done@emacsbugs.donarmstrong.com>; Sun, 15 Feb 2009 09:28:58 -0800 Received: from usha.takhisis.invalid (unknown [10.17.0.10]) by fettunta.fettunta.org (Postfix) with ESMTP id 363D4186DF; Sun, 15 Feb 2009 17:28:56 +0000 (UTC) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 5585A6099; Sun, 15 Feb 2009 16:09:43 +0100 (CET) Date: Sun, 15 Feb 2009 16:09:43 +0100 From: Stefano Zacchiroli To: Stefan Monnier Cc: 2234-done@debbugs.gnu.org Subject: Re: bug#2234: 23.0.90; custom-set-faces inhibits faces differences between X11 and console clients Message-ID: <20090215150943.GE31901@usha.takhisis.invalid> References: <87d4dskjdv.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) On Sun, Feb 08, 2009 at 03:19:49PM -0500, Stefan Monnier wrote: > > This is, indeed, a problem. Tthe customize-face facility ought to allow > > you to specify terminal-dependent face settings. Hopefully, someone > > will write such an enhancement, but this will probably not happen before > > the upcoming 23.1 release. > > Do M-x customize-face RET font-lock-comment-face RET > Then middle-click on "state" and select "for all kinds of displays": you > can then give distinct settings for different circumstances. Many thanks, starting from this tip I indeed found the correct solution. Actually, what I needed is to override *all* faces for console mode, with respect to what happens in the X11 world. I just followed your suggestion, using "'default" as the font face instead of "'font-lock-comment-face". So, in the end, it was not a bug, I'm therefore closing the bug with this post. Cheers. -- Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ Dietro un grande uomo c'è ..| . |. Et ne m'en veux pas si je te tutoie sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime From unknown Sun Aug 17 10:17:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Mar 2009 14:24:09 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator