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:13 +0200 Message-ID: <26dd3c24-f21d-bbef-a975-86318a8eaf80@gmx.at> References: <87blun57wt.fsf@kenko.localhost.com> <83o8ymo3cx.fsf@gnu.org> <877e5al9ny.fsf@kenko.localhost.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="66731"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Ingo Lohmar , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 12 10:29:55 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 1iJCmg-000HFB-ET for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 10:29:54 +0200 Original-Received: from localhost ([::1]:59536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJCmf-0000C1-2k for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 04:29:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54668) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJCiI-0000B4-Lj for emacs-devel@gnu.org; Sat, 12 Oct 2019 04:25:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJCiF-0005Vj-Lq for emacs-devel@gnu.org; Sat, 12 Oct 2019 04:25:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:43925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJCiC-0005T6-Nh; Sat, 12 Oct 2019 04:25:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570868713; bh=Nsf3qMLXfEVbBwtnfRyEYmSzR88roNu0fQQd4x21eFM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=VGSKX53XUWz+azp3jyJTFikCN7Vhd4nPbW0xXls/dU0r9rdx9teArtJVy7Baqhc1I dwfl6RUn4unq8eRgN6IirCR74TbK7WBfT2mbwVbtWHTIqB1K8cbp8823Rb+W+YNEZ6 vw5xCC2sGiCTait2FmzoHXVizaWYUUcNjNUWtcO0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([212.95.5.148]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N9MpS-1hyHbp0BNs-015HCI; Sat, 12 Oct 2019 10:25:13 +0200 In-Reply-To: <877e5al9ny.fsf@kenko.localhost.com> Content-Language: de-AT X-Provags-ID: V03:K1:GDYmSxpLxrnoEjjV1nBZRqpaGQO5AlvZ6f5HV0zTxAbzFP4P8gC P9OE8CW9vLny47LxHggC7iSGgYjPvPOB/fru47dYF38Bp40BNhhu6rv/Z3xiAB6GYjlreEV kkWfJ4pqQpiT7yJuR/gVbAYATgCjE/4X8zC9/9UBsh6YRpmauXwSR/GVFIZ9MqZCLiDhWFX DDExFat6dEoEejcwpuCqA== X-UI-Out-Filterresults: notjunk:1;V03:K0:Bl17beLEauk=:HuHhOPNOcEvb8Fd4qBE+ak LevYv4HnDi/O9q2HfVE7ZANWVjUQKHwJheboOruSL93o2atJnks52JpRRJpcHb4IGpHc/Lj3P RTyEBrcTDNs0nduzcQzkwTRuTpDx+svhCTE7191ZVX94NSTyk5+VcdtucNN/mCgTUFJWXJ8nX 6UvyoqCg5uJ6PWlngk5Lu3dzyUXv4p4hBjifnphS6R8bw358i7fl8Fiawhoa2dMUshqBWc1FL KMQOs4xhZ7dB1g12lPA0A6et12slruIqw0Hnb4xw+JgupB55hypa5Zg1AESqq8NGqWunaoNkA xIXoyiDfX9Z3c02lQ3UBeSTqlSBPmo+CDpoQYaBkabqWX//0PZDNQqi9YbUhsLzR12K7USmU3 W7o+RxaSSorM3GQ/j8WhLzL27+Wk/PaAX0OveRQtwfdrq9vT6SU0Lq/Vs5psqbqT/w3SrFti+ jfZHsXY9DMS+cG8iKGTKkQEDMj+ltgAS/SRwtnUGs3V7VAJpQC3ZJBsXA6jVJ+2maHo5vcZOj feyfzBJkhuNKpBDXuiwf/u5wrsEebBpk9x3DP7jkaSEkn2GgyBslo1waC7HwryePjTY7P5Gxf 8RcV3CFY5mqyw35HXzk0Wfy36voNoSjmNwnIQq0T95fdyjVf7gPNwuIBFypeMdJOPtS1VCVQ7 ci6dzzoMfMRm78pPkFfePFJMfAIwkAY5KiCck7BGkqOfbSVJpE/kEDpkhljHY8tQkLIr+5QGw FDnZxCbTzTqjNpFsh4pyQ7tbgumRMz3dXpVzkwlmXhfFBLVf9O/+xkE7bgiMwTLBcrCLNMUY X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 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:240904 Archived-At: > Are you saying `set-frame-size' is supposed to ignore line-spacing? In > that case, what is the correct way to set the frame-size in the > pixel-exact way? By using the PIXELWISE argument of 'set-frame-size'. But note that this sets the text size of the frame, see also the 'text-pixels' type specification (section 29.4.3.3 Size Parameters of the Elisp manual). I am working on 'inner-pixels', 'outer-pixels' and 'native-pixels' but all these are so intrinsically platform dependent that I've hardly made any progresss in the past years. I earlier explained why we cannot make 'set-frame-size' obey the line spacing of a specific buffer: A buffer might not be alone on a frame and even if it is, switching to a buffer previously displayed in that window might become inconvenient. So we have a number of options which all will take considerable time to implement: (1) Change the semantics of the PIXELWISE argument for a number of user functions. For 'set-frame-size' we could say that if its value is 'linewise', then use the 'window-default-line-height' value of the frame's selected window. (2) Add, as also mentioned earlier, a frame parameter that controls the behavior in some way. (3) Add some global option to control the behavior. I suppose that this might be too strong. And then we have to establish the set of commands we want to affect. From Bug#14825 we know that 'split-window-below' is one candidate and probably most of the 'window-resize' type functions. Then we probably want to have size reporting functions handle line spaces as well. If you search for the occurrence of the term 'pixelwise' in the code of window.el you will understand how much of change that would mean. martin