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 00:19:40 +0100

Have used "emacs -Q" as instructed.

Then executed the following three commands, one after the other.

The last command beeps the frame to fullheight.

(set-frame-parameter (selected-frame) 'fullscreen 'fullboth)
(set-frame-parameter (selected-frame) 'fullscreen 'fullheight)
(set-frame-size nil 58 13)

> Sent: Thursday, December 10, 2020 at 12:13 AM
> From: "Stephen Berman" <stephen.berman@gmx.net>
> To: steve-humphreys@gmx.com
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: set-frame-parameter
>
> On Thu, 10 Dec 2020 00:04:53 +0100 steve-humphreys@gmx.com wrote:
>
> >> Sent: Wednesday, December 09, 2020 at 11:58 PM
> >> From: "Stephen Berman" <stephen.berman@gmx.net>
> >> To: steve-humphreys@gmx.com
> >> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> >> Subject: Re: set-frame-parameter
> >>
> >> On Wed, 9 Dec 2020 23:24:39 +0100 steve-humphreys@gmx.com wrote:
> >>
> >> > Have started using fullscreen
> >> >
> >> >    (set-frame-parameter (selected-frame) 'fullscreen 'fullboth)
> >> >
> >> > Then to maximised position
> >> >
> >> >    (set-frame-parameter (selected-frame) 'width 75)
> >> >    (set-frame-parameter nil 'fullscreen 'fullheight)
> >> >
> >> > But then doing the following small frame gets me an error
> >> >
> >> >    (set-frame-size nil 'width  58)
> >> >    (set-frame-size nil 'height 13)
> >>
> >> The WIDTH and HEIGHT arguments of set-frame-size should be numbers, like
> >> this:
> >>
> >> (set-frame-size nil 58 13)
> >
> > I have tried it that way, but the frame stays at fullheight, rather than 
> > being
> > set to 13.
>
> It works for me with emacs-26, emacs-27 and emacs-28 (master).  Did you
> try it after starting Emacs with -Q to suppress any customizations from
> your init file?
>
> Steve Berman
>
>



reply via email to

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