aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-16 22:28:19 -0500
committerSean Allred <code@seanallred.com>2014-11-16 22:28:19 -0500
commit35ed7285e9271da388ed23416a27d40fd90807e3 (patch)
tree8e4b84e1d88a98c10f0dda2d62105963edd647c1
parent1a843499ae1ebc4ec56cfb27f79779293696cb2c (diff)
Set question data when printing the question
-rw-r--r--sx-question-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el
index 32cd112..fdb6487 100644
--- a/sx-question-mode.el
+++ b/sx-question-mode.el
@@ -192,6 +192,7 @@ Second \"%s\" is replaced with the comment."
(defun sx-question-mode--print-question (question)
"Print a buffer describing QUESTION.
QUESTION must be a data structure returned by `json-read'."
+ (setq sx-question-mode--data question)
;; Clear the overlays
(mapc #'delete-overlay sx-question-mode--overlays)
(setq sx-question-mode--overlays nil)