changeset 82244:9928f84fd32b

(customize-apropos): Make the error message indicate what kind of thing the user was trying to customize.
author Glenn Morris <rgm@gnu.org>
date Fri, 03 Aug 2007 03:21:49 +0000
parents 54e0d414b1de
children 36893fdf92ab
files lisp/cus-edit.el
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-edit.el	Fri Aug 03 03:20:00 2007 +0000
+++ b/lisp/cus-edit.el	Fri Aug 03 03:21:49 2007 +0000
@@ -1376,7 +1376,14 @@
 				      (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*"))))