From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#20240: 25.0.50; CC Mode broken fontification and commenting Date: Wed, 01 Apr 2015 16:04:59 -0400 Message-ID: <871tk34ntg.fsf@udel.edu> References: <87zj6snmts.fsf@udel.edu> <20150401192139.20032.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427918789 28426 80.91.229.3 (1 Apr 2015 20:06:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Apr 2015 20:06:29 +0000 (UTC) To: 20240@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 01 22:06:14 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 1YdOtv-0004zw-KM for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 22:06:11 +0200 Original-Received: from localhost ([::1]:54901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOtu-0007Lx-Pg for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Apr 2015 16:06:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOtr-0007Kr-3p for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 16:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdOtq-0000up-5G for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 16:06:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOtm-0000uK-Cy; Wed, 01 Apr 2015 16:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YdOtm-0001Nj-3w; Wed, 01 Apr 2015 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 01 Apr 2015 20:06: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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14279187195260 (code B ref -1); Wed, 01 Apr 2015 20:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2015 20:05:19 +0000 Original-Received: from localhost ([127.0.0.1]:42700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdOt5-0001Ml-0M for submit@debbugs.gnu.org; Wed, 01 Apr 2015 16:05:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32822) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YdOt3-0001MZ-9Y for submit@debbugs.gnu.org; Wed, 01 Apr 2015 16:05:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdOsu-0000ZY-8r for submit@debbugs.gnu.org; Wed, 01 Apr 2015 16:05:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOsu-0000ZR-6k for submit@debbugs.gnu.org; Wed, 01 Apr 2015 16:05:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOst-00078e-A8 for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 16:05:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YdOsp-0000PQ-FC for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 16:05:07 -0400 Original-Received: from mail-qg0-f53.google.com ([209.85.192.53]:35983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YdOsp-0000PG-By for bug-gnu-emacs@gnu.org; Wed, 01 Apr 2015 16:05:03 -0400 Original-Received: by qgeb100 with SMTP id b100so12091503qge.3 for ; Wed, 01 Apr 2015 13:05:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=b+xUdg/0/Nk6RrXqv8dcvtpjSlZt3XTjeifHSLJvt1w=; b=aVIVlvt+14Q5mKYQoC0hY+4x/1aGo6ZMD0JZBC2h0oDpzCDMReT4SSdpy+zPSsOgwp M1iPWcil/g8rOYhTpbgUTJ8Pwoz8goUudBvrrBSQRP+uYXoKdMukfQ6AtqQ5xSV5TSke ntRozGJeDBuItP+H7qwBwpnFEeU711WtHNSY2KP+jhxn5SALSbvj8rNtA3KRDCrj//2h ddCZB7GWsANN1orKRVSpp+ZMPKhQ3gkwjhvhkWrTP+wUhQn8TlHYfa1sN1oLaXaYKkgj tP+50x0QDBGF4Ccb/HHSS1SznVhlCU9ES6IdAFhA9Nd72rKs2elKqpeRooqhTARJ2xRd AQVQ== X-Gm-Message-State: ALoCoQnHox7rYXuaBGdCg5S5ttOsMawrcmatm4TfHx1/XU2IZUTBhgB4W+s/DX7csosSr22mUt4D X-Received: by 10.140.49.9 with SMTP id p9mr55055459qga.51.1427918702908; Wed, 01 Apr 2015 13:05:02 -0700 (PDT) Original-Received: from holos.localdomain (c-73-163-124-41.hsd1.md.comcast.net. [73.163.124.41]) by mx.google.com with ESMTPSA id 91sm1992097qgl.2.2015.04.01.13.05.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 13:05:01 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 0A8AE691FD; Wed, 1 Apr 2015 16:05:00 -0400 (EDT) In-Reply-To: <20150401192139.20032.qmail@mail.muc.de> (Alan Mackenzie's message of "1 Apr 2015 19:21:39 -0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:101126 Archived-At: Alan Mackenzie writes: > 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. Ah, I missed it then, thanks. > 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. You're welcome. You fixed the example I gave, but as it turns out my example was too minimal. Hopefully this is better: uncommenting the commented line in the following will signal a jit-lock error int main(void) { for(;;) { /* return 0; */ } } Repeating M-; on that line, eventually I get `return 0;` uncommented but fontified as a comment.