Subject: Re: bug#59491: 29.0.50; [PATCH] Mode-line elements too wide in some VC buffers

From: Stefan Kangas <[email-masked]>
Date: Wed, 12 Feb 2025 07:56:31 -0800

Gabriel <[email-masked]> writes:

> Severity: wishlist
>
> Description:
>
> Some mode-line elements are too wide in some VC buffers, which affects
> the information visibility.
>
> Steps:
>
> 1) emacs -Q
>
> 2) Open some file controlled by Git VC, e.g.: C-x f ~/git/emacs/README
>
> The buffer named "README" will be shown, the buffer name is displayed on
> the left side of the mode-line.
>
> (length (buffer-name)) => 6
>
> 3) Annotate the buffer: C-x v g
>
> The VC-Annotate buffer named "*Annotate README (rev 1f39da3098a2a4cec9985e6db934ed14b7b522b7)*"
> will be shown, the buffer name is displayed on the left side of the
> mode-line.  The revision number might differ.
>
> (length (buffer-name)) => 64
>
> 4) Show log revision at line: l
>
> The Git-Log-View buffer will be shown.  The value of
> `vc-parent-buffername' is " from *Annotate README (rev 1f39da3098a2a4cec9985e6db934ed14b7b522b7)*",
> displayed on the right side of the mode-line.  The revision number might
> differ.
>
> (length vc-parent-buffer-name) => 70

This seems to have been fixed in recent versions of Emacs, so I'm
closing this bug now.