aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-05-31 11:13:08 +0000
committerJuanma Barranquero2005-05-31 11:13:08 +0000
commitd0213ee17642d54c4779d3078e3188a226e41c08 (patch)
tree24921194d12e18122f4e2c67f66eae3aeac104e0
parent881b07f982f000b5be01609238ee2daf08c93936 (diff)
downloademacs-d0213ee17642d54c4779d3078e3188a226e41c08.tar.gz
emacs-d0213ee17642d54c4779d3078e3188a226e41c08.zip
(list-faces-display): Signal error if passed a regexp that matches no face name.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/faces.el4
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 57abd9327bb..b99b13015e9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12005-05-31 Juanma Barranquero <lekktu@gmail.com> 12005-05-31 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * faces.el (list-faces-display): Signal error if passed a regexp
4 that matches no face name.
5
3 * simple.el (filter-buffer-substring): Fix typo in docstring. 6 * simple.el (filter-buffer-substring): Fix typo in docstring.
4 7
52005-05-31 Richard M. Stallman <rms@gnu.org> 82005-05-31 Richard M. Stallman <rms@gnu.org>
diff --git a/lisp/faces.el b/lisp/faces.el
index 27905af734c..c89001482ac 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1163,7 +1163,9 @@ arg, prompt for a regular expression."
1163 (mapcar (lambda (f) 1163 (mapcar (lambda (f)
1164 (when (string-match regexp (symbol-name f)) 1164 (when (string-match regexp (symbol-name f))
1165 f)) 1165 f))
1166 faces)))) 1166 faces)))
1167 (unless faces
1168 (error "No faces matching \"%s\"" regexp)))
1167 (with-output-to-temp-buffer "*Faces*" 1169 (with-output-to-temp-buffer "*Faces*"
1168 (save-excursion 1170 (save-excursion
1169 (set-buffer standard-output) 1171 (set-buffer standard-output)