Do not prematurely truncate python eldoc string

'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.
This commit is contained in:
James Thomas 2024-06-22 17:57:00 +05:30 committed by Eli Zaretskii
parent f475a1a254
commit 6ec77f580d
2 changed files with 5 additions and 2 deletions

View file

@ -1555,6 +1555,11 @@ interactive Python interpreter specified by 'python-interpreter'.
It sends the python block delimited by 'python-nav-beginning-of-block'
and 'python-nav-end-of-block' to the inferior Python process.
*** 'eldoc' no longer truncates to a single line by default.
Previously, the entire docstring was not available to eldoc, which made
'eldoc-echo-area-use-multiline-p' ineffective. The old behaviour may be
kept by setting that.
** Inferior Python mode
---

View file

@ -5612,8 +5612,6 @@ See `python-check-command' for the default."
doc = '{objtype} {name}{args}'.format(
objtype=objtype, name=name, args=args
)
else:
doc = doc.splitlines()[0]
except:
doc = ''
return doc"