Subject: Re: bug#79125: quit-window fails to restore window height in a scenario of buffer reuse

From: martin rudalics <[email-masked]>
Date: Thu, 31 Jul 2025 10:45:26 +0200

>> It can be improved but that would be expensive.  'window-prev-buffers'
 >> would have to return the height (and possibly the weight) of the window
 >> in addition to the start and point positions - that is, we'd have to
 >> store five instead of three values per buffer.
 >
 > That only applies to buffers that were previously displayed in some window, right?

Yes.

 > Might not affect the total memory use much.

Not much likely.  I can try to do it if other attempts to fix this
behavior fail.

martin