1 pcomplete provides a facility for using programmatic completion in
2 Emacs. It is especially useful for utilities like shells and command
3 interpretors, but can in fact be used anywhere within Emacs.
5 The simple way to begin using pcomplete is with comint-derived modes.
6 To do this, add the following to that mode's mode-hook. shell-mode is
10 (add-hook 'shell-mode-hook 'pcomplete-shell-setup)
12 Now just type `M-x shell' and press TAB. Enter a command name, like
13 "cvs", and press TAB again. You should see a context-sensitive list
14 of completions for the first argument (which for cvs is the command
17 John Wiegley <johnw@gnu.org>
18 http://www.emacs.org/~johnw/emacs.html