home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lucidem / help / 968 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.6 KB  |  60 lines

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