This patch intends to expose the text cursor position in blenders text editor to python.
That is useful for smart auto-complete addons, which want to draw their (bgl) Menu at / near the current cursor position.
For example, my own autocompleter addon:
Or the one from @Jacques Lucke (JacquesLucke):
http://blenderartists.org/forum/showthread.php?355858-Addon-Auto-Completion-in-Blenders-Text-Editor