Subject: Re: bug#25113: 25.1.90; Stale menu items after switching to a different major mode (or visiting a buffer)

From: Eli Zaretskii <[email-masked]>
Date: Mon, 05 Dec 2016 17:41:24 +0200

> From: Dmitry Gutov <[email-masked]>
> Date: Mon, 5 Dec 2016 00:45:52 +0200
> 
> 1. Start 'emacs -Q', and
> 
> - In *scratch*, M-x ruby-mode (or python-mode, or probably many others)
> 
> OR
> 
> - C-x C-f, visit a Ruby file (or, again, probably any other file)
> 
> 2. See the "Lisp Interaction" menu disappear, and "Ruby" manu appear.
> 
> However, the contents of that menu are exactly the same as what was in
> "Lisp Interaction".

Not reproducible on my system.

> Looking at older versions, the problem is present as far back as 24.3
> (with python-mode; ruby-mode didn't have a menu then).
> 
> So this is probably caused by a library change, like the GTK version I
> have installed.

Most probably.  Can you tell which updates did you do lately?

When you turn on python-mode or ruby-mode, and click on the
problematic menu item ("Ruby" etc.) on the menu bar, do you see
x-menu-bar-open-internal called?