José Romildo Malaquias wrote:
I am trying to have XEmacs (version 21.1.9) and GNU Emacs use X
resources correctly in my Red Hat Linux 6.2 system. But the resources
they use are not (fully) compatible. As far as I know, the application
class of the GNU Emacs process is "Emacs" and the application class
for the XEmacs process may be "Emacs" or "XEmacs", as described in
documentation for the variable `x-emacs-application-class'.
I will not set this variable because, "for the changes to this
variable to take effect, it must be made before the connection to the
X server is initialized, that is, the variable may only be changed
before emacs is dumped, or by setting it in the file
lisp/term/x-win.el" and I want to do a user configuration instead of a
system wide configuration.
"If this variable is nil before the connection to the X server is
first initialized (which it is by default), the X resource database
will be consulted and the value will be set according to whether any
resources are found for the application class `XEmacs'.
Examining the source  for 21.1.4 indicates that XEmacs' idea of
"the X resource database" amounts to the value returned by
XResourceManagerString(), i.e. the RESOURCE_MANAGER property of the
root window of screen 0, which is set by e.g. "xrdb -merge".
If you don't use xrdb, then XEmacs will always use the class "Emacs".
It seems that XEmacs is not behaving as described in the
or maybe I have misunderstanded something.
 have_xemacs_resources_in_xrdb(), in device-x.c.
Glynn Clements <glynn(a)sensei.co.uk>