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:
parent
f475a1a254
commit
6ec77f580d
2 changed files with 5 additions and 2 deletions
5
etc/NEWS
5
etc/NEWS
|
@ -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
|
||||
|
||||
---
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue