http://qa.mandrakesoft.com/show_bug.cgi?id=5249


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[EMAIL PROTECTED]




------- Additional Comments From [EMAIL PROTECTED]  2003-05-09 04:22 -------
There is a number of problems that are causing this:

There is /etc/X11/Xresources and /etc/X11/app-defaults/Emacs that both have
settings for emacs. They are the same... except there is a mix of case.

/etc/X11/Xresources has this:
emacs*Background: DarkSlateGray
emacs*Foreground: Wheat
emacs*pointerColor: Orchid
emacs*cursorColor: Orchid
emacs*bitmapIcon: on
emacs*font: fixed
emacs.geometry: 80x25

but /etc/X11/app-defaults/Emacs has this:
emacs*foreground:                       Wheat
emacs*background:                       DarkSlateGray
emacs*region.attributeForeground:       White
emacs*region.attributeBackground:       SteelBlue
emacs*pointerColor:                     Orchid
emacs*cursorColor:                      Orchid

This means a users .Xdefauts must have entries for both cases:
emacs*foreground:                       Wheat
emacs*Foreground:                       Wheat

Also, there is another problem, emacs will automagically look at
/etc/X11/app-defaults/Emacs no matter what. So if you decided to override the
Xresources entries, then they will be in the X-server "rdb", but the "case" will
not match. (In otherwords, the entries in /etc/X11/Xresources are useless for
emacs as the case is wrong for the widgets - they will however confuse the user)

The solution is to remove the emacs entries in /etc/X11/Xresources as they are
worthless (use editres to verify widget names). Then, make sure you use the same
case as in /etc/X11/app-defaults/Emacs when overriding .Xdefaults values.

Note: When you run emacs as "emacs-21.2.93" or "emacs-<version>" the "main"
widget name is now called "emacs-21_2_93" or "emacs-<release>_<minor>_<patch>".
So you can add .Xdefaults values like this (mdk9.1):
emacs-21_2_93*title:            Emacs
emacs-21_2_93*cursorColor:      yellow
emacs-21_2_93*foreground:       white
emacs-21_2_93*background:       black
emacs-21_2_93*font:             7x13bold

PS: I did overstate /etc/X11/Xresources as being useless, the "font",
"bitmapIcon", and "geometry" are valid the rest is non-existant X widgets.

Play around with editres and xrdb to see the bowels of how X really works... ;)

If you have anymore Xdefaults questions let me know...

BTW, there was a problem in mdk9.0 where /lib/cpp had a broken symlink to
/etc/alternatives/cpp. This caused xrdb to fail so .Xdefault values were never
merged with the system values. Check to make sure xrdb can see a valid cpp.
(xrdb --help will list the default cpp path/file)

--
Bryan Whitehead
SysAdmin - JPL - Interferometry and Large Optical Systems
Phone: 818 354 2903
[EMAIL PROTECTED]

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


------- Reminder: -------
assigned_to: [EMAIL PROTECTED]
status: REOPENED
creation_date: 
description: 
When called as 'emacs', /etc/X11/app-defaults/Emacs overrides values written in
$HOME/.Xdefaults. I think values in $HOME should override the defaults.

Workarounds:

- call emacs as 'emacs-21.3'
- call emacs with a different name argument like 'emacs -name "GNU Emacs"'

Reply via email to