Subject: bug#73734: [PATCH] Fix tmm menu layout

From: Eli Zaretskii <[email-masked]>
Date: Fri, 11 Oct 2024 12:19:28 +0300

> Date: Fri, 11 Oct 2024 10:15:24 +0200
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> From: martin rudalics <[email-masked]>
> 
>  > So (get-buffer-window
>  > "*Completions*") returns nil and we still get the current window width.
> 
> In that case we could use 'frame-width' as fallback but if
> 'get-buffer-window' always returns nil that would hardly make sense.
> I'm absolutely not familiar with the order how tmm does things.

Yes, I think we should use get-buffer-window if the buffer exists and
frame-width as fallback otherwise.