diff options
author | Sean Allred <code@seanallred.com> | 2014-12-02 00:15:39 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-02 00:15:39 -0500 |
commit | cc7fd3336e0ee40280d343ba80cb1e89498f725e (patch) | |
tree | de248c022bb13b6453b035ee53f07d2f2bed7bbf /sx-question.el | |
parent | 219c571241c6e12110d13b22153fc4dbf163a6a0 (diff) | |
parent | 4f4b4d9f9a1000ce5f91e6d835cb71268f9525ec (diff) |
Merge pull request #127 from vermiculus/moar-taaabs
Implement more tabs
Diffstat (limited to 'sx-question.el')
-rw-r--r-- | sx-question.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sx-question.el b/sx-question.el index f80a9bd..00b5f7f 100644 --- a/sx-question.el +++ b/sx-question.el @@ -26,15 +26,17 @@ (require 'sx-filter) (require 'sx-method) -(defun sx-question-get-questions (site &optional page) +(defun sx-question-get-questions (site &optional page keywords) "Get SITE questions. Return page PAGE (the first if nil). Return a list of question. Each question is an alist of properties returned by the API with an added (site SITE) property. +KEYWORDS are added to the method call along with PAGE. + `sx-method-call' is used with `sx-browse-filter'." (sx-method-call 'questions - :keywords `((page . ,page)) + :keywords `((page . ,page) ,@keywords) :site site :auth t :filter sx-browse-filter)) |