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.devel Subject: Re: Integration of Info manuals in programming modes, Re: Integration of Info manuals in programming modes Date: Sun, 08 Dec 2024 13:34:19 +0200 Message-ID: <86ttbeflxg.fsf@gnu.org> References: <87ser8c230.fsf@jeremybryant.net> <86ser87rut.fsf@gnu.org> <87cyicuk25.fsf@melete.silentflame.com> <86jzcj6e4h.fsf@gnu.org> <87y10u6174.fsf@web.de> <87ser8c230.fsf@jeremybryant.net> <86ser87rut.fsf@gnu.org> <87cyicuk25.fsf@melete.silentflame.com> <86jzcj6e4h.fsf@gnu.org> <87y10u6174.fsf@web.de> <86ldwuy3lu.fsf@gnu.org> <877c8ey0iu.fsf@gmail.com> <86ed2mxzj4.fsf@gnu.org> <87y10uwjc6.fsf@gmail.com> <865xnyxtsv.fsf@gnu.org> <87ttbiweqx.fsf@gmail.com> <86a5damj8c.fsf@gnu.org> <87plm6wbg4.fsf@gmail.com> <86ldwuy3lu.fsf@gnu.org> <865xnuvbg9.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="722"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: James Thomas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 08 12:35:09 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tKFZ6-000AaC-U3 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Dec 2024 12:35:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKFYO-0001Hv-OL; Sun, 08 Dec 2024 06:34:24 -0500 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 1tKFYN-0001Gv-US for emacs-devel@gnu.org; Sun, 08 Dec 2024 06:34:23 -0500 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 1tKFYL-0000Dd-SM; Sun, 08 Dec 2024 06:34:23 -0500 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=AyTzUt3v7zoxWpNcGQsaQD+RJOzB+IlBEQqh2fEJGO4=; b=U66riRi0OVwj kGA3bau1vcgV5Z3ELBFQfzxYUMts398igZCgv3EcuG8gHThr16nNxUeEvy3EE3s3MG/oCZTraqcVe 2dplGpFjLH62DwRFOcH/9WCZ6rvnPHiDX2TGpJav75PmyDdY9A4eOampKAooie/SuEQD3Y8EiMTF5 IU62BulnQNLoPAKYsFwPaC7ka7TlDydqaksiyLFPHVLZcYXz3SS6Z4Pwz5K2FVXJ2eCLTfnNFwuzb Zjwtkq4Xrs1GZOMHTfbMHvw+XCJiBLK4dRvv/vzPMUX2rOK1oMwhfSrS0YfGI3EhXaAu6M2rdn5ny 1CTQqqhc9zvKb9BBCcGTCQ==; In-Reply-To: <865xnuvbg9.fsf@gmx.net> (message from James Thomas on Sun, 08 Dec 2024 13:43:58 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326187 Archived-At: > From: James Thomas > Date: Sun, 08 Dec 2024 13:43:58 +0530 > > Eli Zaretskii writes: > > >> One thing where Info is on-topic here are Emacs integrations. > >> > >> I remember how useful it was when I had texinfo links directly > >> available in Emacs: > >> https://www.draketo.de/light/english/free-software/read-your-python-module-documentation-emacs > > > > Sorry, I don't understand: info-look.el already supports "C-h S" for > > Python code, assuming you have a Python manual in Info format > > installed. > > Just wanna chime in that this is not perfect, for other reasons: For > e.g. 'C-h S' on 'print' does not give the index item "* built-in > function; print" because, as you can see, it's not named appropriately > in Sphinx's generation. Please report that to whoever maintains the Python manual or Sphinx. info-look.el can fix many problems in the manuals, but not all of them. That said, if the "built-in function" part is a general pattern, we could change the regexps in info-look.el to use that to our advantage; patches welcome. > > What other GNU programming packages which have Info manuals and > > suitable Emacs major modes are not supported by info-look.el? > > Speaking about python, many libraries (such as PyTorch & NumPy) use > Sphinx, but the info generation has bug when it uses 'numpydoc' that > requires a little manual fixing of the .texi. Yes, Sphinx is in many cases a bad idea, but what does this have to do with the issue at hand here?