all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Colors and Redhat (!crystal ball)
@ 2003-05-05 18:19 William D. Colburn (aka Schlake)
  2003-05-06 10:35 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: William D. Colburn (aka Schlake) @ 2003-05-05 18:19 UTC (permalink / raw)


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" <wcolburn@nmt.edu>
Computer Center, New Mexico Institute of Mining and Technology
http://www.nmt.edu/tcc/     http://www.nmt.edu/~wcolburn

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-05-06 20:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:02 ` Colors and Redhat (!crystal ball) Edward O'Connor
2003-05-05 22:33   ` William D. Colburn (aka Schlake)
     [not found]   ` <mailman.5605.1052174068.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:51     ` Edward O'Connor
2003-05-06 11:17 ` Oliver Scholz
2003-05-06 13:18 ` Glenn Morris
2003-05-06 16:55   ` Kai Großjohann
2003-05-06 16:52 ` Kai Großjohann
2003-05-06 20:02   ` William D. Colburn (aka Schlake)
2003-05-05 18:19 William D. Colburn (aka Schlake)
2003-05-06 10:35 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.