在Octave上更改默认编辑器带有错误消息

问题描述 投票:1回答:1

我用以下几行将默认的Octave编辑器更改为Notepad ++:

EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');
edit ("editor", sprintf ("%s %%S", EDITOR()))
edit mode async

当我写编辑时,记事本会弹出,并且工作正常。但是每次我打开Octave CLI时,都会出现以下错误:

error: The EDITOR option of edit has been removed.  Use EDITOR() directly.
error: called from
    edit at line 165 column 9
    C:\Users\emiry\.octaverc at line 8 column 1

如何在不触发错误的情况下更改编辑器?

octave
1个回答
0
投票

警告来自第二行

edit ("editor", sprintf ("%s %%S", EDITOR()))

如果您查看help edit您会注意到不再使用editor。设置是您的第一行

EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');
© www.soinside.com 2019 - 2024. All rights reserved.