diff options
| author | Miles Bader | 2000-09-20 07:42:51 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-09-20 07:42:51 +0000 |
| commit | 37a99821999c7198aeff9bb68b159c3e5fcf1b60 (patch) | |
| tree | 918c2d6fd6591b25a0e718af96237d9dcab7f044 | |
| parent | ddba99ad141dec39c9149424756865e56e1c39b5 (diff) | |
| download | emacs-37a99821999c7198aeff9bb68b159c3e5fcf1b60.tar.gz emacs-37a99821999c7198aeff9bb68b159c3e5fcf1b60.zip | |
(face-valid-attribute-values): Make sure directories we search for
stipples both exist and are readable before trying to search them.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/faces.el | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4508a7e22e0..3eeff7298cb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2000-09-20 Miles Bader <miles@lsi.nec.co.jp> | 1 | 2000-09-20 Miles Bader <miles@lsi.nec.co.jp> |
| 2 | 2 | ||
| 3 | * faces.el (face-valid-attribute-values): Make sure directories we | ||
| 4 | search for stipples both exist and are readable before trying to | ||
| 5 | search them. | ||
| 6 | |||
| 3 | * diff-mode.el (diff-apply-hunk): Jump to the correct line offset | 7 | * diff-mode.el (diff-apply-hunk): Jump to the correct line offset |
| 4 | in the dry-run case. | 8 | in the dry-run case. |
| 5 | 9 | ||
diff --git a/lisp/faces.el b/lisp/faces.el index bcb8c6e3871..f290a815669 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -779,8 +779,12 @@ an integer value." | |||
| 779 | (:stipple | 779 | (:stipple |
| 780 | (and (memq window-system '(x w32)) | 780 | (and (memq window-system '(x w32)) |
| 781 | (mapcar #'list | 781 | (mapcar #'list |
| 782 | (apply #'nconc (mapcar #'directory-files | 782 | (apply #'nconc |
| 783 | x-bitmap-file-path))))) | 783 | (mapcar (lambda (dir) |
| 784 | (and (file-readable-p dir) | ||
| 785 | (file-directory-p dir) | ||
| 786 | (directory-files dir))) | ||
| 787 | x-bitmap-file-path))))) | ||
| 784 | (:inherit | 788 | (:inherit |
| 785 | (cons '("none" . nil) | 789 | (cons '("none" . nil) |
| 786 | (mapcar #'(lambda (c) (cons (symbol-name c) c)) | 790 | (mapcar #'(lambda (c) (cons (symbol-name c) c)) |