From da435d1cf2b1a368bdd266eecbb8c632f656d614 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 3 Aug 2007 03:21:49 +0000 Subject: [PATCH] (customize-apropos): Make the error message indicate what kind of thing the user was trying to customize. --- lisp/cus-edit.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 78b402c9c0a..2cfd247a645 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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*")))) -- 2.39.5