diff options
| author | Mattias EngdegÄrd | 2024-02-22 17:20:58 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-02-23 11:09:31 +0100 |
| commit | f85280503a3a67e1618069b1c7d6810efa924fe8 (patch) | |
| tree | 05212c36004d52746c543521567c4478b764af92 /lisp/progmodes/python.el | |
| parent | b868690feff44c7242c942490d1d8bc6d2811fa2 (diff) | |
| download | emacs-f85280503a3a67e1618069b1c7d6810efa924fe8.tar.gz emacs-f85280503a3a67e1618069b1c7d6810efa924fe8.zip | |
Tone down python-mode warning to a simple message (bug#68559)
* lisp/progmodes/python.el
(python-shell-completion-native-turn-on-maybe):
There is no need for an alarming warning when using an inferior Python
without GNU readline; a calm message will do.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 5501926e69d..bedc61408ef 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -4536,18 +4536,11 @@ With argument MSG show activation/deactivation message." | |||
| 4536 | ((python-shell-completion-native-setup) | 4536 | ((python-shell-completion-native-setup) |
| 4537 | (when msg | 4537 | (when msg |
| 4538 | (message "Shell native completion is enabled."))) | 4538 | (message "Shell native completion is enabled."))) |
| 4539 | (t (lwarn | 4539 | (t |
| 4540 | '(python python-shell-completion-native-turn-on-maybe) | 4540 | (when msg |
| 4541 | :warning | 4541 | (message (concat "Python does not use GNU readline;" |
| 4542 | (concat | 4542 | " no completion in multi-line commands."))) |
| 4543 | "Your `python-shell-interpreter' doesn't seem to " | 4543 | (python-shell-completion-native-turn-off nil)))))) |
| 4544 | "support readline, yet `python-shell-completion-native-enable' " | ||
| 4545 | (format "was t and %S is not part of the " | ||
| 4546 | (file-name-nondirectory python-shell-interpreter)) | ||
| 4547 | "`python-shell-completion-native-disabled-interpreters' " | ||
| 4548 | "list. Native completions have been disabled locally. " | ||
| 4549 | "Consider installing the python package \"readline\". ")) | ||
| 4550 | (python-shell-completion-native-turn-off msg)))))) | ||
| 4551 | 4544 | ||
| 4552 | (defun python-shell-completion-native-turn-on-maybe-with-msg () | 4545 | (defun python-shell-completion-native-turn-on-maybe-with-msg () |
| 4553 | "Like `python-shell-completion-native-turn-on-maybe' but force messages." | 4546 | "Like `python-shell-completion-native-turn-on-maybe' but force messages." |