From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gamename Newsgroups: gmane.emacs.help Subject: detect prompt change for interactive python Date: Wed, 16 Jul 2008 11:53:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216237246 1189 80.91.229.12 (16 Jul 2008 19:40:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jul 2008 19:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 16 21:41:34 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJCsY-0006ZL-En for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 21:41:34 +0200 Original-Received: from localhost ([127.0.0.1]:33310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJCrg-0003ul-0c for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 15:40:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x35g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 76.222.192.62 Original-X-Trace: posting.google.com 1216234407 29443 127.0.0.1 (16 Jul 2008 18:53:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 16 Jul 2008 18:53:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x35g2000hsb.googlegroups.com; posting-host=76.222.192.62; posting-account=7UkxlwoAAACoABDEFXUvLX1hUNHcpo5L User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:160299 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55646 Archived-At: 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