|
From: | Sam Steingold |
Subject: | bug#57837: 29.0.50; fit-window-to-buffer should reposition the buffer |
Date: | Fri, 16 Sep 2022 14:52:13 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) |
> * Gregory Heytings <tertbel@urlgvatf.bet> [2022-09-15 22:59:57 +0000]: > >>> (advice-add 'fit-window-to-buffer :after >>> (lambda () (and (= (count-lines (point-min) (point-max)) (1- >>> (window-height))) >>> (or (< (point) (point-max)) (forward-line -1) t) >>> (set-window-start nil (point-min))))) >> >> Why shouldn't this be the default behavior? > > I think because fit-window-to-buffer isn't supposed to move point, and > point would become invisible if it is not moved. Is that a problem? I mean, is it possible for the point to be invisible? -- Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113 https://lastingimpactpsychology.com https://steingoldpsychology.com https://www.memritv.org https://memri.org https://ffii.org https://jij.org If you want your advice to be appreciated, write it on a $100 bill.
[Prev in Thread] | Current Thread | [Next in Thread] |