name junk doesn work?
When I run `xterm -name junk’, I get an xterm whose class name according to xprop, is `junk’. This is the way it’s supposed to work, I think. When I run `xemacs -name junk’ the class name is not set to `junk’. It’s still `emacs’. What does `xemacs -name’ really do? The reason I ask is that my window manager (fvwm) will make a window sticky and I use XEmacs to read my mail. I want that XEmacs window to be sticky, without having to use the window manager’s function to set the window sticky. What gives? `xemacs -name’ sets the application name for the program (that is, the thing which normally comes from `argv[0]’). Using `-name’ is the same as making a copy of the executable with that new name. The WM_CLASS property on each frame is set to the frame-name, and the application-class. So, if you did `xemacs -name FOO’ and then created a frame named BAR, you’d get an X window with WM_CLASS = ( “BAR”, “Emacs”).