filbert filibuster frank grunge.texIf you type g followed by TAB, then runge.tex is inserted. If you hit fi then TAB, an l is inserted. If you hit f then TAB, there is no unique continuation of the file name, so Emacs opens up a new window displaying the list of possible completions.
That's the old system. This package provides a variant: if you type g, then runge.tex is automatically inserted as highlighted text, to indicate that it's only provisional. The point remains immediately after the g. If you hit TAB, the point jumps to the end, and the added text is no longer highlighted. (So if you weren't looking at the screen, you wouldn't know that anything different had happened.) If after hitting g, you typed a (because you wanted to find a new file gaptooth.el) the highlighted text would disappear. The effects of various keys:
M-x highlight-completion-modeor customizing variables:
M-x customize-group highlight-completionThen turn on "Highlight completion mode". You may want to modify some of the entries in "Highlight completion list".
hc-completing-insert-file-name to complete file names hc-completing-insert-lisp-function lisp functions hc-completing-insert-lisp-variable lisp variables hc-completing-insert-kill contents of kill ring hc-completing-insert-buffer contents buffer contents hc-ispell-complete-word words from a dictionary, using ispellThese functions can be used anywhere, not just in the minibuffer.
Back to John Palmieri's Emacs lisp page.
Back to John Palmieri's home page.
John H. Palmieri, Department of Mathematics, University of Washington, firstname.lastname@example.org
Last modified: Thu Jun 21 20:29:36 PDT 2001