From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71720: [PATCH] Do not prematurely truncate python eldoc string Date: Sat, 22 Jun 2024 16:03:06 +0300 Message-ID: <86jzihgmet.fsf@gnu.org> References: <86frt5xi3e.fsf@outlook.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32943"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71720@debbugs.gnu.org To: James Thomas , kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 22 15:04:14 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sL0Pc-0008LQ-VU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jun 2024 15:04:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sL0PU-0000Dj-5e; Sat, 22 Jun 2024 09:04:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL0PS-0000DF-D8 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 09:04:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sL0PS-0000bd-4v for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sL0PR-0004Fz-T4 for bug-gnu-emacs@gnu.org; Sat, 22 Jun 2024 09:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jun 2024 13:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71720 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 71720-submit@debbugs.gnu.org id=B71720.171906139616293 (code B ref 71720); Sat, 22 Jun 2024 13:04:01 +0000 Original-Received: (at 71720) by debbugs.gnu.org; 22 Jun 2024 13:03:16 +0000 Original-Received: from localhost ([127.0.0.1]:44672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL0Oh-0004Ej-J1 for submit@debbugs.gnu.org; Sat, 22 Jun 2024 09:03:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sL0Of-0004ES-VC for 71720@debbugs.gnu.org; Sat, 22 Jun 2024 09:03:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sL0Oa-0000XT-9u; Sat, 22 Jun 2024 09:03:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=o32Yk6Cq5igeL6Y/GghtTZhslpyVcU/viZZ8OlIYjg4=; b=Hx7jQHL1Y7jj mDruXnA0vqpXmY65tdg7kFwDjXGEC4AG1zjnVEatV1vdeyhXwlTiXFtYlpD574ba5jzFeVazCd0L3 YDPzBlozyCrNpBmV9DYKXxmgo+0E2qCDOBcI+Uygw4MjQb+PQkzB+UVyuDwqMh4sRqoVmABfIoM9b VBx22n5jpgOfytYLm3Ul7/h/zemK24qiLPN44uSZltfVjhktwJjkpA4LTHbZINLqcSC4OSapS9fYA MdqBcNr3otFbi26E9p2S1UAqXdwMaVPZBIwrzzcw+SZCAmHhKKFsHhasxUxhKcyJNqCEep4Fmf1EK Z+ErWBj0Vw+Sf5aAmneY+w==; In-Reply-To: <86frt5xi3e.fsf@outlook.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287704 Archived-At: > Date: Sat, 22 Jun 2024 18:14:21 +0530 > From: James Thomas via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > - emacs -Q > - C-x C-f test.py > - M-x run-python > - C-x o > - Type: print( > > Only one line is shown, even with: > > - M-x eldoc-doc-buffer. > > > From 9fb4b45ef2c408ff76d5e145ea3c38eac60b4d16 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. > --- > lisp/progmodes/python.el | 2 -- > 1 file changed, 2 deletions(-) > > 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 kobarity, any comments?