From 302b5a0cf2222973b901c7856da3920705ebe24e Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 13 Dec 2014 00:18:12 +0000 Subject: 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. --- sx-question-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3