From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11841: 24.1; emacs hangs when opening cpp file with mixed eol styles Date: Sun, 15 Jul 2012 18:56:39 -0400 Message-ID: References: <83lij25d3w.fsf@gnu.org> <20120707211010.GA13024@acm.acm> <83vchzklgc.fsf@gnu.org> <20120708153413.GA3416@acm.acm> <20120715170212.GA2499@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342393040 31884 80.91.229.3 (15 Jul 2012 22:57:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2012 22:57:20 +0000 (UTC) Cc: 11841@debbugs.gnu.org, vadimsks@gmail.com To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 00:57:19 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqXkb-0004gO-Pm for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 00:57:17 +0200 Original-Received: from localhost ([::1]:59604 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqXkb-0005x0-0T for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jul 2012 18:57:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqXkY-0005wk-6x for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 18:57:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqXkX-0001Fx-DG for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 18:57:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqXkV-0001Fj-VD; Sun, 15 Jul 2012 18:57:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SqXqA-0000Od-Fu; Sun, 15 Jul 2012 19:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 15 Jul 2012 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11841 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 11841-submit@debbugs.gnu.org id=B11841.13423933591490 (code B ref 11841); Sun, 15 Jul 2012 23:03:02 +0000 Original-Received: (at 11841) by debbugs.gnu.org; 15 Jul 2012 23:02:39 +0000 Original-Received: from localhost ([127.0.0.1]:43245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqXpl-0000Nx-2o for submit@debbugs.gnu.org; Sun, 15 Jul 2012 19:02:38 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:33705) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqXpi-0000Np-Sk for 11841@debbugs.gnu.org; Sun, 15 Jul 2012 19:02:35 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q6FMuepp032190; Sun, 15 Jul 2012 18:56:41 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 502C9AE323; Sun, 15 Jul 2012 18:56:39 -0400 (EDT) In-Reply-To: <20120715170212.GA2499@acm.acm> (Alan Mackenzie's message of "Sun, 15 Jul 2012 17:02:12 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4280=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4280> : streams <785166> : uri <1166227> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61973 Archived-At: >> 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