aboutsummaryrefslogtreecommitdiff
path: root/sx-question-list.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-01 19:10:17 -0500
committerSean Allred <code@seanallred.com>2015-01-01 19:10:17 -0500
commite05f937910bb4ca0e7ea1c9f1273fbafac523921 (patch)
tree4181e1b521f9ce53c9b6d231f5c3fca90571bdf7 /sx-question-list.el
parent01ac19db7ff5087e3c2b481a57d21d242ee9fb34 (diff)
parentc37022ffbc52b900d81eee05f3c2c3d5fe6fee01 (diff)
Merge pull request #182 from vermiculus/tiny-improvements
Abstract a function for `completing-read` and request new items in filters.
Diffstat (limited to 'sx-question-list.el')
-rw-r--r--sx-question-list.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/sx-question-list.el b/sx-question-list.el
index 4bd6478..d84d1ea 100644
--- a/sx-question-list.el
+++ b/sx-question-list.el
@@ -559,12 +559,11 @@ This does not update `sx-question-mode--window'."
(defun sx-question-list-switch-site (site)
"Switch the current site to SITE and display its questions.
-Use `ido-completing-read' if variable `ido-mode' is active.
Retrieve completions from `sx-site-get-api-tokens'.
Sets `sx-question-list--site' and then call
`sx-question-list-refresh' with `redisplay'."
(interactive
- (list (funcall (if ido-mode #'ido-completing-read #'completing-read)
+ (list (sx-completing-read
"Switch to site: " (sx-site-get-api-tokens)
(lambda (site) (not (equal site sx-question-list--site)))
t)))