flymake / emacs-flymake

Continuous syntax checking for Emacs. Fork to add max parallel invocations and other bug fixes.
http://www.illusori.co.uk/projects/emacs-flymake/
GNU General Public License v3.0
184 stars 36 forks source link

flymake & selective-display #17

Open ctanis opened 11 years ago

ctanis commented 11 years ago

When using flymake in conjunction with modes that use selective-display (such as folding-mode, the highlighting and error navigation ( flymake-goto-*-error) do not find the correct lines.

this is because forward-line jumps right over the hidden lines.

I redefined flymake-highlight-line and flymake-goto-line to use goto-line rather than forward-line, and I'm getting the behavior that I want -- that is flymake is highlighting the actual errors.

I'm not sure if this is an issue worth pursuing -- even the goto-line documentation says you "probably want" to use forward-line, as you are doing. I just thought I'd bring it up since it does not work correctly in this instance!