From 905983647acc87c0e9c9b76fa7922d0288af20b9 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Sat, 22 Jun 2024 17:57:00 +0530 Subject: [PATCH] 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. --- etc/NEWS | 5 +++++ lisp/progmodes/python.el | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 2349cc0cacb..f810b3d04a3 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1499,6 +1499,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 --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index bb2bf1731b4..a52e21f625e 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -5607,8 +5607,6 @@ python-eldoc-setup-code doc = '{objtype} {name}{args}'.format( objtype=objtype, name=name, args=args ) - else: - doc = doc.splitlines()[0] except: doc = '' return doc" -- 2.43.0