Bug#293235: [Pkg-octave-devel] Bug#293235: octave2.1-emacsen: hangs Emacs

John W. Eaton "John W. Eaton" <jwe@bevo.che.wisc.edu>, 293235@bugs.debian.org
Sat, 12 Feb 2005 22:54:03 -0500


On  4-Feb-2005, Francesco Potorti` <Potorti@isti.cnr.it> wrote:

| Ok, I found some more info.
| 
| First of all, it happens in some particular cases, so it should probably
| be demoted from important to normal.
| 
| Second, it could be that the problem existed even in previous versions,
| because I changed my ~/.octaverc about at the same time I upgraded to
| the current Debian version.
| 
| The problem is that if and only if I put this line:
| 
| PS1="\\s@\\h> ";
| 
| in ~/.octaverc and do M-x run-octave, Emacs hangs.  I hit C-g, switch to
| the *Inferior-Octave* buffer and see nothing.  But apparently Octave is
| receiving input, because it exits when I type "quit".  So for some
| reason it does not emit any output.  That's maybe why Emacs hangs:
| comint is waiting for the prompt.

If you change the prompt for Octave, you'll need to modify the Emacs
variable inferior-octave-prompt.  The default definition is:

  (defcustom inferior-octave-prompt
    "\\(^octave\\(-[.0-9]+\\)?\\(:[0-9]+\\)?\\|^debug\\|^\\)>+ "
    "*Regexp to match prompts for the inferior Octave process."
    :type 'regexp
    :group 'octave-inferior)

Or perhaps we should arrange for the prompt to be set when the
Octave process is started by Emacs?  But that still would solve the
problem of people changing the prompt during a session.

jwe