【问题标题】:Is it possible not to be asked to save the buffer before compile?是否可以在编译前不被要求保存缓冲区?
【发布时间】:2014-12-09 04:16:55
【问题描述】:

我想知道每次更改后执行缓冲区 [C-c C-c] 时是否有某种方式不会提示:“缓冲区已更改,先保存?(y 或 n)”。我遇到了变量 py-ask-about-save,它有以下文档:

If not nil, ask about which buffers to save before executing some code.
Otherwise, all modified buffers are saved without asking.

这是我可以接受的行为。不过

(setq py-ask-about-save nil)

没有效果。还有什么我应该注意的吗?

确实,如果 C-c C-c 不保存任何缓冲区,而只负责执行代码,那就更好了。

【问题讨论】:

    标签: emacs ipython python-mode


    【解决方案1】:

    变量 py-prompt-on-changed-p 似乎是 O.P. 正在寻找的。文档字符串状态:

    When called interactively, ask for save before a changed buffer is sent to interpreter.
    

    另见第 10284 行:http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/view/head:/python-mode.el

    【讨论】:

    • 完美,变量完成了这项工作。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-25
    • 1970-01-01
    • 2010-10-09
    • 1970-01-01
    • 2012-05-22
    相关资源
    最近更新 更多