From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: set-frame-size should respect line-spacing!? Date: Sat, 12 Oct 2019 10:25:24 +0200 Message-ID: <147edd1b-0023-8ea0-d887-f2b1b6543a47@gmx.at> References: <87blun57wt.fsf@kenko.localhost.com> <83o8ymo3cx.fsf@gnu.org> <877e5al9ny.fsf@kenko.localhost.com> <83ftjyo14e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="97690"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii , Ingo Lohmar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 12 10:36:25 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iJCsy-000PFL-Ub for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 10:36:25 +0200 Original-Received: from localhost ([::1]:59556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJCsx-0002Cc-HJ for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 04:36:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54689) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJCiQ-0000CW-90 for emacs-devel@gnu.org; Sat, 12 Oct 2019 04:25:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJCiO-0005ZW-AM for emacs-devel@gnu.org; Sat, 12 Oct 2019 04:25:30 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:33173) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJCiN-0005Ye-1U; Sat, 12 Oct 2019 04:25:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570868725; bh=Ep3WYEQ1qlW9XYP1F9HZjuZJr5Cm8jmsPu8IMihofgQ=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=EIod+nsbN18gO1A5EnLmq652OfFvtARj0zbRg5xh2lrdLBxfdPRi1booLIURY+GeB ys74sjnTcqP9frPW+bNhSRMiLz5ra2UepuLXc1TlVxyQQ/gZrNWOWT1OAb8SMAmlbD 2h6TkpNEW0QxXRCy34zTRC5l3XBMa5tDtoKyJw/c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.148]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MowKi-1hjMJn03Zu-00qWGV; Sat, 12 Oct 2019 10:25:25 +0200 In-Reply-To: <83ftjyo14e.fsf@gnu.org> Content-Language: de-AT X-Provags-ID: V03:K1:LPZjcVtEzzsRz7NwZSq1FEnRrAxIUjvZZRW+329dJC7Sqkd2eDb fgtL6CuiaW+1K3edY61H7Ot48fXy7jlmVc1Mwg5SSPeOlWiExkCJxVOxtSqf/mc3vlClGFq Yi8H7uVGbRYWtWc+b+2YsopRvHSnccx9zNhDXQ3xzz7bsrAMYV0m9r/Um6FWhettV8Wlr8q og6FBDHtHKR1kR8zjrpTA== X-UI-Out-Filterresults: notjunk:1;V03:K0:qSUkYr1r/sE=:nP+uDz8t1j55QFII+D9b14 bFHctyHQCwQzRay7+WgRf6Cz1zFtntwn4t+5gYXZi1GziRElKfiqZHFzLZAteAS6CTBp8ytwZ Ya7pz0mvfjA2nXPyw3QksqZPIrnF+iiGeFigO6GjAprOU7TRAXkIfN2eth8rVqvW+sLmMzbIY Rzi+furTF5tQ40o0PIyYeFoz9MQN5uf7i0pwutP6HCeqZyGMyo6WCCqsghAdhPEpWHm+Vc9tj YtYjI8p9sMJBtCOan6xIE5/acAV5Ux4OWFefcommq4/eDvVABV0Vycv7SrdZNErrD0r0Pp61t TrWvhzKkH+jFr2b8uR+BY0vp1LZ4M0ypsQ+tfHxPIehiSgCeunHDHTbbeJ6JIPMnYaZ7Sq3j+ M3W+QMiSpt+5pbnd3hpGLJQ7MtHpGEtZlpVzZes3F6o4VzEddKfFFRvbbdCIA71KebFCR/y16 /9VxkhXf4WCZRhGwdWLbiMMiI0QKKR0xzL3/Mlgsq1c5UV8jsfqHXJQgmBX95eWoyTZ+SealI mp9TtTLMA9WhlqrPFHCUnBk/3X3EyqEnzw0mjszAKyDLAP3iY1FwiF87XhSYLi3gEVAYY9TCY xaV+WINsy/v3foV1gXS+DgCuJTN8qUXQVniKL6BvX+25PFPJ9HWlF21p+rUf3u9xiMqK9tqzN D/w+cs23HwCeVJfaPogpnOTdN+41AwS4GwLXKGBvu48hW6qHbn08gdOn82OjF+PqdxCtW5pHs 66Xo6WubN0dSA+7ZkvHXj1npSJNWtcJrtIJmyvgX0ezkG0zfSKYtJs1stUNhg7TVNtG5MUcO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240905 Archived-At: >> 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 =E2=80=98frame-resize-pixelwise=E2=80=99 is nil, some window m= anagers 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 fr= ame > 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 =E2=80=9Csize of a frame=E2=80=9D from w= ithin Emacs is by specifying its =E2=80=9Ctext size=E2=80=9D=E2=80=94a tuple of the widt= h and height of the frame=E2=80=99s text area (*note Frame Layout::). It can be measured eit= her in pixels or in terms of the frame=E2=80=99s 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