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
Who's Online
Recent Visitors
Jas Hud
Mon Nov 16 00:41:01 2026
from
Bbs.Eob-Bbs.Com,wi
via
Telnet
Geek2
Sun Nov 15 09:22:57 2026
from
Euclid, Oh
via
Telnet
Amr
Fri Nov 13 16:10:06 2026
from
Fayetteville, Nc
via
Telnet
Geek2
Fri Nov 13 13:11:13 2026
from
Euclid, Oh
via
Telnet