]> git.eshelyaron.com Git - emacs.git/commit
Have Python mode cooperate asynchronously with Eldoc scratch/python-eldoc-async
authorJoão Távora <joaotavora@gmail.com>
Wed, 8 Jul 2020 21:47:00 +0000 (22:47 +0100)
committerJoão Távora <joaotavora@gmail.com>
Wed, 8 Jul 2020 21:47:10 +0000 (22:47 +0100)
commit91041920c6f80d7a6b4ae53d27d844018710d7f3
tree20a9950c15d91995a142304c941d10a1b370a695
parent9a7aab2d9e5f5a8f15c6f60130cae6be32b11f48
Have Python mode cooperate asynchronously with Eldoc

When combined with Flymake mode, which also adds a value to
eldoc-documentation-functions, Python-mode users can now experiment
with different eldoc-documentation-strategy values.

Also, this shoulda allow us to write automatic tests for this
particular Eldoc functionality.

* lisp/progmodes/python.el (inferior-python-mode): Set
coming-preoutput-filter-functions.
(python--shell-output-filter-in-progress)
(python--shell-output-filter-buffer): Rename from python- variant.
(python-shell-output-filter): Rework to support async operation.
(python-eldoc--get-doc-at-point): Rework to support async.
(python-eldoc-function): Use callback.
lisp/progmodes/python.el