help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set-frame-parameter


From: steve-humphreys
Subject: Re: set-frame-parameter
Date: Thu, 10 Dec 2020 04:42:37 +0100

I have solved one problem, of not removing the maximise-minimise frame by using

(set-frame-parameter (selected-frame) 'fullscreen 'maximised)




> Sent: Thursday, December 10, 2020 at 4:17 AM
> From: steve-humphreys@gmx.com
> To: "Michael Heerdegen" <michael_heerdegen@web.de>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: set-frame-parameter
>
>
> > Sent: Thursday, December 10, 2020 at 4:01 AM
> > From: "Michael Heerdegen" <michael_heerdegen@web.de>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: set-frame-parameter
> >
> > steve-humphreys@gmx.com writes:
> >
> > > I wonder which way I should do things for fullscreen and re-sizing.
> > >
> > > Is it good to use set-frame-parameter for fullscreen, and for re-sizing
> > > using set-frame-size?
> > >
> > >
> > > Have done as follows to make same size frame using set-frame-size.
> > >
> > > (let ((w (frame-width)) (h (frame-height)))
> > >     (set-frame-parameter (selected-frame) 'fullscreen nil)
> > >     (set-frame-size nil w h))
> >
> > I don't understand that code.  You resize the frame to its...current
> > size?
>
> Would like some advice of when I should use (selected-frame).  Is it correct
> to do as I have done?  Then for set-frame-size I use nil.
>
> > Regards,
> >
> > Michael.
> >
> >
> >
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]