[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

redirection of help output to a separate buffer in comint (python)

From: Sam Steingold
Subject: redirection of help output to a separate buffer in comint (python)
Date: Wed, 30 Mar 2016 10:03:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)


When I type "help('foo')" in the Python interaction buffer, the help
output appears in the "*Help(Python)*" buffer instead of the comint
buffer itself (and, yes, this is the desired behavior).

However, I cannot figure out what code implements it.

E.g., when I do

--8<---------------cut here---------------start------------->8---
(defun python-describe-at-point (symbol process)
  (interactive (list (python-info-current-symbol)
  (comint-send-string process (concat "help('" symbol "')\n")))
--8<---------------cut here---------------end--------------->8---

the help is displayed in the comint buffer, not the *Help(Python)*

Any pointers would be appreciated.


PS. I thought that `comint-redirect-*' would be used, but it appears
that it is not.

Sam Steingold (http://sds.podval.org/) on Ubuntu 15.10 (wily) X 11.0.11702000
http://www.childpsy.net/ http://palestinefacts.org http://iris.org.il
http://dhimmi.org http://openvotingconsortium.org http://truepeace.org
Don't wait for the rain to end. Learn to dance in the rain!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]