* redirection of help output to a separate buffer in comint (python)
@ 2016-03-30 14:03 Sam Steingold
2016-03-30 14:59 ` Vitalie Spinu
0 siblings, 1 reply; 3+ messages in thread
From: Sam Steingold @ 2016-03-30 14:03 UTC (permalink / raw)
To: emacs-devel
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
--8<---------------cut here---------------start------------->8---
(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")))
--8<---------------cut here---------------end--------------->8---
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/) 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!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: redirection of help output to a separate buffer in comint (python)
2016-03-30 14:03 redirection of help output to a separate buffer in comint (python) Sam Steingold
@ 2016-03-30 14:59 ` Vitalie Spinu
2016-03-30 15:46 ` Sam Steingold
0 siblings, 1 reply; 3+ messages in thread
From: Vitalie Spinu @ 2016-03-30 14:59 UTC (permalink / raw)
To: Sam Steingold; +Cc: emacs-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: redirection of help output to a separate buffer in comint (python)
2016-03-30 14:59 ` Vitalie Spinu
@ 2016-03-30 15:46 ` Sam Steingold
0 siblings, 0 replies; 3+ messages in thread
From: Sam Steingold @ 2016-03-30 15:46 UTC (permalink / raw)
To: Vitalie Spinu; +Cc: emacs-devel
yep, thanks!
On Wed, Mar 30, 2016 at 10:59 AM, Vitalie Spinu <spinuvit@gmail.com> 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/>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-03-30 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-30 14:03 redirection of help output to a separate buffer in comint (python) Sam Steingold
2016-03-30 14:59 ` Vitalie Spinu
2016-03-30 15:46 ` Sam Steingold
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.