diff options
| author | Eli Zaretskii | 2024-08-31 08:14:14 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-31 08:14:14 -0400 |
| commit | fa76ec7b5f0e509655662e684ab974a91288695b (patch) | |
| tree | 00308b6a40ba6ca549b7a0194ea517ea62aafeb1 /lisp/progmodes/python.el | |
| parent | e176ec4a8f287d95d2126fcd3e757b8c10deb36b (diff) | |
| parent | 5fd75133cfe389004f9fca8f11e093e531c45fe2 (diff) | |
| download | emacs-fa76ec7b5f0e509655662e684ab974a91288695b.tar.gz emacs-fa76ec7b5f0e509655662e684ab974a91288695b.zip | |
Merge from origin/emacs-30
5fd75133cfe Make 'python-shell--with-environment' respect buffer-loca...
e27849ecf6e Avoid ANSI escape characters in Python output (bug#45938)
4f521fa14c1 Fix handling of hook variables in 'use-package'
bb5576fc907 Work around Gnuplot bug in displaying plots
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index fb4b9afc073..669638544ce 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -3030,11 +3030,11 @@ machine then modifies `tramp-remote-process-environment' and | |||
| 3030 | (tramp-dissect-file-name default-directory 'noexpand))))) | 3030 | (tramp-dissect-file-name default-directory 'noexpand))))) |
| 3031 | (if vec | 3031 | (if vec |
| 3032 | (python-shell--tramp-with-environment vec extraenv bodyfun) | 3032 | (python-shell--tramp-with-environment vec extraenv bodyfun) |
| 3033 | (let ((process-environment | 3033 | (cl-letf (((default-value 'process-environment) |
| 3034 | (append extraenv process-environment)) | 3034 | (append extraenv process-environment)) |
| 3035 | (exec-path | 3035 | ((default-value 'exec-path) |
| 3036 | ;; FIXME: This is still Python-specific. | 3036 | ;; FIXME: This is still Python-specific. |
| 3037 | (python-shell-calculate-exec-path))) | 3037 | (python-shell-calculate-exec-path))) |
| 3038 | (funcall bodyfun))))) | 3038 | (funcall bodyfun))))) |
| 3039 | 3039 | ||
| 3040 | (defun python-shell--tramp-with-environment (vec extraenv bodyfun) | 3040 | (defun python-shell--tramp-with-environment (vec extraenv bodyfun) |
| @@ -4549,6 +4549,9 @@ def __PYTHON_EL_native_completion_setup(): | |||
| 4549 | readline.parse_and_bind('tab: complete') | 4549 | readline.parse_and_bind('tab: complete') |
| 4550 | # Require just one tab to send output. | 4550 | # Require just one tab to send output. |
| 4551 | readline.parse_and_bind('set show-all-if-ambiguous on') | 4551 | readline.parse_and_bind('set show-all-if-ambiguous on') |
| 4552 | # Avoid ANSI escape characters in the output | ||
| 4553 | readline.parse_and_bind('set colored-completion-prefix off') | ||
| 4554 | readline.parse_and_bind('set colored-stats off') | ||
| 4552 | # Avoid replacing common prefix with ellipsis. | 4555 | # Avoid replacing common prefix with ellipsis. |
| 4553 | readline.parse_and_bind('set completion-prefix-display-length 0') | 4556 | readline.parse_and_bind('set completion-prefix-display-length 0') |
| 4554 | 4557 | ||