home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / emacs / 3792 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!aun.uninett.no!ugle.unit.no!hrue
  3. From: hrue@sima.sintef.no (hrue)
  4. Subject: Re: uniqe file names
  5. In-Reply-To: fcaic@wbst845e.xerox.com's message of 9 Dec 92 20:38:15 GMT
  6. Message-ID: <HRUE.92Dec15182431@nazgul.sima.sintef.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: SINTEF Industrial Mathematics, Trondheim, Norway
  9. References: <FCAIC.92Dec9153815@woody.wbst845e.xerox.com>
  10. Distribution: comp.emacs gnu.emacs.help
  11. Date: 15 Dec 92 18:24:31
  12. Lines: 24
  13.  
  14. In article <FCAIC.92Dec9153815@woody.wbst845e.xerox.com> fcaic@wbst845e.xerox.com (Frank Caico) writes:
  15.  
  16.  
  17. >   I am looking for a function with which I can generate unique file names
  18. >   inside of emacs. Does anyone know of any?
  19.  
  20.     (make-temp-name "/tmp/")
  21. returns (example)
  22.     "/tmp/a06573"
  23.  
  24.     (make-temp-name "~/tmp/")
  25. returns
  26.     "~/tmp/a06573"
  27.  
  28. -hr
  29. --
  30.        |^^^^^^|        ___________________________________
  31.        |      |       /                                    \
  32.        |      |      | Haavard Rue                          |
  33.        | (o)(o)      | The Norwegian Instiute of Technology |
  34.       @      _)      | Department of Mathemathical Sciences |
  35.        | ,___|     ,,| N-7034 Trondheim NTH, Norway         |
  36.        |   /   ..''  | fax:+47-7-593524, hrue@imf.unit.no   |
  37.       /____\          \____________________________________/
  38.