From: Glenn Morris Date: Fri, 3 Aug 2007 03:21:49 +0000 (+0000) Subject: (customize-apropos): Make the error message indicate what kind of X-Git-Tag: emacs-pretest-23.0.90~11617 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da435d1cf2b1a368bdd266eecbb8c632f656d614;p=emacs.git (customize-apropos): Make the error message indicate what kind of thing the user was trying to customize. --- 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*"))))