[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12170: save-excursion fails boundary case with recenter
From: |
martin rudalics |
Subject: |
bug#12170: save-excursion fails boundary case with recenter |
Date: |
Sat, 11 Aug 2012 11:31:32 +0200 |
>> (1) By "window height", I meant the number of lines displayed for the actual
>> buffer, not counting the mode line or minibuffer. It turns out this is one
>> less than the value returned by `window-height'.
>
> As documented, window-height returns the height of the window
> including the mode line (and the header line, if there is any). So
> the above is expected.
To avoid this confusion `window-total-height' should be used instead of
`window-height'. The "number of lines displayed for the actual buffer"
is returned by the function `window-body-height'.
martin
- bug#12170: save-excursion fails boundary case with recenter, (continued)
- bug#12170: save-excursion fails boundary case with recenter, Bill Brodie, 2012/08/11
- bug#12170: save-excursion fails boundary case with recenter, Stefan Monnier, 2012/08/10
- bug#12170: save-excursion fails boundary case with recenter, Bill Brodie, 2012/08/10
- bug#12170: save-excursion fails boundary case with recenter, martin rudalics, 2012/08/10
- bug#12170: save-excursion fails boundary case with recenter, martin rudalics, 2012/08/10
- bug#12170: save-excursion fails boundary case with recenter, Eli Zaretskii, 2012/08/10
- bug#12170: save-excursion fails boundary case with recenter,
martin rudalics <=