emacs-devel
[Top][All Lists]
Advanced

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

Re: set-frame-size should respect line-spacing!?


From: martin rudalics
Subject: Re: set-frame-size should respect line-spacing!?
Date: Sat, 12 Oct 2019 10:25:24 +0200

>> Are you saying `set-frame-size' is supposed to ignore line-spacing?
>
> Yes.  This part of the doc string hints on that, perhaps too
> indirectly:
>
>    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.

The doc-string of 'set-frame-size' says

Set text size of FRAME to WIDTH by HEIGHT, measured in characters.

and Section 29.3.4 Frame Size says that

The canonical way to specify the “size of a frame” from within Emacs is
by specifying its “text size”—a tuple of the width and height of the
frame’s text area (*note Frame Layout::).  It can be measured either in
pixels or in terms of the frame’s canonical character size (*note Frame
Font::).

We could repeat some of the latter in the doc-strings of all functions
that access or set a frame's or window's size, if we want.

martin




reply via email to

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