diff lisp/faces.el @ 62922:1928ddb1df53

(list-faces-display): Signal error if passed a regexp that matches no face name.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 31 May 2005 11:10:43 +0000
parents de74a397ff54
children 2a5dbdf6d22a
line wrap: on
line diff
--- a/lisp/faces.el	Tue May 31 09:45:17 2005 +0000
+++ b/lisp/faces.el	Tue May 31 11:10:43 2005 +0000
@@ -1163,7 +1163,9 @@
                   (mapcar (lambda (f)
                             (when (string-match regexp (symbol-name f))
                               f))
-                          faces))))
+                          faces)))
+      (unless faces
+        (error "No faces matching \"%s\"" regexp)))
     (with-output-to-temp-buffer "*Faces*"
       (save-excursion
 	(set-buffer standard-output)