From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#33163: Adding a " in c++-mode fills the whole file with red Date: Fri, 26 Oct 2018 17:05:04 +0300 Message-ID: <4ffd5027-1201-6a7b-6e82-645a99465404@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540562696 3176 195.159.176.226 (26 Oct 2018 14:04:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2018 14:04:56 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: 33163@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 26 16:04:52 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gG2jL-0000jU-St for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2018 16:04:52 +0200 Original-Received: from localhost ([::1]:60258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG2lS-0003NK-FM for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Oct 2018 10:07:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG2ke-0002ud-UY for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:06:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG2kV-0004eM-T7 for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:06:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39954) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gG2kU-0004dc-AA for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gG2kU-0003Ft-19 for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Oct 2018 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33163 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.154056274712487 (code B ref -1); Fri, 26 Oct 2018 14:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Oct 2018 14:05:47 +0000 Original-Received: from localhost ([127.0.0.1]:44212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gG2kF-0003FL-4g for submit@debbugs.gnu.org; Fri, 26 Oct 2018 10:05:47 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gG2kD-0003F8-Kr for submit@debbugs.gnu.org; Fri, 26 Oct 2018 10:05:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG2k2-0004NU-8p for submit@debbugs.gnu.org; Fri, 26 Oct 2018 10:05:40 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gG2k2-0004NI-4o for submit@debbugs.gnu.org; Fri, 26 Oct 2018 10:05:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gG2k1-0002Hw-7s for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:05:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gG2k0-0004M9-HI for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:05:33 -0400 Original-Received: from forward103o.mail.yandex.net ([2a02:6b8:0:1a2d::606]:39870) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gG2jy-0004Gy-8S for bug-gnu-emacs@gnu.org; Fri, 26 Oct 2018 10:05:32 -0400 Original-Received: from mxback5o.mail.yandex.net (mxback5o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1f]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 4F18A5883DCB for ; Fri, 26 Oct 2018 17:05:17 +0300 (MSK) Original-Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback5o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id t0JI7jTsrZ-5H5COukm; Fri, 26 Oct 2018 17:05:17 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1540562717; bh=NUQvRWrT6c6mOJyWxUwKekG5xMM35XMnZjU7vEWsjOE=; h=To:From:Subject:Message-ID:Date; b=egzFmQYVSyP+m+JmxKnT38AvHYp0twNquARz02GDfnpUo3gY0qKVRoI3eXobZXlLG 4OrWDkBpq263kyW0ZrZSBbhvou4tRUIzd5JwXE43N9zxyeTTT1S1NyaF2e0Lxd/Fhr cQ2fClJLEkj54Xj6Ev0irrPWMAx9noNzPrz2jf0Q= Original-Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id kNIXaBQQyK-5GZeO5p7; Fri, 26 Oct 2018 17:05:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1540562716; bh=NUQvRWrT6c6mOJyWxUwKekG5xMM35XMnZjU7vEWsjOE=; h=To:From:Subject:Message-ID:Date; b=fVcGKMhPOGNPrbSRyK7VPEi6gltq8aa2mARkTSKfvtt5X+jr1wZvg1ehihyScD8M3 NEOfIQBsZfkvM8OELz0OZm/NpfLCBVOPb75qQfzP/bHVVGDwvSXBR8Bvv1Pw8bMvuN zty+E6Iby97G7k+wu4LlunwY9UPOyjWZyoRqbh1Q= Authentication-Results: smtp4j.mail.yandex.net; dkim=pass header.i=@yandex.ru Content-Language: en-GB-large X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:151643 Archived-At: This long-standing problem appears occasionally, and only disappears if y= ou kill the buffer completely, then reopen the file. I never got to repor= t it because I never could find steps to reproduce it=E2=80=A6 until now = :) Nvm the non-sense code, I reduced testcase as far as I managed. # Steps to reproduce: 1. Save the following text in `test.cpp` int main() { puts(It's"); auto foo =3D []()-> void { }; puts("It's"); } 2. Open `emacs -Q ./test.cpp` 3. Now, the text lacks a quote in the first `puts(It's");`. Add it so it = looks like `puts("It's");`. Essentially, if you'd compile it with g++, it= lacks any syntax error besides `puts` being undeclared. # Expected The line with `auto foo=E2=80=A6` is not red. # Actual The line with `auto foo=E2=80=A6` (in particular) becomes red. # Additional information Emacs version GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Versi= on 3.22.30) of 2018-10-01, build with -flto.