all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>, Ingo Lohmar <ingo.lohmar@posteo.net>
Cc: emacs-devel@gnu.org
Subject: Re: set-frame-size should respect line-spacing!?
Date: Sat, 12 Oct 2019 10:25:24 +0200	[thread overview]
Message-ID: <147edd1b-0023-8ea0-d887-f2b1b6543a47@gmx.at> (raw)
In-Reply-To: <83ftjyo14e.fsf@gnu.org>

 >> 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	other threads:[~2019-10-12  8:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-11 20:44 set-frame-size should respect line-spacing!? Ingo Lohmar
2019-10-12  7:00 ` Eli Zaretskii
2019-10-12  7:12   ` Ingo Lohmar
2019-10-12  7:48     ` Eli Zaretskii
2019-10-12  8:25       ` martin rudalics [this message]
2019-10-12  8:25     ` martin rudalics
2019-10-12  9:45       ` Eli Zaretskii
2019-10-12  9:56         ` Ingo Lohmar
2019-10-12 11:03         ` martin rudalics
2019-10-12 13:11           ` Eli Zaretskii
2019-10-13  8:16             ` martin rudalics
2019-10-13  9:10               ` Eli Zaretskii
2019-10-13 12:15                 ` martin rudalics
2019-10-13 12:18                   ` Eli Zaretskii
2019-10-13 12:51                     ` martin rudalics
2019-10-13 13:20                       ` Eli Zaretskii
2019-10-13 17:06                         ` martin rudalics
2019-10-14  8:06                           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=147edd1b-0023-8ea0-d887-f2b1b6543a47@gmx.at \
    --to=rudalics@gmx.at \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ingo.lohmar@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.