• My menu bar button works on Windows, not on linux

    From BobD@daycandle@gmail.com to gnu.emacs.help on Sun Nov 27 12:13:21 2022
    From Newsgroup: gnu.emacs.help

    ubuntu 22.10
    Windows 7
    emacs versions:
    linux 27.1
    Windows 27.1 and 28.2

    I load this elisp at startup:

    (define-key-after ;Save
    (lookup-key global-map [menu-bar]) ;map is the "key" named menu-bar
    [x9] ;key name
    '(menu-item "Save" ;label
    (lambda () (interactive)
    (save-buffer) ;function
    )
    )
    'tools ;put the new button after the Tools button
    )

    This places a menu button after the Tools button.
    On Windows, the button works as expected; it saves the current buffer.
    On linux, it displays a small, white window, and then starts the game "5x5". The button for "5x5" is the first displayed in the Tools submenu Games.
    For the tools entry and for my x9 entry, the global-map variables on linux and Windows look the same.

    Any advice on how I can get my Save button to work on ubuntu?
    --- Synchronet 3.21d-Linux NewsLink 1.2