summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/lisp.el
diff options
context:
space:
mode:
authorCharalampos Mitrodimas <charmitro@posteo.net>2024-04-02 19:02:46 +0000
committerEli Zaretskii <eliz@gnu.org>2024-05-23 16:16:34 +0300
commit8f010e9a2926bd3886c54a0360ff341bc66f8088 (patch)
tree8647d6745a1e27a137a68c59fbabf0e7d8ae6193 /lisp/emacs-lisp/lisp.el
parenta2ca5d01989cbe8d43f7763aa5ac374b49980c39 (diff)
downloademacs-8f010e9a2926bd3886c54a0360ff341bc66f8088.tar.gz
emacs-8f010e9a2926bd3886c54a0360ff341bc66f8088.tar.bz2
emacs-8f010e9a2926bd3886c54a0360ff341bc66f8088.zip
Improve 'key-translate' to support removing translations
This patch enhances the key-translate function to allow removing keyboard translations by passing nil as the second argument (TO). If TO is nil, any existing translation for the FROM key will be removed. The compiler macro is updated to only check TO when it is non-nil. This change makes key-translate more consistent with the behavior of 'keyboard-translate', providing a way to remove translations without having to specify the same key for both FROM and TO. The documentation string is updated to reflect the new behavior. * lisp/keymap.el (key-translate): Support removing translations by passing nil as the second argument (TO). Also signal an error if multiple items are passed. (Bug#70139)
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions