]> git.eshelyaron.com Git - emacs.git/commit
python.el: fallback completion, ffap and eldoc setup enhancements
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 22 Aug 2015 23:42:04 +0000 (20:42 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 22 Aug 2015 23:42:04 +0000 (20:42 -0300)
commit24ae05251587fbba4687544ec57565c8bc48071a
tree17d37e47080f0dcc1a7b84971c7025c6751fc2f8
parent0a3ed5f70c6025fbc2a7e3ca53f11770e4fabe61
python.el: fallback completion, ffap and eldoc setup enhancements

Setup codes are now sent continuously so that the current frame is
always taken into account.  This allows working within debuggers
and always keeping a fresh version of setup codes that will return
proper results.

* lisp/progmodes/python.el (python-shell-setup-codes): Cleanup.
(python-shell-send-setup-code): Send code only when
python-shell-setup-codes is non-nil.
(python-shell-completion-string-code): Cleanup trailing newline.
(python-shell-completion-get-completions): Always use
python-shell-completion-setup-code.
(python-ffap-setup-code): Work with any object, not only modules.
(python-ffap-string-code): Cleanup trailing newline.
(python-ffap-module-path): Always use python-ffap-setup-code.
(python-eldoc-string-code): Cleanup trailing newline.
(python-eldoc--get-doc-at-point): Always use
python-eldoc-setup-code.  Return non-nil only if docstring is
found.
lisp/progmodes/python.el