GNU bug report logs -
#70213
Info-mode side window fit-window-to-buffer issue
Previous Next
Reported by: Joseph Turner <joseph <at> breatheoutbreathe.in>
Date: Fri, 5 Apr 2024 09:04:02 UTC
Severity: normal
Tags: notabug
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> In emacs -Q on master after Jan 6 patch, eval this:
Maybe Martin could help to solve this problem (Cc-ed).
> (progn
> (setq fit-window-to-buffer-horizontally t)
>
> (setq display-buffer-alist
> '(((derived-mode . Info-mode)
> display-buffer-in-side-window
> (side . right)
> (window-width . fit-window-to-buffer))
> ((derived-mode . messages-buffer-mode)
> display-buffer-in-side-window
> (side . right)
> (window-width . fit-window-to-buffer)))))
>
> First, to show the expected behavior with *Messages* buffer:
>
> Press C-h e to open the *Messages* buffer. It appears in a side
> window on the right fit to the width of the buffer content.
>
> Second, to show the unexpected behavior with *info* buffer:
>
> Ensure no side window state is lying around:
>
> (dolist (buf (list "*Messages*" "*info*"))
> (when (get-buffer buf)
> (kill-buffer buf)))
>
> Press C-h i to open the *info* buffer. It appears in a side
> window on the right with `window-min-width' (default 10), but the
> content of the *info* buffer is much wider than its window.
>
> Press C-h i again for the *info* buffer to resize itself.
>
> I would expect the *info* window to fit to the buffer contents
> when it first appears. The patch I sent earlier fixes this.
This bug report was last modified 1 year and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.