From 71a4cc7590a0bb5521361992f03bb466b033604c Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Mon, 25 Jan 2016 09:49:08 +0000 Subject: [Fix #312] Disable undo in `sx-question-mode' --- sx-question-mode.el | 1 + 1 file changed, 1 insertion(+) (limited to 'sx-question-mode.el') 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) -- cgit v1.2.3