home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Thu, 28 Jan 1993 04:22:39 EST
- Date: Thu, 28 Jan 1993 01:22:35 PST
- Message-ID: <9301280922.AA05037@thalidomide.lucid>
- X-Windows: More than enough rope.
- From: jwz@lucid.com (Jamie Zawinski)
- Sender: jwz%thalidomide@lucid.com
- Subject: Re: kind of -geometry wxh+x+y for a new screen
- References: <1993Jan26.185113.169699@eratu.rz.uni-konstanz.de>
- <WARSAW.93Jan26153002@anthem.nlm.nih.gov>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Lines: 46
-
- Barry A. Warsaw wrote:
- >
- > 1. It seems you have to restart emacs whenever you do an "xrdb -load"
- > because lemacs can't re-read the resource database.
-
- Yes, this is because the resource database is read only when the display
- connection is opened, by XtAppInitialize.
-
- > Jamie, maybe you can add a lisp function x-reread-resources???
-
- This could be done, but it would be slightly non-portable, since I believe
- there's no advertised way to read the resource db; all of the directory-
- searching magic is built into Xt. Also, it would leak like mad, since
- I'm pretty sure resource dbs are never freed.
-
- > 2. I can't seem to find a way to specify different initial screens.
- > -name switch doesn't seem to work.
-
- -name works, but maybe it doesn't do what you think it does. For resource-
- lookup purposes, it effectively changes what argv[0] is. This doesn't
- have anything to do with screen names, which are a level down in the
- hierarchy from that.
-
- > Maybe there should be a -screen switch to specify the screen-name of the
- > initial screen???
-
- That'd be easy; just have that switch set `default-screen-name'.
-
- > If I start up lemacs with "emacs -name foo" I would expect one of the
- > following things to happen: the initial screen comes up with a screen
- > name of "foo", or f.identify (from tvtwm) should identify the
- > Class.res_name as "foo".
-
- The Class.res_name of a screen is the name of that screen (the name of the
- Widget.) Remember that this doesn't have anything to do with the window
- title. The Class.res_class is the resource-class of emacs itself (usually
- "Emacs"). If you start emacs with "-name bar", then a screen named "foo"
- gets its resources from "bar.foo*" / "Emacs.EmacsScreen*".
-
- (I'm not really sure that the Class.res_class of a screen should be "Emacs",
- the class of the application, instead of "EmacsScreen", the class of the
- widget. It seems inconsistent that the res_name comes from the widget and
- the res_class comes from the application. But this is what
- XtCreatePopupShell does, so I guess it's correct by definition.)
-
- -- Jamie
-