all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Alan Mackenzie <acm@muc.de>
Cc: 11841@debbugs.gnu.org, vadimsks@gmail.com
Subject: bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles
Date: Sun, 15 Jul 2012 18:56:39 -0400	[thread overview]
Message-ID: <jwv7gu4fxki.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20120715170212.GA2499@acm.acm> (Alan Mackenzie's message of "Sun, 15 Jul 2012 17:02:12 +0000")

>> 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,


        Stefan





  reply	other threads:[~2012-07-15 22:56 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-02  0:51 bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles Vadim K
2012-07-02 16:42 ` Eli Zaretskii
2012-07-02 18:22   ` Stefan Monnier
2012-07-07 21:10   ` Alan Mackenzie
2012-07-07 21:53     ` Stefan Monnier
2012-07-08  2:58       ` Eli Zaretskii
2012-07-08 14:50         ` Stefan Monnier
2012-07-08 15:34           ` Alan Mackenzie
2012-07-08 23:07             ` Stefan Monnier
2012-07-15 17:02               ` Alan Mackenzie
2012-07-15 22:56                 ` Stefan Monnier [this message]
2012-07-20 21:10   ` Alan Mackenzie
2012-07-22  9:54     ` Stefan Monnier
2012-07-25 20:58     ` Vadim K
2012-12-11 19:24   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv7gu4fxki.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11841@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=vadimsks@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.