aboutsummaryrefslogtreecommitdiff
path: root/sx-tab.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 23:06:00 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-27 23:10:34 -0200
commitc37022ffbc52b900d81eee05f3c2c3d5fe6fee01 (patch)
treece2542f664233a19c3391802137999675fd988ef /sx-tab.el
parent2012346d11a04f7cd9871fced0df2417b5503336 (diff)
Initial implementation of sx-completing-read
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)))))