summaryrefslogtreecommitdiff
path: root/cider-apropos.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2016-03-19 21:26:36 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2016-03-19 21:26:36 +0200
commit66eb1bb6d7304683a8fd82776aba5a972835e0a7 (patch)
tree9e73bd26a4ab0ec5d92bf9e9a408d65e033aa891 /cider-apropos.el
parent7f0b7a8f5e929d938ae49885bd423e05b3ced566 (diff)
Make it possible to pass to the apropos commands a list of
space-separated words This is pretty much how Emacs's apropos works. The list of words is converted to a regexp behind the scenes.
Diffstat (limited to 'cider-apropos.el')
-rw-r--r--cider-apropos.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/cider-apropos.el b/cider-apropos.el
index 3ba69e08..faf4a346 100644
--- a/cider-apropos.el
+++ b/cider-apropos.el
@@ -101,8 +101,11 @@
;;;###autoload
(defun cider-apropos (query &optional ns docs-p privates-p case-sensitive-p)
"Show all symbols whose names match QUERY, a regular expression.
-The search may be limited to the namespace NS, and may optionally search doc
-strings, include private vars, and be case sensitive."
+QUERY can also be a list of space-separated words (e.g. take while) which
+will be converted to a regular expression (like take.+while) automatically
+behind the scenes. The search may be limited to the namespace NS, and may
+optionally search doc strings, include private vars, and be case
+sensitive."
(interactive
(cons (read-string "Search for Clojure symbol (a regular expression): ")
(when current-prefix-arg