wolray / symbol-overlay

Highlight symbols with keymap-enabled overlays
346 stars 42 forks source link

Replaced lisp implementation of window start and end with C primitive #44

Closed walseb closed 5 years ago

walseb commented 5 years ago

Currently symbol-overlay-maybe-put-temp uses save-excursion to move the cursor around to get the window size. Emacs comes with a C primitive to do this which is a lot faster in the short tests I did quick-bench

I'm not sure when these were added so maybe the required emacs version will be wrong after this change

purcell commented 5 years ago

These functions are in Emacs 24.3, so we're good to go here - thanks!