emacs-devel
[Top][All Lists]
Advanced

[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: Sam Steingold
Subject: Re: redirection of help output to a separate buffer in comint (python)
Date: Wed, 30 Mar 2016 11:46:19 -0400

yep, thanks!

On Wed, Mar 30, 2016 at 10:59 AM, Vitalie Spinu <address@hidden> wrote:
>
> 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.



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net/>



reply via email to

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