aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2014-11-08 16:58:58 -0500
committerSean Allred <code@seanallred.com>2014-11-08 16:58:58 -0500
commit5fcd0dbd2c180b85898f42a7cd24a5835d6e3eda (patch)
tree472a76f390ba35cf9940a60fa72edc15b3a4c017
parentb8da42344ebe3f380bb6f615c2ab13bb12c24876 (diff)
Use macro
-rw-r--r--sx-filter.el4
-rw-r--r--sx.el1
2 files changed, 3 insertions, 2 deletions
diff --git a/sx-filter.el b/sx-filter.el
index 4ed3dbe..aa815a2 100644
--- a/sx-filter.el
+++ b/sx-filter.el
@@ -53,8 +53,8 @@ or string."
(let ((response (sx-request-make
"filter/create"
keyword-arguments)))
- (url-hexify-string
- (cdr (assoc 'filter (elt response 0)))))))
+ (sx-assoc-let (elt response 0)
+ (url-hexify-string filter)))))
;;; Storage and Retrieval
diff --git a/sx.el b/sx.el
index 00fda40..6165714 100644
--- a/sx.el
+++ b/sx.el
@@ -91,6 +91,7 @@ a string, just return it."
error_name
error_message
favorite_count
+ filter
items
is_accepted
is_answered