help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no prompt for Octave on Emacs for Windows


From: poti
Subject: Re: no prompt for Octave on Emacs for Windows
Date: Wed, 20 Jun 2007 14:18:37 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

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






reply via email to

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