home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / lucidem / bug / 412 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!enterpoop.mit.edu!bloom-picayune.mit.edu!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!mly
  2. From: mly@ai.mit.edu (Richard Mlynarik)
  3. Newsgroups: alt.lucid-emacs.bug
  4. Subject: Environment variable completion
  5. Date: 21 Dec 92 23:45:22
  6. Organization: ITS Preservation Society
  7. Lines: 40
  8. Distribution: world
  9. Message-ID: <MLY.92Dec21234522@august.ai.mit.edu>
  10. References: <cbwc02D52fvw01@JUTS.ccc.amdahl.com>
  11. NNTP-Posting-Host: august.ai.mit.edu
  12. In-Reply-To: <cbwc02D52fvw01@JUTS.ccc.amdahl.com>
  13.  
  14.    From: tlp00@ras.amdahl.com (Tibor Polgar)
  15.    Newsgroups: alt.lucid-emacs.help
  16.    Subject: Environment variable completion
  17.    Date: 22 Dec 92 00:06:56 GMT
  18.  
  19.    Anyone out there written an environment variable expansion to be
  20.    used as part of file name completion.  Basicly its something that
  21.    calls "substitute-in-file-name" before it calls
  22.    "minibuffer-complete-word".  Yeh, i know i could write something
  23.    but if someone already has.... For instance:
  24.  
  25.    Find file:  $SRC<space>
  26.  
  27.       expands to:
  28.  
  29.    Find file:  /usr/project/src/
  30.  
  31.        and the rest is same as normal...
  32.  
  33.    [...]
  34.  
  35.    WOW, i get to follow up my own posting... in looking at it further,
  36.    seems that completion DOES "try" to substitute in an environment
  37.    variable but there is a bug somewhere, all i ever get is a "/".  If
  38.    i enter an invalid environment variable then I get "bad format
  39.    environment variable substitution" so something is trying.
  40.  
  41.  
  42. I've rewritten all the minibuffer code in Lisp and in the process
  43. fixed the longstanding bug in minibuffer-complete-word versus pathname
  44. environment variables (amongst a slew of other little problems.)  I
  45. believe this code will be in the next Lucid Emacs release.
  46.  
  47. At first I misunderstood the question you were asking and thought you
  48. were repeating the longstanding feature-request for completion of
  49. environment-variable names (eg if environment variables "el"
  50. and "es" are defined, then completing "$e" will offer two
  51. possibilities instead of complaining that "$e" isn't defined.)
  52. It wasn't very hard to implement this and so I did it.  It may or may
  53. not be in Lucid 19.4 depending on Jamie's judgement/whims.
  54.