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

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

Re: set-frame-parameter


From: Stephen Berman
Subject: Re: set-frame-parameter
Date: Thu, 10 Dec 2020 00:46:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On Thu, 10 Dec 2020 00:39:19 +0100 steve-humphreys@gmx.com wrote:

>> Sent: Thursday, December 10, 2020 at 12:29 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:26:24 +0100 Stephen Berman <stephen.berman@gmx.net> 
>> wrote:
>> 
>> > On Thu, 10 Dec 2020 00:19:40 +0100 steve-humphreys@gmx.com wrote:
>> >
>> >> 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)
>> >
>> > I can only reiterate that it works for me.  Perhaps your window manager
>> > is interfering somehow.  The doc string of set-frame-size says:
>> >
>> >   (set-frame-size FRAME WIDTH HEIGHT &optional PIXELWISE)
>> >   
>> >   Set text size of FRAME to WIDTH by HEIGHT, measured in characters.
>> >   Optional argument PIXELWISE non-nil means to measure in pixels.  Note:
>> >   When ‘frame-resize-pixelwise’ is nil, some window managers may refuse to
>> >   honor a WIDTH that is not an integer multiple of the default frame font
>> >   width or a HEIGHT that is not an integer multiple of the default frame
>> >   font height.
>> >
>> > FWIW I'm using xfwm4.
>> 
>> I meant to add: What happens when you try (set-frame-size nil 58 13 t)?
>
>
>  Doing (set-frame-size nil 58 13) works only if emacs has not been maximised.

And (set-frame-size nil 58 13 t)?  (Note the `t' at the end.)  If that
works, then I assume your window manager is preventing the non-pixelwise
resizing.  If pixelwise resizing also doesn't work, then I'm out of
ideas.  Maybe someone else will have a suggestion.

Steve Berman




reply via email to

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