Skip to content
Snippets Groups Projects
Commit f4d1e1ff authored by wlott's avatar wlott
Browse files

Added SEARCH-LIST-DEFINED-P, a predicate that tells if the search list is

currently defined.
parent 9b6ef51f
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.8 1992/02/24 00:52:13 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.9 1992/03/10 15:06:59 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
load-logical-pathname-translations *default-pathname-defaults*)) load-logical-pathname-translations *default-pathname-defaults*))
(in-package "EXTENSIONS") (in-package "EXTENSIONS")
(export '(search-list clear-search-list enumerate-search-list)) (export '(search-list search-list-defined-p clear-search-list
enumerate-search-list))
(in-package "LISP") (in-package "LISP")
...@@ -940,6 +941,15 @@ ...@@ -940,6 +941,15 @@
(search-list-expansions search-list)) (search-list-expansions search-list))
(error "Search list ~S has not been defined yet." pathname))))) (error "Search list ~S has not been defined yet." pathname)))))
;;; SEARCH-LIST-DEFINED-P -- public.
;;;
(defun search-list-defined-p (pathname)
"Returns T if the search-list starting PATHNAME is currently defined, and
NIL otherwise. An error is signaled if PATHNAME does not start with a
search-list."
(with-pathname (pathname pathname)
(search-list-defined (extract-search-list pathname t))))
;;; %SET-SEARCH-LIST -- public setf method ;;; %SET-SEARCH-LIST -- public setf method
;;; ;;;
;;; Set the expansion for the search-list in PATHNAME. If this would result ;;; Set the expansion for the search-list in PATHNAME. If this would result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment