home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / lucidem / bug / 495 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.9 KB  |  63 lines

  1. Newsgroups: alt.lucid-emacs.bug
  2. Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!CSD-Newshost!me
  3. From: me@Sunburn.Stanford.EDU (Martin Frost)
  4. Subject: fnexpand.el under 19.4
  5. Message-ID: <ME.93Jan23172123@Sunburn.Stanford.EDU>
  6. Sender: news@CSD-NewsHost.Stanford.EDU
  7. Reply-To: me@CS.Stanford.EDU
  8. Organization: Computer Science Dept., Stanford University
  9. Distribution: alt
  10. Date: 23 Jan 93 17:21:23
  11. Lines: 50
  12.  
  13. I've been using fnexpand.el from
  14.  
  15.     ;; Written by eirik@theory.tn.cornell.edu and trost@reed.edu
  16.     ;; Original idea by karl@cs.umb.edu
  17.  
  18. for some time for filename completion in emacs shell buffers.  It's great.
  19. It even works unaltered with Lucid Emacs.
  20.  
  21. But in 19.4, I've started seeing a new undesirable result in completion,
  22. and I'd like to know if anyone has a fix for this to restore the old
  23. effects.
  24.  
  25. The problem is that when I complete a relative filename with TAB in a 19.4
  26. shell window, Emacs converts the relative filename to an absolute filename,
  27. filling in all the leading directory names.  In 19.3 and 18.58, the
  28. relative filename is simply completed.
  29.  
  30. For example, if I say, in a 19.4 shell window:
  31.  
  32.   cd /etc
  33.   ls -l reso<TAB>
  34.  
  35. the current shell input line changes to say
  36.  
  37.   ls -l /etc/resolv.conf
  38.  
  39. instead of just
  40.  
  41.   ls -l resolv.conf
  42.  
  43. This is particularly undesirable when I'm trying to create a relative
  44. symbolic link to an existing file in the current directory.  I don't want
  45. an absolute link.  But in general, when the absolute pathname is long, this
  46. new result makes things much harder to read in the shell window.
  47.  
  48. By the way, if I say
  49.  
  50.   ls -l ./reso<TAB>
  51.  
  52. then the filename is kept relative (to .) after expansion:
  53.  
  54.   ls -l ./resolv.conf
  55.  
  56. But I just as soon not have to type ./ all the time.
  57.  
  58. This is with the precompiled 19.4 binaries on a Sun 4/490 running SunOS 4.1.2.
  59. --
  60. Martin Frost        Computer Science Department, Computer Facilities
  61. Systems Programmer    Stanford University, Stanford, CA  94305-2140
  62. me@CS.Stanford.EDU    (or mfrost@stanford.bitnet)
  63.