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

Francesco Potorti` Francesco Potorti` <Potorti@isti.cnr.it>, 293235@bugs.debian.org
Tue, 15 Feb 2005 19:32:27 +0100


>If you change the prompt for Octave, you'll need to modify the Emacs
>variable inferior-octave-prompt.  

I see.  I should have realized that before...

>				   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)

Hmm.  Why not simply "^[^>]+>+ "?

>Or perhaps we should arrange for the prompt to be set when the
>Octave process is started by Emacs?  

Anyway, setting PS1 inside .octaverc is useless with run-octave, because
PS1 is then reset to "octave> ".  Mh.  inferior-octave-startup does it.
Why?

>				      But that still would solve the
>problem of people changing the prompt during a session.

In principle, the inferior octave mode could detect this and adjust
comint-prompt-regexp accordingly.  Or just ignore this problem (as it
currently does).

-- 
Francesco Potort́ (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa         Email: Potorti@isti.cnr.it
Web: http://fly.isti.cnr.it/           Key:   fly.isti.cnr.it/public.key