From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#45748: 28.0.50; fit-frame-to-buffer ignores leading spaces Date: Sat, 9 Jan 2021 11:55:06 -0600 Message-ID: References: <01d09a7b-09b0-9221-5bf3-8454f94704f7@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10817"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45748@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 09 18:56:16 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 1kyITI-0002it-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 18:56:16 +0100 Original-Received: from localhost ([::1]:55852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyITH-0000AY-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Jan 2021 12:56:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyIT4-00007x-FM for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:56:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41038) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyIT4-0004xV-8F for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kyIT4-0003oM-6K for bug-gnu-emacs@gnu.org; Sat, 09 Jan 2021 12:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2021 17:56: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.161021492514599 (code B ref 45748); Sat, 09 Jan 2021 17:56:02 +0000 Original-Received: (at 45748) by debbugs.gnu.org; 9 Jan 2021 17:55:25 +0000 Original-Received: from localhost ([127.0.0.1]:52584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyISS-0003nP-OY for submit@debbugs.gnu.org; Sat, 09 Jan 2021 12:55:24 -0500 Original-Received: from mail-yb1-f174.google.com ([209.85.219.174]:44718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kyISR-0003nD-0r for 45748@debbugs.gnu.org; Sat, 09 Jan 2021 12:55:23 -0500 Original-Received: by mail-yb1-f174.google.com with SMTP id f13so2026128ybk.11 for <45748@debbugs.gnu.org>; Sat, 09 Jan 2021 09:55:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B2sEQ8WQjU+uJ6PDNiWy9aJLQPaGskU160B1D2BJcLU=; b=I1VOz4CkjX0/4EEa0nfrjubyNJ7KogADsEACsgxV1VJ1orv05eHl8McrLhlse6AS0T CpUWvB/NMxrLBnApxHgSPg7SAt+lXnsV6OQlzuuHTpI84TG2LqfWrdea/fkPotEP3hHu qf2YoPcp9/PrLuzyKtm7R2I1afOhdXd0+ncq9ud8lPGiiQQqPzTrBUCutVUGMt4bKqBj 6xbgwYI0kf82quOrbz7OmEGHkTi2hcvGz9YULUp6uroxCkLRDBf5O4SSPigMqYWzqN6o hYPEWGGL+fdUe8gsl+zyYHAt5B0ctHdnvacfmZeltrUNvwwbXozGZAeQIN2ptPgxOi14 PSNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=B2sEQ8WQjU+uJ6PDNiWy9aJLQPaGskU160B1D2BJcLU=; b=Vbd8ChZrzrUSeOL5tApEQu/nsUfVpiURlJSdw9SQ7H+tCyb3nlNj0tHw34Qt+oGJjr v7sWprkt82NdB4TPgJcTr9U3/ap0+XSBqJmMo3wQjpR3Y4xE4jhzyPpSucamdQxgIDZd yiaBowWGJi5IcIgyE3rhhTprv7gi9cEbmfrjPBqeidzpZJfZEnZQLz11VaMd58jxtgqh wd0YPPhvP/GNruKQak/v5yUQetMCZk/hs0Pqi6m71spfuJAPS3lU8mxuAYjwwf5Ucaqd YF7+XLQfSCqani0TQdQpR/iJmGmZy+pM/QRLPpVJm3u1XhraVDaTJLQkRXMMgQt0d+79 tlJA== X-Gm-Message-State: AOAM533d7BQPBzcixLGRV3r3INqx7DXC9n+xSVlL4mR79d+jhK883wp1 RrmyPJV46hqe/RujE4JuBPy1zMic+r97NkA6jMQ= X-Google-Smtp-Source: ABdhPJwpmtzx3dauZ32F7BbxBPr//IL1D1CDktLhkXJCV2M5A8Yz+/Niycjino3IAIbR5CG45xKkzgbcKnAFp7XG2Ao= X-Received: by 2002:a25:3b97:: with SMTP id i145mr13482705yba.171.1610214917525; Sat, 09 Jan 2021 09:55:17 -0800 (PST) In-Reply-To: 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:197566 Archived-At: On Sat, Jan 9, 2021 at 11:44 AM Aaron Jensen wrote: > > diff --git a/src/xdisp.c b/src/xdisp.c > index 6a4304d194..20e7ca3a1e 100644 > --- a/src/xdisp.c > +++ b/src/xdisp.c > @@ -10652,7 +10652,10 @@ DEFUN ("window-text-pixel-size", > Fwindow_text_pixel_size, Swindow_text_pixel_siz > { It might actually be easier to read and understand if it was written without fetch_char_advance and just used inc_both, dec_both and FETCH_BYTE. I don't know if fetch_char_advance is doing something that that combination wouldn't do, however, so I can't say if that'd be safe or not.