From ad3c2c9c05705512415afb469c8545b875c7cfe8 Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Sat, 7 Feb 2015 23:31:54 -0200 Subject: Hot Fix #249. Searching without query --- sx-search.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sx-search.el') diff --git a/sx-search.el b/sx-search.el index aefd12e..c1e1e23 100644 --- a/sx-search.el +++ b/sx-search.el @@ -84,7 +84,7 @@ prefix argument, the user is asked for everything." (when current-prefix-arg (setq tags (sx-tag-multiple-read site (concat "Tags" (when query " (optional)")))) - (when (and (not query) (string= "" tags)) + (unless (or query tags) (sx-user-error "Must supply either QUERY or TAGS")) (setq excluded-tags (sx-tag-multiple-read site "Excluded tags (optional)"))) -- cgit v1.2.3