diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-25 09:49:08 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-01-25 09:49:08 +0000 |
commit | 71a4cc7590a0bb5521361992f03bb466b033604c (patch) | |
tree | c91439dbed5f7f3f3b37a6800f857836678e6c3b /sx-question-mode.el | |
parent | e850df66ef6d98d6a8733a6e096a8c83c9ad0e3c (diff) |
[Fix #312] Disable undo in `sx-question-mode'
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index 9276381..4263f6e 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -243,6 +243,7 @@ on the current buffer use \\{sx-question-mode}" (setq header-line-format sx-question-mode--header-line) (setq mode-line-format sx-question-mode--mode-line) + (buffer-disable-undo (current-buffer)) (set (make-local-variable 'nobreak-char-display) nil) ;; Determine how to close this window. (unless (window-parameter nil 'quit-restore) |