[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles

From: Stefan Monnier
Subject: bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles
Date: Sun, 15 Jul 2012 18:56:39 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>> Better yet: stop supporting selective-display.
> That's more a decision for the Emacs boss.

Not at all.  Any package is allowed to decide it won't support
interaction with some other package/feature.

> selective-display is still supported in Emacs 24, according to the
> elisp manual.

Yes, tho barely.  Some of the reason is that marking the variable
obsolete would also make obsolete the case where selective-display is
a number, even tho there is no replacement for that one.
The only case that I'd like to make obsolete is the case where
selective-display is set to t.

>> > 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.
> It does not, except in normal cases.  When most, but not all, line
> endings are CRLFs, they are not converted to LFs.  (To do so would lose
> information.)

This is philosophical: in the buffer, line-ends are ^J and never
anything else (except selective-display).  Whether that corresponds to
what is in the file or not is a completely different issue.

> How about treating ^M^J as WS in syntax.c?

Not gonna happen,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]