gpt4 book ai didi

matlab - Emacs 缓冲区撤消限制

转载 作者:太空宇宙 更新时间:2023-11-03 19:30:38 27 4
gpt4 key购买 nike

当我大量打印到标准输出时,我在 matlab-shell 缓冲区中收到此警告:

Warning (undo): Buffer `*MATLAB*' undo info was 12268000 bytes long.
The undo info was discarded because it exceeded `undo-outer-limit'.

This is normal if you executed a command that made a huge change
to the buffer. In that case, to prevent similar problems in the
future, set `undo-outer-limit' to a value that is large enough to
cover the maximum size of normal changes you expect a single
command to make, but not so large that it might exceed the
maximum memory allotted to Emacs.

我的 emacs 看起来像这样: enter image description here

我真的不需要在 matlab-shell 中进行任何撤消操作,这是正确的缓冲区。有没有办法禁用此警告?请注意,左侧缓冲区是一个 MATLAB 脚本,这意味着主要模式是 MATLAB,当然不应在此处禁用撤消。

最佳答案

正如该警告消息所说(或曾经说过?):

You can disable the popping up of this buffer by adding the entry (undo discard-info) to the user option warning-suppress-types, which is defined in the warnings library.

即:

(add-to-list 'warning-suppress-types '(undo discard-info))

(这当然只会禁用警告,而不是撤消数据收集本身。)

关于matlab - Emacs 缓冲区撤消限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16732844/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com