aboutsummaryrefslogtreecommitdiff
path: root/sx-tab.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-tab.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-tab.el')
-rw-r--r--sx-tab.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/sx-tab.el b/sx-tab.el
index 6c5e21e..32a7784 100644
--- a/sx-tab.el
+++ b/sx-tab.el
@@ -34,10 +34,10 @@
(defun sx-tab-switch (tab)
"Switch to another question-list tab."
(interactive
- (list (funcall (if ido-mode #'ido-completing-read #'completing-read)
- "Switch to tab: " sx-tab--list
- (lambda (tab) (not (equal tab sx-question-list--current-tab)))
- t)))
+ (list (sx-completing-read
+ "Switch to tab: " sx-tab--list
+ (lambda (tab) (not (equal tab sx-question-list--current-tab)))
+ t)))
(funcall (intern (format "sx-tab-%s" (downcase tab)))))