emacsorphanage / helm-swoop

Efficiently hopping squeezed lines powered by Emacs helm interface
GNU General Public License v3.0
689 stars 55 forks source link

Font locking in swoop results buffer #85

Closed FRProj closed 5 years ago

FRProj commented 9 years ago

The lines in the swoop results buffer are sometimes not font locked the same as the buffer being searched over (in my case elisp and python source files), but sometimes they do have the same font locking. I've noticed that the first lines of the swoop results often have the correct font locking and the later lines have no font locking, simply appearing as white text.

Is this expected behaviour, or are all (or none?) of the lines supposed to have the same text properties as the buffer being searched over?

zalky commented 8 years ago

Seeing this same behaviour. Font-locking stops halfway down the results page.

quicknir commented 8 years ago

Seeing the same issue.

peterwvj commented 6 years ago

I'm experiencing this too!

cireu commented 5 years ago

Confirmed, I think using swiper-like font lock ensure can fix this

cireu commented 5 years ago

@peterwvj @quicknir @zalky Can you help test PR https://github.com/emacsorphanage/helm-swoop/pull/165 ?

In this PR, helm-swoop will force ensure font-lock before getting contents, however, in large file(buffer size > 100000) this mechanism will be closed for performance.

If you have any idea on this threshold, feel free to tell me.