]> git.eshelyaron.com Git - emacs.git/commitdiff
(customize-apropos): Make the error message indicate what kind of
authorGlenn Morris <rgm@gnu.org>
Fri, 3 Aug 2007 03:21:49 +0000 (03:21 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 3 Aug 2007 03:21:49 +0000 (03:21 +0000)
thing the user was trying to customize.

lisp/cus-edit.el

index 78b402c9c0ad5424573185e58bb23d2709cd3873..2cfd247a64514e449fa9fe06ac16c23548cee3fe 100644 (file)
@@ -1376,7 +1376,14 @@ that are not customizable options, as well as faces and groups
                                      (get symbol 'variable-documentation))))
                    (push (list symbol 'custom-variable) found)))))
     (if (not found)
-       (error "No customizable items matching %s" regexp)
+       (error "No %s matching %s"
+               (if (eq all t)
+                   "items"
+                 (format "customizable %s"
+                         (if (memq all '(options faces groups))
+                             (symbol-name all)
+                           "items")))
+               regexp)
       (custom-buffer-create
        (custom-sort-items found t custom-buffer-order-groups)
        "*Customize Apropos*"))))