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

  1. Newsgroups: alt.lucid-emacs.help
  2. Path: sparky!uunet!UB.com!pacbell.com!sgiblab!darwin.sura.net!lhc!lhc!warsaw
  3. From: warsaw@nlm.nih.gov (Barry A. Warsaw)
  4. Subject: Re: kind of -geometry wxh+x+y for a new screen
  5. In-Reply-To: jwz@lucid.com's message of 28 Jan 93 09:22:35 GMT
  6. Message-ID: <WARSAW.93Jan28131931@anthem.nlm.nih.gov>
  7. Lines: 80
  8. Sender: news@nlm.nih.gov
  9. Reply-To: warsaw@nlm.nih.gov (Barry A. Warsaw)
  10. Organization: Century Computing, Inc.
  11. References: <1993Jan26.185113.169699@eratu.rz.uni-konstanz.de>
  12.     <WARSAW.93Jan26153002@anthem.nlm.nih.gov>
  13.     <9301280922.AA05037@thalidomide.lucid>
  14. Date: 28 Jan 93 18:19:31 GMT
  15.  
  16.  
  17.     me> Jamie, maybe you can add a lisp function x-reread-resources???
  18.  
  19.     Jamie> This could be done, but it would be slightly non-portable,
  20.     Jamie> since I believe there's no advertised way to read the
  21.     Jamie> resource db; all of the directory- searching magic is built
  22.     Jamie> into Xt.  Also, it would leak like mad, since I'm pretty
  23.     Jamie> sure resource dbs are never freed.
  24.  
  25. You could read the resources via the Xrm functions right?  Ah, I see
  26. the problem.  Its getting *Xt* to use the new resources.  I'm not up
  27. on Xt stuff so I'm gathering there's no way to re-init Xt's view of
  28. the resource db.  I wouldn't expect existing screens to change their
  29. attributes when I evaled x-reread-resources -- I'd be satisfied if new
  30. screens came up with the new attribute values.  Oh well, either way,
  31. ain't no big thang since I don't expect to be changing attributes that
  32. often.  The nice thing is that you can play with the attributes in
  33. lisp until you're pretty happy with them, then fold them into your
  34. .Xdefault for long-term use.
  35.  
  36.     me> 2. I can't seem to find a way to specify different initial
  37.     me> screens.  -name switch doesn't seem to work.
  38.  
  39. I meant to say, "different initial screen attributes".
  40.                                           ^^^^^^^^^^
  41.  
  42.     Jamie> -name works, but maybe it doesn't do what you think it
  43.     Jamie> does.  For resource- lookup purposes, it effectively
  44.     Jamie> changes what argv[0] is.  This doesn't have anything to do
  45.     Jamie> with screen names, which are a level down in the hierarchy
  46.     Jamie> from that.
  47.  
  48. This is what I really want, and what I just can't seem to make work.
  49. Let me give a concrete example and perhaps you can tell me what I'm
  50. doing wrong (I *know* I'm missing something obvious somewhere).
  51.  
  52. warsaw@anthem[10]% xrdb -query | grep background | grep -i emacs
  53. Emacs*background:    LightYellow             <=== background for class
  54. Emacs*QUICK.background:    PaleGoldenRod
  55. Emacs*WIDE.background:    gainsboro
  56. emacs1*background:    #dcc8aa
  57. emacs2*background:    PaleGoldenRod
  58. emacs3*background:    LightYellow
  59. emacs4*background:    PeachPuff
  60. emacs5*background:    Peru
  61. emacs6*background:    SandyBrown
  62. emacs7*background:    LightSeaGreen
  63. emacs8*background:    Sienna
  64. emacs9*background:    Bisque
  65. emacs10*background:    Wheat                   <=== background for instance
  66.  
  67. warsaw@anthem[12]% lemacs -name emacs10
  68.  
  69. Background of this new lemacs is LightYellow, the value of the
  70. attribute for class Emacs, not Wheat, the value of the attribute for
  71. instance emacs10.  Is my understanding that this should have come up
  72. in Wheat incorrect??  Perhaps the argv[0] name is not overriding the
  73. class name of Emacs when both are specified?  This just doesn't seem
  74. right.
  75.  
  76. Note that I can do:
  77.  
  78. warsaw@anthem[13]% xterm -name emacs10
  79. warsaw@anthem[14]% editres -name emacs10
  80.  
  81. And both xterm and editres come up with backgrounds of Wheat, as
  82. expected, even when there are XTerm*background and Editres*background
  83. specifications in the database.  So at the very least, lemacs seems
  84. inconsistent with editres, which is also an Xt based app, right?
  85.  
  86.     me> Maybe there should be a -screen switch to specify the
  87.     me> screen-name of the initial screen???
  88.  
  89.     Jamie> That'd be easy; just have that switch set
  90.     Jamie> `default-screen-name'.
  91.  
  92. I may try to hack that in, especially if the behavior lemacs is now
  93. exhibiting is not a bug, but proper behavior.
  94.  
  95. -Barry
  96.