From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#57837: 29.0.50; fit-window-to-buffer should reposition the buffer Date: Sun, 18 Sep 2022 08:34:09 +0000 Message-ID: <4d68c253fc584443028d@heytings.org> References: <84acc36e7e03e4cba89d@heytings.org> <84acc36e7e748d1b29fd@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57837@debbugs.gnu.org To: Sam Steingold Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 18 10:35:18 2022 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 1oZpll-0008FI-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 10:35:18 +0200 Original-Received: from localhost ([::1]:47556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZplk-0005Gl-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Sep 2022 04:35:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZplW-0005Gc-V7 for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 04:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZplW-0004cC-Fq for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 04:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZplW-0000sR-1Y for bug-gnu-emacs@gnu.org; Sun, 18 Sep 2022 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Sep 2022 08:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57837 X-GNU-PR-Package: emacs Original-Received: via spool by 57837-submit@debbugs.gnu.org id=B57837.16634900553304 (code B ref 57837); Sun, 18 Sep 2022 08:35:02 +0000 Original-Received: (at 57837) by debbugs.gnu.org; 18 Sep 2022 08:34:15 +0000 Original-Received: from localhost ([127.0.0.1]:47732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZpkk-0000rE-O8 for submit@debbugs.gnu.org; Sun, 18 Sep 2022 04:34:14 -0400 Original-Received: from heytings.org ([95.142.160.155]:47038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZpkh-0000r2-Ek for 57837@debbugs.gnu.org; Sun, 18 Sep 2022 04:34:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1663490050; bh=PB1Y76mnLcz00M3v8qcHyv4bXhFUnu2JNHtybNkUbNo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=fg85xSDDIugiVRY1vkHYcSw/GziGm93qI0r917JdFCLuAmNBijZQe+AF43iZn3q++ WoALff8/AjkoVKbCErk7mJnNfl4g+Xv1aiSHksILE/OVDL3sCbIIfaIPkqz4VHIdTC FwohsLrwIeKGtfOIV4JIHOznm0XS14G6JfykekERS/HOT0mQ1ACJzZ6wQOeZ7/IDGK oZ0ftFGmyNjug4cKS3MUeWRyW4Ml5+YgAq4KmK/GBf3s04tcd0symPLA0BxsJfJ50B l2ftJvEvSWWCVnK2SYSTLLNBJNUPCkNEOLRsd1Z6ijnFBetwcBk+cn/SV/QIATFjMp OLDZIVOqzDuJw== In-Reply-To: <84acc36e7e748d1b29fd@heytings.org> 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:242938 Archived-At: >> Both invisible point and point moved before the EOB are, IMO, >> preferable over showing a half empty window after C-x w -. > > I get that that's your preference, but I hope you understand that this > is a corner case, and that what the code does is not a bug. > By the way, I forgot to mention that a way to get (almost) the behavior you want is to set scroll-conservatively to 101. With that value, and with point at EOB, after fit-window-to-buffer only the first line of the buffer will not be visible.