Improve real-time linking performance
Improve real-time linking performance

This patch tweaks the regular expression to reduce the chance of
creating links that contain the cursor, and it adds code to avoid
reapplying links that already exist.

emk/buglinky