From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: poti@potis.org Newsgroups: gmane.emacs.help,gmane.emacs.bugs Subject: Re: no prompt for Octave on Emacs for Windows Date: Wed, 20 Jun 2007 14:18:37 -0400 Message-ID: <20070620181837.GA13565@mail.potis.org> References: <20070610042156.GA19913@mail.potis.org> <20070610204946.GA21395@mail.potis.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182363575 1559 80.91.229.12 (20 Jun 2007 18:19:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 18:19:35 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, jwe@bevo.che.wisc.edu To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 20 20:19:34 2007 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 1I14mC-0001G0-9D for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 20:19:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I14mB-0007ct-Pg for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Jun 2007 14:19:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I14lv-0007cb-4w for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 14:19:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I14lu-0007cO-1e for help-gnu-emacs@gnu.org; Wed, 20 Jun 2007 14:19:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I14ls-0007bY-4U; Wed, 20 Jun 2007 14:19:12 -0400 Original-Received: from sitemail2.everyone.net ([216.200.145.36] helo=omta09.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I14lr-0000sN-Ph; Wed, 20 Jun 2007 14:19:11 -0400 Original-Received: from pop16.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta09.mta.everyone.net (Postfix) with ESMTP id 0298F40C90; Wed, 20 Jun 2007 11:19:11 -0700 (PDT) X-Eon-Dm: pop16 Original-Received: by pop16.mta.everyone.net (EON-AUTHRELAY2 - 48f102f2) id pop16.4678958a.23827; Wed, 20 Jun 2007 11:18:55 -0700 X-Eon-Sig: AQLTeK1GeW+PPG+5DAIAAAAD,ce79ead37770f29e2ba14a85ba631e7e Original-Received: by potis.org (nbSMTP-1.00) for uid 1000 poti@potis.org; Wed, 20 Jun 2007 14:18:43 -0400 (EDT) Content-Disposition: inline In-Reply-To: <20070610204946.GA21395@mail.potis.org> User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Linux 2.4-2.6 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:45189 gmane.emacs.bugs:15966 Archived-At: I posted in help-gnu-emacs that Octave was not working with Emacs as of the 22.1 release. I have since found a number of answers: in shell or eshell all works well if the command issued is : octave -i This is the command that is issued in octave-ind.el. However, octave-inf.el shipped with Emacs 22.1 and with Octave 2.9.12 did not work with Emacs because the string looked for in the prompt did not include ".exe". This bug is fixed by adding "\\|.exe" to the definition of inferior-octave-prompt, as it appears below: (defcustom inferior-octave-prompt "\\(^octave\\(\\|.bin\\|.exe\\)\\(-[.0-9]+\\)?\\(:[0-9]+\\)?\\|^debug\\|^\\)>" "Regexp to match prompts for the inferior Octave process." :type 'regexp :group 'octave-inferior) see this post for a thread detailing how this was found and containing requests to synchronize and consolidate Emacs and Octave versions of the Octave mode files: http://www.cae.wisc.edu/pipermail/octave-maintainers/2007-June/003342.html