aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 20:53:34 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-01-07 20:53:34 -0200
commita16341cdf93224a399d3b64a8d50c32ce4323f08 (patch)
tree95808311e10c3b7b7b587f08e51191be7d0bebea
parentae3e8ee9d9f792ff8c543c249f6d26fb22ec7965 (diff)
sx--add-answer-to-question-object returns the question
-rw-r--r--sx-interaction.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/sx-interaction.el b/sx-interaction.el
index 8b72ea5..97c68b6 100644
--- a/sx-interaction.el
+++ b/sx-interaction.el
@@ -445,7 +445,8 @@ context at point. "
(append (cdr cell) (list answer))))
;; No previous comments, add it manually.
(setcdr question (cons (car question) (cdr question)))
- (setcar question `(answers . [,answer])))))
+ (setcar question `(answers . [,answer])))
+ question))
(provide 'sx-interaction)
;;; sx-interaction.el ends here