Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inferior octave freezes

Tags:

emacs

octave

In emacs octave-mode, when I type M-x run-octave the command freezes so I do C-g to escape. I can switch to the *Inferior Octave* buffer with C-x b but there is no prompt, just the welcome message. C-c i l also does not work.

like image 654
Elliot Gorokhovsky Avatar asked Jul 12 '14 04:07

Elliot Gorokhovsky


2 Answers

From http://savannah.gnu.org/bugs/?41099#comment4:

  1. Add PS1(">> ") to ~/.octaverc
  2. Add (setq inferior-octave-prompt ">> ") to ~/.emacs.d/init.el (or wherever your Emacs startup is)

This got me going on Ubuntu 14.04, with Emacs 24.3 and Octave 3.8.1. For future readers: according to the bug report, this should be fixed in Emacs 24.4, so if you encounter a similar problem in that or a later Emacs version, it might be something else.

like image 36
Rory Yorke Avatar answered Nov 03 '22 07:11

Rory Yorke


With Emacs 24.3.1 simply add PS1(">> ") to ~/.octaverc. No need to change the value of 'inferior-octave-prompt'.

like image 196
g1ul10 Avatar answered Nov 03 '22 07:11

g1ul10