aboutsummaryrefslogtreecommitdiff
path: root/sx-favorites.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx-favorites.el')
-rw-r--r--sx-favorites.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/sx-favorites.el b/sx-favorites.el
index e86e521..444df29 100644
--- a/sx-favorites.el
+++ b/sx-favorites.el
@@ -1,4 +1,4 @@
-;;; sx-favorites.el --- Starred questions -*- lexical-binding: t; -*-
+;;; sx-favorites.el --- starred questions -*- lexical-binding: t; -*-
;; Copyright (C) 2014 Sean Allred
@@ -19,6 +19,9 @@
;;; Commentary:
+;; This file provides logic for retrieving and managing a user's
+;; starred questions.
+
;;; Code:
(require 'sx-method)
@@ -27,7 +30,7 @@
(require 'sx-networks)
(require 'sx-filter)
-(defvar sx-favorite-list-filter
+(defconst sx-favorite-list-filter
(sx-filter-from-nil
(question.question_id)))
@@ -42,8 +45,10 @@ Added as hook to initialization."
(or (setq sx-favorites--user-favorite-list
(sx-cache-get 'question-favorites))
(sx-favorites-update)))
-;; Append to ensure `sx-network--initialize is run before it.
-(add-hook 'sx-init--internal-hook #'sx-favorites--initialize 'append)
+;; ;; Append to ensure `sx-network--initialize' is run before it.
+;; This is removed for now because it performs a lot of API calls and
+;; was never used.
+;; (add-hook 'sx-init--internal-hook #'sx-favorites--initialize 'append)
(defun sx-favorites--retrieve-favorites (site)
"Obtain list of starred QUESTION_IDs for SITE."