all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Kangas <stefan@marxist.se>
Cc: 31405@debbugs.gnu.org, Noam Postavsky <npostavs@gmail.com>, seb@k-7.ch
Subject: bug#31405: 25.3; Python.el doesn't provide infos to info-lookup-symbol
Date: Thu, 12 Aug 2021 16:13:14 +0200	[thread overview]
Message-ID: <87k0kqkayt.fsf@gnus.org> (raw)
In-Reply-To: <CADwFkmkpvG0L5byV1UdBh_phqSUpNJ1cUifmh7oVsLnBQ0qSgg@mail.gmail.com> (Stefan Kangas's message of "Fri, 23 Aug 2019 09:04:21 +0200")

Stefan Kangas <stefan@marxist.se> 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





  reply	other threads:[~2021-08-12 14:13 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-10 15:24 bug#31405: 25.3; Python.el doesn't provide infos to info-lookup-symbol Sébastien Gendre
2019-05-07 17:36 ` npostavs
2019-08-23  7:04 ` Stefan Kangas
2021-08-12 14:13   ` Lars Ingebrigtsen [this message]
2021-08-12 15:13     ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-12 15:21       ` Lars Ingebrigtsen
2021-08-12 15:42         ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-28  9:56           ` Augusto Stoffel
2021-08-28 10:05             ` Eli Zaretskii
2021-08-12 16:06         ` Eli Zaretskii
2021-08-12 16:02       ` Eli Zaretskii
2021-08-13 11:34         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0kqkayt.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=31405@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    --cc=seb@k-7.ch \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.