aboutsummaryrefslogtreecommitdiff
path: root/sx-search.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-02 09:00:27 -0500
committerSean Allred <code@seanallred.com>2015-01-02 09:00:27 -0500
commitb87903a14b5b6da5b847ed64de34df00971cbb4a (patch)
treed75e0564b947655e996b3fe8387704557c3c5c4a /sx-search.el
parent80541f53ab81695f5878055ac4404ee212766b11 (diff)
Introduce convencience function for site prompting
Arose from comment discussion at [1]. This function allows for simplified syntax when the use case wants to retrieve a site token in an interactive context. See docstring for details. [1]: https://github.com/vermiculus/sx.el/pull/183/files#r22403919
Diffstat (limited to 'sx-search.el')
-rw-r--r--sx-search.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/sx-search.el b/sx-search.el
index 928db5d..2633da9 100644
--- a/sx-search.el
+++ b/sx-search.el
@@ -74,7 +74,7 @@ of which is allowed to match.
Interactively, the user is asked for SITE and QUERY. With a
prefix argument, the user is asked for everything."
(interactive
- (let ((site (sx--interactive-site-prompt))
+ (let ((site (sx--maybe-site-prompt current-prefix-arg))
(query (read-string
(format "Query (%s): "
(if current-prefix-arg "optional" "mandatory"))