home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / help / 5555 < prev    next >
Encoding:
Text File  |  1993-01-29  |  2.3 KB  |  59 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!cs.utexas.edu!torn!watserv2.uwaterloo.ca!watserv1!mks.com!viktor
  3. From: viktor@mks.com (Viktor Haag)
  4. Subject: Re: Allowing SPACE in filename (find-file, dired, etc)
  5. Message-ID: <1993Jan28.164413.504@mks.com>
  6. Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
  7. References: <SHENTON.93Jan26134727@troll.gsfc.nasa.gov>
  8. Date: Thu, 28 Jan 1993 16:44:13 GMT
  9. Lines: 48
  10.  
  11. In article <SHENTON.93Jan26134727@troll.gsfc.nasa.gov> shenton@troll.gsfc.nasa.gov (Chris Shenton) writes:
  12. >I'm editing files which frequently have space in their filename, and
  13. >would like the find-file functions in -- for example -- dired to
  14. >recognize the fullname, not just up to the first space.
  15. >
  16. >Anyone have ideas on how to do this?
  17. >
  18. >Thanks.
  19. >--
  20. >-- Chris Shenton    shenton@nsisrv.gsfc.nasa.gov    NASA/GSFC/HSTX 301-286-7905
  21.  
  22.  
  23. Well, I'm not saying it can't be done, but as far as I can see
  24.  
  25.         dired-find-file (dired.el) uses find-file (files.el)
  26.  
  27. find-file takes a filename as an arg and calls find-file-noselect,
  28. which finds the file, reads it into a buffer and returns the buffer.
  29.  
  30. find-file-noselect sets the filename to (expand-file-name filename),
  31. and I can't find any source for expand-file-name.  Describe-function
  32. gives the following info on expand-file-name:
  33.  
  34. expand-file-name:
  35. Convert FILENAME to absolute, and canonicalize it.
  36. Second arg DEFAULT is directory to start with if FILENAME is relative
  37.  (does not start with slash); if DEFAULT is nil or missing,
  38. the current buffer's value of default-directory is used.
  39. Filenames containing . or .. as components are simplified;
  40. initial ~ is expanded.  See also the function
  41. substitute-in-file-name.
  42.  
  43. From this explanation, it seems that expand-file-name takes the
  44. filename which might include relative references and expands it to a
  45. full path name.  This may involve disregarding spaces internal to the
  46. filename arg passed to expand-file-name.  Of course, I'm no expert --
  47. anyone out there with an expert's explanation of this problem?
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. -- 
  55. Viktor Haag                                     viktor@mks.com
  56. Mortice Kern Systems                            (519) 884-8469
  57. 35 King North, Waterloo, Ontario                ext. 241
  58. "we are not thugs. we are vitamin supplements to justice ..." | a selector
  59.