aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorLiu Hui2025-04-21 12:46:55 +0800
committerEli Zaretskii2025-04-26 14:59:48 +0300
commit46776cae052b9bb106ce322d700abbc7cccc4c77 (patch)
treeac9250b10a092fb0b060f538ae6bc2741fa4e4d4 /lisp/progmodes/python.el
parent8f58f55551341001119034f2e9f5fdc87d3abd54 (diff)
downloademacs-46776cae052b9bb106ce322d700abbc7cccc4c77.tar.gz
emacs-46776cae052b9bb106ce322d700abbc7cccc4c77.zip
Fix filename completion in Python shell (bug#77853)
'comint-filename-completion' may complete the filename at wrong locations. Users who want proper filename completion should use specialized completion backends (e.g. Jedi). * lisp/progmodes/python.el (inferior-python-mode): Remove 'comint-filename-completion' in 'comint-dynamic-complete-functions'.
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 594681594b0..8848a98fe5f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3755,6 +3755,8 @@ variable.
3755 (setq-local compilation-error-regexp-alist 3755 (setq-local compilation-error-regexp-alist
3756 python-shell-compilation-regexp-alist) 3756 python-shell-compilation-regexp-alist)
3757 (setq-local scroll-conservatively 1) 3757 (setq-local scroll-conservatively 1)
3758 (setq-local comint-dynamic-complete-functions
3759 '(comint-c-a-p-replace-by-expanded-history))
3758 (add-hook 'completion-at-point-functions 3760 (add-hook 'completion-at-point-functions
3759 #'python-shell-completion-at-point nil 'local) 3761 #'python-shell-completion-at-point nil 'local)
3760 (define-key inferior-python-mode-map "\t" 3762 (define-key inferior-python-mode-map "\t"