Re: Position buffer contents at bottom of window
Eli Zaretskii <[email protected]> Wed, 24 Jun 2026 19:00:49 +0300
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
> From: Joost Kremers <[email protected]> > Cc: [email protected] > Date: Wed, 24 Jun 2026 15:40:21 +0200 > > On Wed, Jun 24 2026, Eli Zaretskii wrote: > > Btw, why don't you use recenter-top-bottom? > > My first idea was to use `(recenter -1)`, which works predictably, but it > often leaves a one-line gap between the bottom window edge and the last > buffer line. I'm trying to get rid of that gap. Please show the case where this gap happens. This works for me with buffers that have the last line end in a newline: (progn (goto-char (1- (point-max))) (recenter -1 t))