Subject: Re: bug#76593: 31.0.50; mouse-buffer-menu shows two "Shell" submenus with enough *Async Shell Command* and shell-mode buffers

From: Visuwesh <[email-masked]>
Date: Fri, 28 Feb 2025 09:03:24 +0530

[வியாழன் பிப்ரவரி 27, 2025] Juri Linkov wrote:

>> I went with the regexp \`Shell\' to ensure only major-modes with
>> `mode-name' "Shell" will be matched.
>
> Are Eshell buffers grouped under the same submenu?

No, they aren't:

    (with-current-buffer "*eshell*"
      (list mode-name (string-match-p "\\`Shell\\'" mode-name))) ;; => ("Eshell" nil)

I don't use Eshell, should they be grouped under the same submenu?