From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#45748: 28.0.50; fit-frame-to-buffer ignores leading spaces Date: Wed, 13 Jan 2021 16:26:49 +0200 Message-ID: <83eeiodiae.fsf@gnu.org> References: <01d09a7b-09b0-9221-5bf3-8454f94704f7@gmx.at> <83k0smgeq8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45748@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 13 15:40:27 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzhJy-0003NC-Qt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 15:40:26 +0100 Original-Received: from localhost ([::1]:47490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzhJx-0007De-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 09:40:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzh70-0004cO-OJ for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:27:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kzh70-00044r-EI for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kzh70-0002bO-6o for bug-gnu-emacs@gnu.org; Wed, 13 Jan 2021 09:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jan 2021 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45748 X-GNU-PR-Package: emacs Original-Received: via spool by 45748-submit@debbugs.gnu.org id=B45748.16105480189993 (code B ref 45748); Wed, 13 Jan 2021 14:27:02 +0000 Original-Received: (at 45748) by debbugs.gnu.org; 13 Jan 2021 14:26:58 +0000 Original-Received: from localhost ([127.0.0.1]:34732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzh6w-0002b7-BZ for submit@debbugs.gnu.org; Wed, 13 Jan 2021 09:26:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kzh6v-0002au-1z for 45748@debbugs.gnu.org; Wed, 13 Jan 2021 09:26:57 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56924) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzh6p-00040m-HO; Wed, 13 Jan 2021 09:26:51 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4876 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kzh6n-0001f8-Hs; Wed, 13 Jan 2021 09:26:50 -0500 In-Reply-To: (message from Aaron Jensen on Tue, 12 Jan 2021 22:34:42 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:197897 Archived-At: > From: Aaron Jensen > Date: Tue, 12 Jan 2021 22:34:42 -0600 > Cc: martin rudalics , 45748@debbugs.gnu.org > > > On Sat, Jan 9, 2021 at 12:14 PM Eli Zaretskii wrote: > > > Yes, probably. > > > > > > But before we do any changes here, we need a test suite. Would you > > > mind adding the necessary tests to test/src/xdisp-tests.el? > > > > Okay, I added a few basic tests for this case. I don't know if that's > > the best way to test it, but it's what I could figure out. > > ... > > Does this one look good to you? Sorry, I didn't yet have time to take a good look at the changes. I will do that in a couple of days.