giacomo boffi wrote:
i have a system with two versions installed, 14.12 being the default
(symlink pointing to...), and when i started 15.b14 giving to bash its
full name, its appearance was ... messy
after some investigation i found that the application name was
different from Emacs, and i thought to the "-name" option for a fix
what the info node says about "-name"
------------------------------------------------------------------------
`-name NAME'
Use the resource manager resources specified by NAME. The default
is to use the name of the program (`argv[0]') as the resource
manager name.
------------------------------------------------------------------------
while the man page says
------------------------------------------------------------------------
-name name
Specifies the program name which should be used when looking up
defaults in the user's X resources.
------------------------------------------------------------------------
what happens is different in different environments
1. debian, 5.14b
doesn't obeys -name (i mean, it doesn't do what _i_ think it should
(but i'm often wrong), that is, if i start "xemacs -name porridge"
the window names are:
1st Window: Emacs.emacs.emacs:__scratch_@boffi95: Geometry=967x669+1+1
2nd Window: Emacs.emacs._scratch_@boffi95: Geometry=955x632+1+28
and xemacs finds its proper resources)
the program name when looking for resources is Emacs, even if
argv[0] is xemacs-21.5-b14
2. mandrake, 5.14b
doesn't obeys -name (imHo)
the program name when looking for resources is argv[0] (it
doesn't find proper resources!)
3. mandrake, 4.12
doesn't obeys -name (imHo)
the program name is Emacs anyway
i'm in doubt if the docs need some clarification, if the one in need
of clarification it's me, or there is a sort of problem in the program
The middle option ;)
Each component in an X resource path has two values: a "name" and
"class".
For the top-level widget (i.e. the first component in all of the
resource paths), the name is set by the -name option, but the class is
always "Emacs".
That way, you can have some resources which apply to every
Emacs/XEmacs instance, (e.g. "*Emacs*EmacsFrame..."), and other
resources which only apply to specific instances (e.g.
"*porridge*EmacsFrame...").
The name of the app-defaults file is determined by the class, not the
name.
--
Glynn Clements <glynn.clements(a)virgin.net>