2

変更後にバッファ [Cc Cc] を実行するたびに、「Buffer changed, save first? (y or 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)

効果はありません。他に注意すべきことはありますか?

実際、 Cc Cc がバッファを保存する効果がなく、コードの実行のみを担当するのであれば、さらに良いでしょう。

4

1 に答える 1

2

The variable py-prompt-on-changed-p appears to be what the O.P. is seeking. The doc-string states:

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

See also line 10284: http://bazaar.launchpad.net/~python-mode-devs/python-mode/python-mode/view/head:/python-mode.el

于 2014-12-09T07:31:34.943 に答える