From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#42805: 27.1; cc-mode/syntax/font-lock bug Date: Mon, 23 Nov 2020 19:27:34 +0000 Message-ID: <20201123192734.GD4635@ACM> References: <833610vw24.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3515"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 42805@debbugs.gnu.org To: Gustavo Tavares Cabral Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 23 20:28:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khHVX-0000nD-8G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 20:28:15 +0100 Original-Received: from localhost ([::1]:52698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khHVW-0002DB-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 23 Nov 2020 14:28:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khHVL-0002B7-AS for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39674) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khHVL-0000BU-1d for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khHVK-0003pX-O8 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 14:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Nov 2020 19:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42805 X-GNU-PR-Package: emacs Original-Received: via spool by 42805-submit@debbugs.gnu.org id=B42805.160615966314689 (code B ref 42805); Mon, 23 Nov 2020 19:28:02 +0000 Original-Received: (at 42805) by debbugs.gnu.org; 23 Nov 2020 19:27:43 +0000 Original-Received: from localhost ([127.0.0.1]:51217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khHV0-0003or-U9 for submit@debbugs.gnu.org; Mon, 23 Nov 2020 14:27:43 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:41307 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1khHUz-0003ob-1i for 42805@debbugs.gnu.org; Mon, 23 Nov 2020 14:27:41 -0500 Original-Received: (qmail 46010 invoked by uid 3782); 23 Nov 2020 19:27:34 -0000 Original-Received: from acm.muc.de (p4fe15c1f.dip0.t-ipconnect.de [79.225.92.31]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Mon, 23 Nov 2020 20:27:34 +0100 Original-Received: (qmail 15472 invoked by uid 1000); 23 Nov 2020 19:27:34 -0000 Content-Disposition: inline In-Reply-To: <833610vw24.fsf@gnu.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:193955 Archived-At: Hello, Gustavo. On Mon, Nov 23, 2020 at 19:10:11 +0200, Eli Zaretskii wrote: > > From: Gustavo Tavares Cabral > > Date: Mon, 10 Aug 2020 16:55:40 -0300 > > Cc: bug-cc-mode@gnu.org > > I have found two related issues. Both are evident in csharp-mode, but > > can easily be reproduced in c-mode. > > Issue 1 (cc-mode.el): > > When c-multiline-string-start-char is set, font locking breaks after > > changes in string literals. The issue started after commit 2ca12bb3de: > > I believe that '(c-remove-string-fences (car end-limits))' should be > > '(c-remove-string-fences (1- (cdr end-limits)))' > > Steps to reproduce: > > 1. Open a .c file; > > 2. Eval '(setq c-multiline-string-start-char ?@)'; > > 3. Delete/insert double quotes. I've just done this, and not noticed anything adrift other than exceptionally long delays in making the changes. Would you please state more precisely what the problem is that you see. Thanks! > > I think this issue is related: > > https://github.com/Fuco1/smartparens/issues/992 > > Issue 2 (maybe syntax.el): [ Dealt with in a separate post. ] > Alan, could you please take a look? Would it be possible to fix this > for Emacs 27.2? -- Alan Mackenzie (Nuremberg, Germany).