Subject: bug#23672: 25.0.94; unitialized package specific menus

From: Tino Calancha <[email-masked]>
Date: Mon, 16 Jul 2018 11:48:16 +0900

Tino Calancha <[email-masked]> writes:

> The menus especific to one package, e.g. dired, are not
> always fully initialized after loading the library:
> some menus may show _anything_ after click on them.
>
>
> emacs -Q
> C-x C-f RET
> ;;; click mouse left button on Menu "Regexp"
> ;;  The menu doesn't appear correctly.
> ;;  Same happen with menus: "Mark", "Immediate" or "Subdir"
> ::  Menu "Operate" shows the wrong information.
> ;;
> ;;; Now click mouse left button on Menu "Tools".
> ;;  The previous menus are refreshed and show the correct information.

I found one recipe to reproduce the issue:
*  `M-x' just followed by `C-g'.

See the video:
https://www.dropbox.com/s/5gcbi5fc3xmqpow/emacs_bug23672.mkv?dl=0

;; the version of emacs-24 showed in the video:
In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-09-12 on hullmann, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11902000
System Description:	Debian GNU/Linux 9.4 (stretch)

;; the version of master branch showed in the video:
In GNU Emacs 27.0.50 (build 13, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2018-07-10 built on calancha-pc.dy.bbexcite.jp
Repository revision: cc74539a19229ee7e70055b00e8334bd6abc0841
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description: Debian GNU/Linux 9 (stretch)