aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorStephen Berman2024-10-13 11:30:11 +0200
committerStephen Berman2024-10-13 11:30:11 +0200
commit9a110c390dce9600ce8323ce8e87b14d379736e4 (patch)
tree9a477e1e6fb61954e4d8871dce2f88672b367841 /lisp/progmodes/python.el
parentda048c6927020e71b7c3d0f39e0d37cdb3ae76ab (diff)
downloademacs-9a110c390dce9600ce8323ce8e87b14d379736e4.tar.gz
emacs-9a110c390dce9600ce8323ce8e87b14d379736e4.zip
Prevent void-variable error in python-mode (bug#73773)
* lisp/progmodes/python.el: Define 'subword-mode' before its use in 'python-mode-map' so invoking menu-bar-open in a python-mode buffer does not cause a void-variable error when subword-mode is not loaded, menu-bar-mode is disabled and debug-on-error is enabled.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 812e28268c2..a75317b3b0e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -361,6 +361,8 @@ To customize the Python interpreter for interactive use, modify
361 ;; Utilities 361 ;; Utilities
362 "<remap> <complete-symbol>" #'completion-at-point) 362 "<remap> <complete-symbol>" #'completion-at-point)
363 363
364(defvar subword-mode nil)
365
364(easy-menu-define python-menu python-mode-map 366(easy-menu-define python-menu python-mode-map
365 "Menu used for ´python-mode'." 367 "Menu used for ´python-mode'."
366 '("Python" 368 '("Python"