From 7ed29c4dc940a871562aaa802ac53ddee4c66a27 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Sat, 8 Nov 2014 14:12:42 -0500 Subject: Re-work filtering and caching * sx-auth.el - Use new symbolic cache access * sx-cache.el - Implement symbolic cache access * sx-filter.el - Use symbolic cache access - Compile and save filters on-demand (more work to be done to this end) * sx-question.el - Symbolic filters * sx-request.el - Protection against infinitely recursing when compiling a filter This will be re-worked into requests (a front-end function) and 'raw' requests (a back-end function). The front-end will add convenience to the back-end. * test/tests.el Remove outdated tests --- sx-question.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sx-question.el') diff --git a/sx-question.el b/sx-question.el index 0ce5413..8957e6f 100644 --- a/sx-question.el +++ b/sx-question.el @@ -30,12 +30,9 @@ (require 'sx-request) ;; I don't know why this is here, but it was causing an API request on require. -(defvar sx-question-browse-filter nil) -(sx-init-variable - sx-question-browse-filter - (sx-filter-compile nil '(user.profile_image shallow_user.profile_image))) - -;; (stack-filter-store 'question-browse sx-question-browse-filter) +(defvar sx-question-browse-filter + ;; Remember: INCLUDE EXCLUDE BASE + '(nil (user.profile_image shallow_user.profile_image))) (defun sx-question-get-questions (site &optional page) "Get the page PAGE of questions from SITE." -- cgit v1.2.3