Thanks for the report and the patch. There is one problem, though: if the last line of the buffer is hidden, you get an infinite loop.
The upstream Jedmodes repository now has the fix with - while (is_line_hidden()) + while (is_line_hidden() and not(eobp())) GM -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]