From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2234: marked as done (23.0.90; custom-set-faces inhibits faces differences between X11 and console clients) Date: Sun, 15 Feb 2009 17:35:02 +0000 Message-ID: References: <20090215150943.GE31901@usha.takhisis.invalid> <20090208105219.8F70061AA@usha.takhisis.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1234719302-29637-0" X-Trace: ger.gmane.org 1234719838 13419 80.91.229.12 (15 Feb 2009 17:43:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2009 17:43:58 +0000 (UTC) To: Stefano Zacchiroli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 15 18:45:12 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 1LYl3E-0004y9-Or for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2009 18:45:10 +0100 Original-Received: from localhost ([127.0.0.1]:51038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYl1u-0006Fq-La for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Feb 2009 12:43:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LYl1q-0006EY-0T for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2009 12:43:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LYl1n-0006CA-Ht for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2009 12:43:41 -0500 Original-Received: from [199.232.76.173] (port=50592 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LYl1n-0006C7-9K for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2009 12:43:39 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53750) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LYl1m-0002yM-Mf for bug-gnu-emacs@gnu.org; Sun, 15 Feb 2009 12:43:39 -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 n1FHhY4e031980; Sun, 15 Feb 2009 09:43:34 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1FHZ3Gm029668; Sun, 15 Feb 2009 09:35:03 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2234 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:25321 Archived-At: This is a multi-part message in MIME format... ------------=_1234719302-29637-0 Content-Disposition: inline Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Your message dated Sun, 15 Feb 2009 16:09:43 +0100 with message-id <20090215150943.GE31901@usha.takhisis.invalid> and subject line Re: bug#2234: 23.0.90; custom-set-faces inhibits faces dif= ferences between X11 and console clients has caused the Emacs bug report #2234, regarding 23.0.90; custom-set-faces inhibits faces differences between X11 = and console clients to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2234: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2234 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1234719302-29637-0 Content-Type: message/rfc822 Content-Disposition: inline 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) MIME-Version: 1.0 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 # ------------=_1234719302-29637-0 Content-Type: message/rfc822 Content-Disposition: inline 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@emacsbugs.donarmstrong.com 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 In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n1FHhY4e031980 On Sun, Feb 08, 2009 at 03:19:49PM -0500, Stefan Monnier wrote: > > This is, indeed, a problem. Tthe customize-face facility ought to al= low > > you to specify terminal-dependent face settings. Hopefully, someone > > will write such an enhancement, but this will probably not happen bef= ore > > the upcoming 23.1 release. >=20 > Do M-x customize-face RET font-lock-comment-face RET > Then middle-click on "state" and select "for all kinds of displays": yo= u > 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. --=20 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'=E8 ..| . |. Et ne m'en veux pas si je te tutoi= e sempre uno zaino ...........| ..: |.... Je dis tu =E0 tous ceux que j'aim= e ------------=_1234719302-29637-0--