diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-22 11:37:35 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-12-22 11:37:35 -0200 |
commit | d51791fb6ae69e3b426f7d598920b4349858908f (patch) | |
tree | ccfed6af7baf30d276eb81ffd7642595d68e079b /sx-question-mode.el | |
parent | 5675fc89e2b06b1533cb588368c1ffa4e414d0f4 (diff) |
Refactor .site to .site_par
It turns out some api objects do have a site property, except its value
is not a string, it is another object. The actual string we've been
referring to as .site is the .site.api_site_parameter
To avoid conflicts, I've renamed all our uses of .site to .site_par, and
sx-assoc-let now makes sure the object has a .site_par value, instead of
a .site value (which it may or may not have now, and is the same object
that the api refers to as site).
Diffstat (limited to 'sx-question-mode.el')
-rw-r--r-- | sx-question-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-question-mode.el b/sx-question-mode.el index a60cf3a..7d61167 100644 --- a/sx-question-mode.el +++ b/sx-question-mode.el @@ -254,7 +254,7 @@ query the api." (if no-update sx-question-mode--data (sx-assoc-let sx-question-mode--data - (sx-question-get-question .site .question_id)))) + (sx-question-get-question .site_par .question_id)))) (goto-char point) (when (equal (selected-window) (get-buffer-window (current-buffer))) |