emacs - 如何让 Octave 的情节在 emacs 下运行?

标签 emacs plot octave

在终端窗口中使用 Octave 音程

x=1:10;
plot(x);

工作正常,生成一个可缩放的绘图窗口等。

在emacs下运行octave,会出现绘图,但绘图窗口挂起并且无法缩放。如果再次执行 plot(x);,窗口就会消失。

我正在使用 Debian Jessie、GNU Emacs 24.3.1 和 GNU Octave 版本 3.8.1。

为了让它正常工作,我必须创建一个 .octaverc 来设置提示。

$ cat ~/.octaverc
PS1(">> ")

最佳答案

问题似乎是由使用无线编辑开关的 Octave 模式运行 Octave 引起的。你可以从编译好的 lisp 文件中破解它,一切正常!

在我的系统上:

cd /usr/share/emacs/24.4/lisp/progmodes
sudo vi octave.elc

直接在 .elc 文件中将 --no-line-editing 更改为 --line-editing

重新启动 emacs,一切都会好的。

关于emacs - 如何让 Octave 的情节在 emacs 下运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25436702/

相关文章:

c++ - emacs C/C++ 缩进 : different for pre and post comments//or: how can I make certain comments like//^ be indented extra?

python matplotlib 用相同的参数绘制许多子图

python : Matplotlib Plotting all data in one plot

c++ - 在 C++ 中从中心按像素绘制实心圆?

machine-learning - 使用矢量化的梯度下降的倍频代码未正确更新成本函数

emacs - 停止在 emacs 启动时运行的tramp-mode

emacs - 更改树小部件节点的文本

curl - urlread(), urlwrite() 不适用于 Octave for Windows 中的 https 页面

vim - Vim 的 dd,o,O 的 Emacs 等价物

matlab - 大矩阵和稀疏矩阵乘法