The kp-divide, kp-multiply, kp-add, kp-subtract no longer are mapped correctly on F40 plus Emacs 29.
I have been using the same Emacs init.el file (with minor mods) for over 30 years to map the F keys and alternate keypad to usable functions (Sun, Linux, UNIX, etc.). I just updated to Fedora 40 which includes Emacs 29, and most still function correctly (f keys, kp-enter), however a few of these are now broken: kp-divide, kp-multiply, kp-add, kp-subtract.
My mappings are:
(global-set-key [kp-divide] 'kill-current-line)
(global-set-key [kp-multiply] 'advertised-undo) ; LINUX
(global-set-key [kp-add] 'copy-region-as-kill) ; keypad +
(global-set-key [kp-subtract] 'kill-region) ; keypad -
(global-set-key [kp-enter] 'set-mark-command) ; keypad ENTER ← WORKS!
The kp-enter, insert, home, end, f1, f2, etc. key all are still mapped correctly and work. Note, my old init.el file has lines like:
(global-set-key [f1] 'delete-other-windows)
I did find out that Emacs 29 has changed the API, but the legacy global-set-key should still work.
Is this a mapping problem with Gnome? I tried several changes in gnome-tweaks
keyboard → Additional Layout Options
layout of the numeric keypad
default
legacy
Thanks for the help in advance!