From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#20240: 25.0.50; CC Mode broken fontification and commenting Date: 1 Apr 2015 19:21:39 -0000 Organization: muc.de e.V. Message-ID: <20150401192139.20032.qmail@mail.muc.de> References: <87zj6snmts.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1427916153 18461 80.91.229.3 (1 Apr 2015 19:22:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 19:22:33 +0000 (UTC) Cc: Mark Oteiza To: 20240@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 21:22:19 2015 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 1YdODS-0000h7-6p for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 21:22:18 +0200 Original-Received: from localhost ([::1]:54713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdODR-0005yM-Hi for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 15:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdODL-0005yD-1V for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 15:22:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdODK-0004SV-4x for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 15:22:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdODC-0004Rq-Gt; Wed, 01 Apr 2015 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdODC-0000Jv-4b; Wed, 01 Apr 2015 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 01 Apr 2015 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20240 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 20240-submit@debbugs.gnu.org id=B20240.14279161041206 (code B ref 20240); Wed, 01 Apr 2015 19:22:02 +0000 Original-Received: (at 20240) by debbugs.gnu.org; 1 Apr 2015 19:21:44 +0000 Original-Received: from localhost ([127.0.0.1]:42690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdOCt-0000JM-QO for submit@debbugs.gnu.org; Wed, 01 Apr 2015 15:21:44 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:23063 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdOCq-0000JD-QK for 20240@debbugs.gnu.org; Wed, 01 Apr 2015 15:21:41 -0400 Original-Received: (qmail 20033 invoked by uid 3782); 1 Apr 2015 19:21:39 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.2.0-20131224 ("Lochindaal") (UNIX) (FreeBSD/10.1-RELEASE (amd64)) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:101125 Archived-At: Hello, Mark. In article you wrote: >>>From emacs -Q: > 1. C-x C-f foo.c RET > 2. Insert: { RET } > 3. Select the first line and M-; > Only `/* ` is inserted at the beginning of the buffer, which is wrong. It actually signals an error at that point, which is indeed wrong. I've just committed a fix to the Emacs repository. Could you please update your sources, rebuild, and confirm that the fix works, please. Thanks for taking the trouble to report this bug. > 4. Undo: C-/ > The braces remain fontified as comments. > In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars) > of 2015-03-31 on logos -- Alan Mackenzie (Nuremberg, Germany).