Mike Ferris' TextExtras (amongst a zillion other things) provides keyword based expanion (e.g. typing adr followed by escape could be expanded to your full street address) and a completion mechanism that searches the current text field for possible matches.
Since Panther comes with its own implementation of a completion mechanism (that searches both the document and a dictionary), I was looking for a combination of TE's keyword based expansion and Panther's completion. Since we're going to modify TE, you need to have Xcode installed.
Add the following lines to file NSTextView_TETextExtras.m after line 328:
else{
[self complete:sender];
return;
}
Build and install your new version of TE, and change the line in ~/Library/KeyBindings/DefaultKeyBinding.dict that says
"\033" = "complete:";
to
"\033" = "TE_complete:";
[robg adds: I haven't tested this one yet, but hope to soon - TextExtras is a great add-on!]
Mac OS X Hints
http://hints.macworld.com/article.php?story=2003110116500264