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, 08 Jul 2012 19:07:41 -0400 Message-ID: References: <83lij25d3w.fsf@gnu.org> <20120707211010.GA13024@acm.acm> <83vchzklgc.fsf@gnu.org> <20120708153413.GA3416@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341788941 20726 80.91.229.3 (8 Jul 2012 23:09:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 23:09:01 +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 09 01:09:00 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 1So0b4-0004KD-Co for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Jul 2012 01:08:58 +0200 Original-Received: from localhost ([::1]:59255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So0b3-0008Pd-4v for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 19:08:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So0b0-0008PX-EK for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 19:08:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1So0ay-0003i3-TD for bug-gnu-emacs@gnu.org; Sun, 08 Jul 2012 19:08:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1So0aw-0003hp-Bj; Sun, 08 Jul 2012 19:08:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1So0fx-0005uQ-NE; Sun, 08 Jul 2012 19:14:01 -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, 08 Jul 2012 23:14:01 +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.134178918322646 (code B ref 11841); Sun, 08 Jul 2012 23:14:01 +0000 Original-Received: (at 11841) by debbugs.gnu.org; 8 Jul 2012 23:13:03 +0000 Original-Received: from localhost ([127.0.0.1]:57112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So0f0-0005tC-Cb for submit@debbugs.gnu.org; Sun, 08 Jul 2012 19:13:03 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35431) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1So0ey-0005sn-6W for 11841@debbugs.gnu.org; Sun, 08 Jul 2012 19:13:00 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q68N7hqU014480; Sun, 8 Jul 2012 19:07:44 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id ACFD1AEC0D; Sun, 8 Jul 2012 19:07:42 -0400 (EDT) In-Reply-To: <20120708153413.GA3416@acm.acm> (Alan Mackenzie's message of "Sun, 8 Jul 2012 15:34:13 +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 RV4273=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4273> : streams <781000> : uri <1160249> 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:61734 Archived-At: > 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