home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / bug-lucid-emacs / text0125.txt < prev    next >
Encoding:
Text File  |  1993-07-04  |  1.3 KB  |  32 lines

  1. > If I type space at a point where there is one and only one possible
  2. > file satisfying the first part of the name, why doesn't lucid-emacs
  3. > complete the entire name
  4.  
  5. Space is defined to complete one word at a time, as a feature.
  6. TAB completes all the way.
  7.  
  8. > Also, why doesn't typing a
  9. > space after that cause the command execution to start, as opposed to
  10. > requiring that a CR be typed
  11.  
  12. That surprised me when I first used GNU Emacs, too, but now I think
  13. it's definitely the right way to go.  The only completion environment
  14. where I'd feel at all comfortable having SPC finish the entry is for
  15. `M-x' commands, but if you're typing that many `M-x' commands then
  16. you need to bind some more keys.
  17.  
  18. In circumstances where a valid completion is required, the RET key
  19. behaves a lot like what you want.  If the entry is not yet valid,
  20. it completes to a valid entry and says "[Confirm]".  Then a second
  21. RET finishes the entry.  You can also set it so that it always just
  22. completes and finishes in one go, which is more predictable and so
  23. easier to type by reflex.
  24.  
  25. Commands like `C-x C-f' can't do this because it's always legal to
  26. enter a file name that doesn't exist yet.  My new completion package,
  27. just posted to help-lucid-emacs, allows you to type M-RET to get this
  28. complete-and-exit behavior in all commands.
  29.  
  30.                                 -- Dave
  31.  
  32.