From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#31405: 25.3; Python.el doesn't provide infos to info-lookup-symbol Date: Thu, 12 Aug 2021 16:13:14 +0200 Message-ID: <87k0kqkayt.fsf@gnus.org> References: <8736yz4jp9.fsf@k-7.ch> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5164"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 31405@debbugs.gnu.org, Noam Postavsky , seb@k-7.ch To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 16:14:10 2021 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 1mEBTF-00014l-VS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 16:14:10 +0200 Original-Received: from localhost ([::1]:52004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEBTE-0001BY-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 10:14:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEBT8-0001B3-B0 for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56247) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEBT8-000827-4b for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEBT7-0002z4-Sr for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 10:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Aug 2021 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31405 X-GNU-PR-Package: emacs Original-Received: via spool by 31405-submit@debbugs.gnu.org id=B31405.162877760811400 (code B ref 31405); Thu, 12 Aug 2021 14:14:01 +0000 Original-Received: (at 31405) by debbugs.gnu.org; 12 Aug 2021 14:13:28 +0000 Original-Received: from localhost ([127.0.0.1]:39557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBSa-0002xo-4B for submit@debbugs.gnu.org; Thu, 12 Aug 2021 10:13:28 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:41320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEBSY-0002xU-CN for 31405@debbugs.gnu.org; Thu, 12 Aug 2021 10:13:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=spFHwwGx0efG4Yw3SZJ4dtDbcOuktC1wwCeN+/mp2N8=; b=V4ZWBaPmqyLuUzPqV7m4SeJD1/ zMkIi+0M81UN+3WeUpsgxQbnB6Ba2xb7jKYx5x9aO5WumM4M5fc5lIpJ0IPX17d5IGNzx025bkP6h bgzl89S0R7f10oQ1EYl+ZsV+jUOZTLAlJU9IpP/0DfS1icZHBxQ8YPZB46FIzT8UQsTs=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mEBSN-0006fe-IU; Thu, 12 Aug 2021 16:13:19 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 23 Aug 2019 09:04:21 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:211679 Archived-At: Stefan Kangas writes: > Sphinx is used to generate Python docs AFAIK, and it supports info > format output. There is also the MELPA package python-info which is > "a simple Emacs package to provide an info manual for Python": > > https://github.com/wilfred/python-info > > Perhaps we should support that use case in vanilla Emacs? One can > always hope that more GNU/Linux distributions takes the hint and > starts generating and shipping the info files for Python. (And that > interested users files bugs with their respective GNU/Linux > distribution, Homebrew for OSX, etc. if they don't already do that.) The Melpa package doesn't seem to exist any more? So I'm guessing there isn't much demand for an Info manual for Python, so adding support for it in info-look would just be frustrating the users, I think. On the other hand, you have a point that if Emacs did provide hooks into Info, then perhaps it'd entice people to start distributing .info files... Hm... Oh! I was looking in melpa-stable -- python-info is indeed in melpa. OK, I've now added support for python-mode in info-lookup-symbol, and seems to work in my one test, which was looking up "date", which took me to: -- Class: datetime.date (year, month, day) All arguments are required. Arguments may be ints or longs, in the following ranges: Which seems correct. People who actually use Python should probably change (info-lookup-maybe-add-help :mode 'python-mode :doc-spec '(("(python)Index"))) to something that filters/matches more accurately, perhaps. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no