From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "William D. Colburn (aka Schlake)" Newsgroups: gmane.emacs.help Subject: Colors and Redhat (!crystal ball) Date: Mon, 5 May 2003 12:19:22 -0600 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030505181921.GA333@nmt.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052158912 7117 80.91.224.249 (5 May 2003 18:21:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 18:21:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon May 05 20:21:51 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CkYG-0001Ya-00 for ; Mon, 05 May 2003 20:19:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CkZ6-00010Q-04 for gnu-help-gnu-emacs@m.gmane.org; Mon, 05 May 2003 14:19:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19CkYg-0000oi-00 for help-gnu-emacs@gnu.org; Mon, 05 May 2003 14:19:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19CkYd-0000lN-00 for help-gnu-emacs@gnu.org; Mon, 05 May 2003 14:19:24 -0400 Original-Received: from mailhost.nmt.edu ([129.138.4.52]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CkYc-0000jp-00 for help-gnu-emacs@gnu.org; Mon, 05 May 2003 14:19:23 -0400 Original-Received: (from wcolburn@localhost) by mailhost.nmt.edu (8.12.9/8.12.9) id h45IJMQF001625 for help-gnu-emacs@gnu.org; Mon, 5 May 2003 12:19:22 -0600 Original-To: help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9292 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9292 Ok, I've learned a lot about what information is important to specify, so I'm going to splat it all out here and see if anyone can point me in the right direction. The problem is that weird colors appear in my emacs when I run the command "emacs -nw -q --no-site-file" under Redhat linux. I am used to running emacs 21.2. At work, I am forced to use Redhat. Redhat has emacs 21.2 installed on it. I find the colors which appear under Redhat to be unusable. To see the first indication something is wrong, try the command: emacs -nw -q --no-site-file I am used to, and expecting, a white screen with black text, except for the mode bar at the bottom which will be a black background with white text. However: 21.2 on redhat will have the word "*scratch*" in a blue bar. 21.2 on slackware will have the word "*scratch*" in a black bar. 21.2 on Solaris will have the word "*scratch*" in a black bar. 21.2 on Osf/1 will have the word "*scratch*" in a black bar. The blue bar isn't unreadable, but it does annoy me. Emacs 21.2 appears to set that via mode-line-buffer-identification. The default value according to the emacs help is ("%12b"). The default value in practice is: (#("%12b" 0 4 (face (:weight bold) help-echo "mouse-1: previous buffer, mouse-3: next buffer" local-map (keymap (header-line keymap (mouse-3 . mode-line-bury-buffer) (down-mouse-3 . ignore) (mouse-1 . mode-line-unbury-buffer) (down-mouse-1 . ignore)) (mode-line keymap (mouse-3 . mode-line-bury-buffer) (mouse-1 . mode-line-unbury-buffer) (down-mouse-1 . ignore)))))) This value is the same on Redhat and Slackware. I was able to get rid of the blue bar with this: (custom-set-variables '(mode-line-buffer-identification '("%12b")) ) Putting that lisp into fixblue.el, and running the command "emacs -nw -q --no-site-file -l ./fixblue.el" I get an all black screen. Yahoo! >>From there, I type 'M-x apropos' and then 'apropos-regexp'. Now I get the split screen and a list of things to see further help on. 21.2 on Redhat displays the words "apropos-regexp" in blue. 21.2 on Slackware displayes the words "apropos-regexp" in bold black. Ok, lets try M-x list-faces-display: 21.2 on Redhat shows me lots of different colors and shadings. 21.2 on Slackware shows me lots of blacks and grays. Ok, so now I look at one of the most unreadable categories in list-faces-display: secondary-selection. The 21.2 Redhat box has only "foreground black" and "background cyan" (inverse-video is not on). The 21.2 Slackware box has only "inverse video *" (foreground and background are not on). Perhaps Redhat changed it? I can find out! Now I compile my own emacs (from the source I used to make the Slackware emacs) with --prefix=/tmp/emacs. I then run my new emacs as so: /tmp/emacs/bin/emacs -nw -q --no-site-file -l ./fixblue.el When compiled emacs from my Slackware source, the 21.2 Redhat box has only "foreground black" and "background cyan" (inverse-video is not on). If I compile emacs on a Slackware box it behaves as I would expect, and if I then copy all the executables and list files over to the Redhat box, then the colors suddenly appear. and activating. The question is: WHY? I have jumped through enough hoops to be certain that emacs is detecting something about Redhat that causes this to happen. All I want to do is find out what, so I can put a stop to it. I have also tried setting my terminal to be xterm-mono, but that did not help either. The colors still appear. -- William Colburn, "Sysprog" Computer Center, New Mexico Institute of Mining and Technology http://www.nmt.edu/tcc/ http://www.nmt.edu/~wcolburn