* lisp/apropos.el (apropos-read-pattern): Fix error message for empty string.
[bpt/emacs.git] / lisp / apropos.el
index f24871d..93e2e42 100644 (file)
@@ -370,7 +370,8 @@ kind of objects to search."
         (read-string (concat "Search for " subject " (word list or regexp): "))))
     (if (string-equal (regexp-quote pattern) pattern)
        ;; Split into words
-       (split-string pattern "[ \t]+" t)
+       (or (split-string pattern "[ \t]+" t)
+           (user-error "No word list given"))
       pattern)))
 
 (defun apropos-parse-pattern (pattern)