aboutsummaryrefslogtreecommitdiff
path: root/stack-question.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-11-03 13:34:48 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-11-03 13:34:48 +0000
commite298e214bfca97456e16b5f8bf6766e9130a4888 (patch)
tree693868aeae2c5716b07dbaf9864e1a04bd0b25b9 /stack-question.el
parent6bbbfc51a351d74a21f82a19972d797310c529b8 (diff)
Huge improvements to the question list
Diffstat (limited to 'stack-question.el')
-rw-r--r--stack-question.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/stack-question.el b/stack-question.el
index 4c67e09..2b6cd1f 100644
--- a/stack-question.el
+++ b/stack-question.el
@@ -45,6 +45,18 @@
stack-question-browse-filter))
+;;; Question Properties
+(defun stack-question--read-p (question)
+ "Non-nil if QUESTION has been read since last updated."
+ ;; @TODO:
+ (cl-evenp (random)))
+
+(defun stack-question--accepted-answer (question)
+ "Return accepted answer in QUESTION, or nil if none."
+ ;; @TODO:
+ (cl-evenp (random)))
+
+
;;; Displaying a question
(defvar stack-question--window nil
"Window where the content of questions is displayed.")