[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirection of help output to a separate buffer in comint (python)
From: |
Vitalie Spinu |
Subject: |
Re: redirection of help output to a separate buffer in comint (python) |
Date: |
Wed, 30 Mar 2016 16:59:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) |
Isn't this python-x.el package?
Vitalie
>> On Wed, Mar 30 2016 10:03, Sam Steingold wrote:
> Hi,
> 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
> (defun python-describe-at-point (symbol process)
> (interactive (list (python-info-current-symbol)
> (python-shell-get-process)))
> (comint-send-string process (concat "help('" symbol "')\n")))
> the help is displayed in the comint buffer, not the *Help(Python)*
> buffer.
> Any pointers would be appreciated.
> Thanks.
> PS. I thought that `comint-redirect-*' would be used, but it appears
> that it is not.