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: Fri, 13 Aug 2021 13:34:47 +0200 Message-ID: <87lf55fui0.fsf@gnus.org> References: <8736yz4jp9.fsf@k-7.ch> <87k0kqkayt.fsf@gnus.org> <871r6yd7c1.fsf@tcd.ie> <83k0kqd52f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36740"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , stefan@marxist.se, npostavs@gmail.com, 31405@debbugs.gnu.org, seb@k-7.ch To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 13 13:36:11 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 1mEVTu-0009F2-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Aug 2021 13:36:10 +0200 Original-Received: from localhost ([::1]:57322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEVTs-0003fn-Gq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Aug 2021 07:36:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEVTm-0003fe-Uw for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2021 07:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEVTm-0002h5-Oa for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2021 07:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEVTm-0006nW-GV for bug-gnu-emacs@gnu.org; Fri, 13 Aug 2021 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Aug 2021 11:36:02 +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.162885450726043 (code B ref 31405); Fri, 13 Aug 2021 11:36:02 +0000 Original-Received: (at 31405) by debbugs.gnu.org; 13 Aug 2021 11:35:07 +0000 Original-Received: from localhost ([127.0.0.1]:40634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEVSs-0006lz-Qh for submit@debbugs.gnu.org; Fri, 13 Aug 2021 07:35:07 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:50300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEVSo-0006ks-73 for 31405@debbugs.gnu.org; Fri, 13 Aug 2021 07:35:04 -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=txfpZcHqDrXVazUM3384FT9y8lDE2dQJFm9aposdpRc=; b=kBTXoWhOVbkxXg7HSPCbucthU5 haJ2u3TsJ2N6Ym19HrKsutLWCTT7JLhcI36yg9/tgAjXzipKNnzESC8xN6uLoQLUdkgYmZZOdCjZR LuM8F7i5/WAvmFGlgP+pXhGwg3wr3eSRD/CqqVnpK6E2rIhlv98B/BEkCtFfb8ixRGAY=; 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 1mEVSa-0002xN-Jp; Fri, 13 Aug 2021 13:34:52 +0200 In-Reply-To: <83k0kqd52f.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 12 Aug 2021 19:02:32 +0300") 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:211734 Archived-At: Eli Zaretskii writes: > IMNSHO, it's a bug in Debian that they include the version in the file > name and don't provide any symlink or other way of getting the Python > Info manual. That's not how the Info system was designed to work. Yeah, the file is called python3.9-doc: /usr/share/info/python3.9.info.gz and there's no symlink. Python is slightly ... special, I guess, since there's the constant in-fighting about python2/3, but it's still pretty odd. Eli Zaretskii writes: > If Debian is including the version in the file name, and we want to > support that, I think we should have a defcustom for users to control > which version they want Emacs to look for. Or maybe we should allow a > list of file names there, and then we could mention all the known > names for reasonably recent versions of Python. > > Again, the Info system is not designed to support that. For example, > hyperlinks from other manuals won't work reliably, and you'd have > trouble with the system-wide DIR file, if you ever dare updating it > outside of Debian's control. Yeah, it's far from ideal. But I think we can try to be helpful in info-look, at least -- I'll add some further code to try to do a trivial search in the python3.* name space. I don't think adding a variable here should be necessary. If it turns out that our guesses are wrong, then the user can do (with-eval-after-load 'info-look (info-lookup-add-help :mode 'python-mode :doc-spec '(("(python-some-weird-name)Index")))) as Basil suggested. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no