From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Global Font Lock by default Date: Wed, 02 Nov 2005 12:00:53 -0800 Message-ID: <200511022000.jA2K0uKN025181@scanner2.ics.uci.edu> References: <200510311648.j9VGmgKN020532@scanner2.ics.uci.edu> <878xw9r3tu.fsf@pacem.orebokech.com> <200510311747.j9VHl2KN024250@scanner2.ics.uci.edu> <871x21r0v6.fsf@pacem.orebokech.com> <200510312048.j9VKm8KN006460@scanner2.ics.uci.edu> <87r7a1pf1h.fsf@pacem.orebokech.com> <200511010635.jA16ZNKN011265@scanner2.ics.uci.edu> <200511012043.jA1Kh2KN002153@scanner2.ics.uci.edu> <200511020546.jA25kjKN005165@scanner2.ics.uci.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130961947 22407 80.91.229.2 (2 Nov 2005 20:05:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2005 20:05:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 02 21:05:45 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EXOr2-0005UT-Ao for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2005 21:05:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXOr1-0008Nw-Nx for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2005 15:05:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EXOqM-0008CI-6x for emacs-devel@gnu.org; Wed, 02 Nov 2005 15:04:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EXOqL-0008BV-Cu for emacs-devel@gnu.org; Wed, 02 Nov 2005 15:04:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EXOqL-0008BG-6f for emacs-devel@gnu.org; Wed, 02 Nov 2005 15:04:21 -0500 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EXOqK-00019g-CO; Wed, 02 Nov 2005 15:04:20 -0500 Original-Received: from vino.ics.uci.edu (dann@vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.12.10/8.12.10) with ESMTP id jA2K0uKN025181; Wed, 2 Nov 2005 12:00:56 -0800 (PST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed, 02 Nov 2005 20:55:09 +0200") Original-Lines: 42 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-100, required 5, USER_IN_WHITELIST) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45310 Archived-At: Eli Zaretskii writes: > > Cc: emacs-devel@gnu.org > > From: Dan Nicolaescu > > Date: Tue, 01 Nov 2005 21:46:43 -0800 > > > > Eli Zaretskii writes: > > > > > > For example: on a 256 colors xterm, what should list-colors-display > > > > show when using --color=8? The same as it would on a 8 color xterm > > > > (and no --color options)? > > > > > > Yes. > > > > That does not happen right now. The problem is that > > xterm-register-default-colors creates (display-color-cells) colors, it > > does not take into account the --color parameter. Ooops, this is a bit more convoluted than I believed... > That's very strange, because the code was designed so that > display-color-cells _does_ take --colors into account. Here's how it > was supposed to work: > > . display-color-cells calls tty-display-color-cells > > . tty-display-color-cells returns the value of TN_max_colors > > . TN_max_colors is modified by term.c:tty_setup_colors > > . tty_setup_colors is called by frame.c:store_frame_param (via > set_tty_color_mode) when the frame parameters alist includes the > tty-color-mode parameter (assume a 256 colors xterm) One problem is here: tty_setup_colors does not do anything with its argument (mode) if for example mode is 16 (i.e. when using --color=16) Another problem: when using --color=8, display-color-cells will return 8 after emacs is started, but when xterm-register-default-colors is run it returns 256 ...