]> git.eshelyaron.com Git - emacs.git/commit
(python-base-mode-map): Use it!
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 7 Mar 2025 04:23:08 +0000 (23:23 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Mar 2025 10:22:15 +0000 (11:22 +0100)
commit5fb7fcbeddf06179fdc0e01c7b177fad59ac66d9
tree824d1ebcb249aaa032e663118c086993d48dbd3f
parentb6a203c584da6a2e0c49a9833b9bcdc7423a1dc9
(python-base-mode-map): Use it!

Rather than use `copy-keymap` between `python-mode-map` and
`python-ts-mode-map`, move the shared bindings to `python-base-mode-map`.

* lisp/progmodes/python.el (python-base-mode-map): Define it explicitly.
Move all the bindings of `python-mode-map` to it.
(python-mode-map, python-ts-mode-map): Inherit from it.

(cherry picked from commit 2dea3a0d34859852d3577f6054acb49f6e515eb2)
lisp/progmodes/python.el