|
From: | Stefan Monnier |
Subject: | bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles |
Date: | Sun, 08 Jul 2012 19:07:41 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> I've tried setting ^M's syntax to WS. The code no longer loops. > However, ^M is syntactically a comment ender so that it can end a comment > when selective-display is active. ^M is only a comment ender when selective-display is active. So only set its syntax to comment-end when selective-display is active. Better yet: stop supporting selective-display. > Would it not be better for ^M to be treated as WS by syntax.c? The > current problem isn't really a CC Mode one; mixed line enders could > happen in a file of any major mode. Emacs really ought to treat all line > endings the same. It does: it maps them all to ^J. ^M in a buffer is not a line-ender (except for the oddball case of selective-display which is a feature that needs to die). Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |