|
From: | Sam Steingold |
Subject: | bug#57837: 29.0.50; fit-window-to-buffer should reposition the buffer |
Date: | Thu, 15 Sep 2022 18:45:15 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) |
> * Gregory Heytings <tertbel@urlgvatf.bet> [2022-09-15 19:34:38 +0000]: > >> >> When the buffer is smaller than the window, move the point to the end >> and do `C-x w -` (fit-window-to-buffer). >> >> The window shrinks, but it is empty - the whole buffer is above. >> > > (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))))) Thank you. Why shouldn't this be the default behavior? -- Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113 https://lastingimpactpsychology.com https://steingoldpsychology.com https://jihadwatch.org https://fairforall.org https://jij.org https://ffii.org Don't hit a man when he's down -- kick him; it's easier.
[Prev in Thread] | Current Thread | [Next in Thread] |