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 23:20:26 EST
- Date: Thu, 28 Jan 1993 20:19:36 PST
- Message-ID: <9301290419.AA09217@thalidomide.lucid>
- X-Windows: The art of incompetence.
- 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>
- <9301280922.AA05037@thalidomide.lucid>
- <WARSAW.93Jan26153002@anthem.nlm.nih.gov>
- <WARSAW.93Jan28131931@anthem.nlm.nih.gov>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Lines: 52
-
- Barry A. Warsaw wrote:
- >
- > Jamie> This could be done, but it would be slightly non-portable,
- > Jamie> since I believe there's no advertised way to read the
- > Jamie> resource db; all of the directory- searching magic is built
- > Jamie> into Xt. Also, it would leak like mad, since I'm pretty
- > Jamie> sure resource dbs are never freed.
- >
- > You could read the resources via the Xrm functions right? Ah, I see
- > the problem. Its getting *Xt* to use the new resources.
-
- Actually, what I meant was figuring out where to get the resources from,
- that is, parsing the $XFILESEARCHPATH and $XUSERFILESEARCHPATH and
- $XAPPLRESDIR variables. But now I seem to recall that there's an Xt
- library routine that can be convinced to do that.
-
- > I'm not up on Xt stuff so I'm gathering there's no way to re-init Xt's view
- > of the resource db. I wouldn't expect existing screens to change their
- > attributes when I evaled x-reread-resources
-
- But that would be nice. (Actually I have some ideas about it...)
-
- > -- I'd be satisfied if new screens came up with the new attribute values.
-
- I think this is a little tricky to do portably, but maybe not.
-
- > Oh well, either way, ain't no big thang since I don't expect to be changing
- > attributes that often. The nice thing is that you can play with the
- > attributes in lisp until you're pretty happy with them, then fold them into
- > your .Xdefault for long-term use.
-
- Right, but one problem is that nothing parsed from the resource database is
- ever freed. So if you're experimenting with menubar colors, you're going to
- fill up your colormap eventually, because the old colors won't get freed.
- (This isn't true of faces.)
-
- > This is what I really want, and what I just can't seem to make work.
-
- When I loaded in your resources, I got the colors that you expected. I also
- tried this:
-
- % xrdb -merge
- Emacs*modeline.attributeBackground: pink
- foobar*modeline.attributeBackground: red
- ^D
- % lemacs -q <- got a pink modeline
- % lemacs -q -name foobar <- got a red modeline
-
- So I guess there is some other resource conflict going on. Or maybe you're
- calling set-face-background in your .emacs file...?
-
- -- Jamie
-