[புதன் பிப்ரவரி 26, 2025] Visuwesh wrote: > mouse-buffer-menu ends up showing two "Shell" submenus when there are > enough *Async Shell Command* (major-mode=shell-command-mode) and *shell* > (major-mode=shell-mode) buffers open. To reproduce this, > > 1. emacs -Q > 2. Spam M-& sleep 100 three or four times. > 3. Likewise for C-u M-x shell RET. > 4. Now, C- and observe how there are two "Shell" menu > items. > > To bring back the old behaviour, one can do > > diff --git a/lisp/mouse.el b/lisp/mouse.el > index 1f0ca6a51b6..8caa611277e 100644 > --- a/lisp/mouse.el > +++ b/lisp/mouse.el > @@ -2691,6 +2691,7 @@ mouse-buffer-menu-mode-groups > ("\\bVM\\b\\|\\bMH\\b\\|Message\\b\\|Mail\\|Group\\|Score\\|Summary\\|Article" > . "Mail/News") > ("\\" . "C") > + ("Shell\\'" . "Shell") > ("ObjC" . "C") > ("Text" . "Text") > ("Outline" . "Text") > > which consolidates all mode-names that end with "Shell". Just using > "Shell" as the regexp erroneously groups sh-script-mode buffers along > with shell-mode and shell-command-mode buffers. And here's a proper patch: