From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: set-frame-size should respect line-spacing!? Date: Sat, 12 Oct 2019 12:45:07 +0300 Message-ID: <8336fynvq4.fsf@gnu.org> References: <87blun57wt.fsf@kenko.localhost.com> <83o8ymo3cx.fsf@gnu.org> <877e5al9ny.fsf@kenko.localhost.com> <26dd3c24-f21d-bbef-a975-86318a8eaf80@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="124931"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org, ingo.lohmar@posteo.net To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 12 11:47:34 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 1iJDzo-000WIz-T5 for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 11:47:33 +0200 Original-Received: from localhost ([::1]:59846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJDzm-00075U-IR for ged-emacs-devel@m.gmane.org; Sat, 12 Oct 2019 05:47:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJDxg-00071I-12 for emacs-devel@gnu.org; Sat, 12 Oct 2019 05:45:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iJDxd-0004F7-Ch; Sat, 12 Oct 2019 05:45:17 -0400 Original-Received: from [176.228.60.248] (port=2669 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iJDxc-0001s2-Ny; Sat, 12 Oct 2019 05:45:17 -0400 In-reply-to: <26dd3c24-f21d-bbef-a975-86318a8eaf80@gmx.at> (message from martin rudalics on Sat, 12 Oct 2019 10:25:13 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:240907 Archived-At: > Cc: emacs-devel@gnu.org > From: martin rudalics > Date: Sat, 12 Oct 2019 10:25:13 +0200 > > 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: I think we should first decide whether we want to invest such an effort to support a rare use case, which is also not without its pitfalls (as you describe above). A buffer can specify, in addition to line-spacing, other display features that will affect the metrics of its lines. The simplest example is the face of the text to display, which can include the font. It could even do this extremely subtly, by displaying text that belongs to a script whose font is higher or lower than the default face's font. In all of these cases, the original number of text lines will be inaccurate for some buffers shown in the same window on the same frame. So I don't think I understand why we need to support these specialized use cases.