diff options
author | Sean Allred <code@seanallred.com> | 2015-01-01 19:10:17 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-01 19:10:17 -0500 |
commit | e05f937910bb4ca0e7ea1c9f1273fbafac523921 (patch) | |
tree | 4181e1b521f9ce53c9b6d231f5c3fca90571bdf7 /sx-tab.el | |
parent | 01ac19db7ff5087e3c2b481a57d21d242ee9fb34 (diff) | |
parent | c37022ffbc52b900d81eee05f3c2c3d5fe6fee01 (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.el | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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))))) |