]> git.eshelyaron.com Git - emacs.git/commitdiff
(list-faces-display): Signal error if passed a regexp that matches no face name.
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 31 May 2005 11:13:08 +0000 (11:13 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 31 May 2005 11:13:08 +0000 (11:13 +0000)
lisp/ChangeLog
lisp/faces.el

index 57abd9327bb736d6e8c68682b4477c245fd88d2b..b99b13015e94babda9762c37eae8aeefa9a4e88c 100644 (file)
@@ -1,5 +1,8 @@
 2005-05-31  Juanma Barranquero  <lekktu@gmail.com>
 
+       * faces.el (list-faces-display): Signal error if passed a regexp
+       that matches no face name.
+
        * simple.el (filter-buffer-substring): Fix typo in docstring.
 
 2005-05-31  Richard M. Stallman  <rms@gnu.org>
index 27905af734cc86c546b4db6d089f33a6ce65f84f..c89001482ace846a704867d198b2439ccf72b188 100644 (file)
@@ -1163,7 +1163,9 @@ arg, prompt for a regular expression."
                   (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)