Subject: bug#68235: 29.1.90; Switching tabs stops following process output in selected window

From: Eli Zaretskii <[email-masked]>
Date: Tue, 09 Apr 2024 10:36:44 +0300

> Cc: [email-masked]
> From: Juri Linkov <[email-masked]>
> Date: Tue, 09 Apr 2024 09:53:41 +0300
> 
> The previous tab shows:
> 
>   "This window displayed the buffer ‘ **lose**’."
> 
> What it expected here instead of **lose**
> is the real file buffer with the previous image.
> 
> The problem is that 'image-next-file' calls 'find-alternate-file'
> that does such buffer renaming:
> 
>     (if (get-buffer " **lose**")
> 	(kill-buffer " **lose**"))
>     (rename-buffer " **lose**")
> 
> and 'rename-buffer' changes the buffer's last name to **lose**.

Any idea why does image-next-file do that?  Or is this problem
specific to using tabs?