home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / lisp / 2424 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!hake.ifi.uio.no!ifi.uio.no!si.no!fenrix.si.no!haltraet
  3. From: haltraet@monsun.si.no (Hallvard Tr{tteberg)
  4. Subject: changing the pathname type
  5. Sender: usenet@si.no (News Poster)
  6. Message-ID: <HALTRAET.92Sep14091247@monsun.si.no>
  7. Date: Mon, 14 Sep 1992 08:12:47 GMT
  8. Nntp-Posting-Host: monsun.si.no
  9. Organization: Center for Industrial Research, Dept. of Knowledge Based Systems
  10. Lines: 25
  11.  
  12. Hi Lispers,
  13.  
  14. I have a quite trivial problem, which I cannot find the information to
  15. solve.
  16.  
  17. I would like to change the filetype of a pathname (e.g. to nil
  18. (unspecified) or .lisp). There is no (setf pathname-type) in my lisp,
  19. nor is it mentioned in CLtL, although pathname-type is called an
  20. accessor. I cannot use (merge-pathnames <filename> ".lisp") since this
  21. will only "change" the pathname-type if it is nil (unspecified). I
  22. cannot merge the other way, i.e. (merge-pathnames ".lisp" <filename>)
  23. since I would like to use nil (unspecified) instead of ".lisp". I want
  24. to avoid doing string-search since it would likely be non-portable.
  25.  
  26. Regards, Hallvard
  27. --
  28. Hallvard Traetteberg
  29. Dept. of Knowledge Based Systems
  30. Center for Industrial Research
  31. Box 124 Blindern, 0314 Oslo 3
  32. NORWAY
  33.  
  34. Tlf: +47 2 45 29 83 or  +47 2 45 20 10
  35. Fax: +47 2 45 20 40
  36. Email: Hallvard.Tretteberg@si.no
  37.