unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* detect prompt change for interactive python
@ 2008-07-16 18:53 gamename
  2008-07-17  5:34 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gamename @ 2008-07-16 18:53 UTC (permalink / raw)
  To: help-gnu-emacs


Hi,

My normal prompt is "> ".  When I start python interactively with
"python -i", the prompt is now set to ">>> ".

Everything works fine except when I try to recall the previous
commands with "comint-previous-input".  The previous command is
restored to a position just after the first ">" sign.

Here are some examples.

bash prompt:
> oldCmdRecalled

python interactive:
>oldCmdRecalled>>

behavior I want:
>>> oldCmdRecalled

How do I dynamically set the buffer to accept ">>>" as a prompt and
restore commands in the correct spot?

THanks
-T


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-18 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 18:53 detect prompt change for interactive python gamename
2008-07-17  5:34 ` Kevin Rodgers
2008-07-17  6:03 ` Thierry Volpiatto
     [not found] ` <mailman.14882.1216274764.18990.help-gnu-emacs@gnu.org>
2008-07-18 17:32   ` gamename

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).