aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:18:12 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-13 00:18:12 +0000
commit302b5a0cf2222973b901c7856da3920705ebe24e (patch)
tree4b59bf04641e5db24ea190246ebd3c02ff4d4eed
parent6dc51797599f2f41102d67cfb23a36f99b23a816 (diff)
HOTFIX: Mark question as read when displaying it.
This is a pretty big bug because it was leading SX to think the question wasn't read, even though it was open. This, in turn, prevented the user from being able to do anything (vote, comment) on the question, since we prevent interaction with unread questions.
-rw-r--r--sx-question-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el
index 19d7d16..5735f47 100644
--- a/sx-question-mode.el
+++ b/sx-question-mode.el
@@ -62,7 +62,9 @@ Returns the question buffer."
(sx-question-mode--erase-and-print-question data)))
(defun sx-question-mode--erase-and-print-question (data)
- "Erase contents of buffer and print question given by DATA."
+ "Erase contents of buffer and print question given by DATA.
+Also marks the question as read with `sx-question--mark-read'."
+ (sx-question--mark-read data)
(let ((inhibit-read-only t))
(erase-buffer)
(sx-question-mode)