From: Eli Zaretskii <eliz@gnu.org>
To: Alan Mackenzie <acm@muc.de>
Cc: 42805@debbugs.gnu.org, Gustavo Tavares Cabral <gustavotcabral@gmail.com>
Subject: bug#42805: 27.1; cc-mode/syntax/font-lock bug
Date: Mon, 23 Nov 2020 19:10:11 +0200 [thread overview]
Message-ID: <833610vw24.fsf@gnu.org> (raw)
In-Reply-To: <CAHTjjFL-uzPMXq4cP+ztVGdb5xtO-2GKvi3NnqyLzYRLQpXu0A@mail.gmail.com> (message from Gustavo Tavares Cabral on Mon, 10 Aug 2020 16:55:40 -0300)
> From: Gustavo Tavares Cabral <gustavotcabral@gmail.com>
> 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 think this issue is related:
> https://github.com/Fuco1/smartparens/issues/992
>
> Issue 2 (maybe syntax.el):
>
> When syntax-propertize-function is set (to '(lambda (beg end) nil)',
> for example), a similar problem occurs if electric-pair-mode (or even
> smartparens) is enabled. The symptoms started after commit 585fb95739,
> but I don't know if it is related.
>
> Steps to reproduce:
> 1. Open a .c file;
> 2. Eval '(setq syntax-propertize-function (lambda (beg end) nil)';
> 3. Enable electric-pair-mode;
> 4. Insert/delete empty strings.
Alan, could you please take a look? Would it be possible to fix this
for Emacs 27.2?
next prev parent reply other threads:[~2020-11-23 17:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-10 19:55 bug#42805: 27.1; cc-mode/syntax/font-lock bug Gustavo Tavares Cabral
2020-11-23 17:10 ` Eli Zaretskii [this message]
2020-11-23 18:57 ` Alan Mackenzie
2020-11-23 19:27 ` Eli Zaretskii
2020-11-23 19:27 ` Alan Mackenzie
2021-08-27 17:56 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=833610vw24.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=42805@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=gustavotcabral@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).