home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!UB.com!pacbell.com!sgiblab!swrinde!elroy.jpl.nasa.gov!usc!cs.utexas.edu!torn!nott!bnrgate!bmerh85!bmerh85!hamish
- From: Hamish.Macdonald@bnr.ca (Hamish Macdonald)
- Subject: Re: kind of -geometry wxh+x+y for a new screen
- In-Reply-To: warsaw@nlm.nih.gov's message of 26 Jan 93 20:30:02 GMT
- Message-ID: <1993Jan28.202702.19688@bmerh85.bnr.ca>
- Lines: 61
- Sender: news@bmerh85.bnr.ca (Usenet News)
- Organization: Bell Northern Research
- References: <1993Jan26.185113.169699@eratu.rz.uni-konstanz.de>
- <WARSAW.93Jan26153002@anthem.nlm.nih.gov>
- Date: Thu, 28 Jan 93 20:27:02 GMT
-
- Joerg-Cyril> I read the lemacs NEWS but found no way to set
- Joerg-Cyril> x-screen-defaults so that I can open a secondary
- Joerg-Cyril> lemacs screen with a like with "-geometry -0+0" in my
- Joerg-Cyril> .emacs.
-
- >>>>> On 26 Jan 93 20:30:02 GMT,
- >>>>> In message <WARSAW.93Jan26153002@anthem.nlm.nih.gov>,
- >>>>> warsaw@nlm.nih.gov (Barry A. Warsaw) wrote:
-
- Barry> My understanding is that x-screen-defaults doesn't work. I've
- Barry> started using X resources for everything and have had great
- Barry> results. Its the right way to do these things anyway, IMHO.
-
- Only certain things in x-screen-defaults will work. In particular,
- "geometry" does not.
-
- I gave the following patch to Jamie last year sometime. It allows you
- to specify geometry in the x-screen-defaults or the parameters in
- x-create-screen.
-
- e.g.:
-
- (x-create-screen '((geometry . "80x48-5-5")))
-
- The patch didn't seem to make it into the 19.4 release.
-
- *** xfns.c.orig Sun Jan 17 17:39:46 1993
- --- xfns.c Thu Jan 28 15:15:45 1993
- ***************
- *** 674,680 ****
- --- 674,689 ----
- char* name;
- Arg al [25];
- int ac = 0;
- + Lisp_Object geometry = Qnil;
- +
- + geometry = Fassq (intern ("geometry"), parms);
- + if (!NILP (geometry))
- + {
- + geometry = Fcdr (geometry);
- + CHECK_STRING (geometry, 0);
- + }
-
- +
- BLOCK_INPUT;
-
- if (STRINGP (s->name))
- ***************
- *** 703,708 ****
- --- 712,721 ----
- XtSetArg (al[ac], XtNallowResize, 1); ac++;
- XtSetArg (al[ac], XtNresizeToPreferred, 1); ac++;
- XtSetArg (al[ac], XtNemacsScreen, s); ac++;
- + if (!NILP (geometry))
- + {
- + XtSetArg (al[ac], XtNgeometry, (char*)XSTRING (geometry)->data); ac++;
- + }
- screen_widget = XtCreateWidget ("screen", emacsScreenWidgetClass,
- pane_widget, al, ac);
-
-
-