From: "William D. Colburn (aka Schlake)" <wcolburn+help-gnu-emacs@nmt.edu>
Subject: Colors and Redhat (!crystal ball)
Date: Mon, 5 May 2003 12:19:22 -0600 [thread overview]
Message-ID: <20030505181921.GA333@nmt.edu> (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
next reply other threads:[~2003-05-05 18:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-05 18:19 William D. Colburn (aka Schlake) [this message]
2003-05-06 10:35 ` Colors and Redhat (!crystal ball) Eli Zaretskii
[not found] <mailman.5595.1052158774.21513.help-gnu-emacs@gnu.org>
2003-05-05 22:02 ` 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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030505181921.GA333@nmt.edu \
--to=wcolburn+help-gnu-emacs@nmt.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.