I am using run-octave in Emacs to trigger octave. Something is acting abnormally.
Every time I hit TAB to complete, there would be a tailing ^M; If I edit a .m file using edit a.m, it would start a new frame instead of a new buffer and the prompt is waiting for the closure of that frame so it would not respond to any input. How could I configure .emacs so that run-octave would behave normally?
Any comment is appreciated!
You seem to have two problems. I’m not sure about the trailing
^M, which seems to be caused by some sort of Windows/Unix CR/LF problem, but maybe I can help with the second problem.The
editcommand uses theEDITORenvironment variable to decide what to run. It seems that yours is either set toemacsclientor has defaulted to it. You haven’t said whether you’re on Unix or Windows, so I’m going to assume the former: you’ll have to change this a bit for Windows.To avoid the waiting thing, try running
octavewith a differentEDITOR. For example, try out runningWhen you type
edit foo, it should bring up an Emacs buffer (if you want a new frame as well, use-ctoo) but not wait until you’re done.If this fixes things for you, you could change your
~/.bashrcto include the line