[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56818: 28.1; c-mode font-lock issues in Emacs 28
From: |
Eli Zaretskii |
Subject: |
bug#56818: 28.1; c-mode font-lock issues in Emacs 28 |
Date: |
Fri, 29 Jul 2022 21:11:10 +0300 |
> Date: Fri, 29 Jul 2022 17:44:58 +0000
> Cc: 56818@debbugs.gnu.org
> From: Alan Mackenzie <acm@muc.de>
>
> diff -r 9c649274b259 cc-engine.el
> --- a/cc-engine.el Tue Jul 26 20:08:39 2022 +0000
> +++ b/cc-engine.el Fri Jul 29 17:25:16 2022 +0000
> @@ -1679,9 +1679,13 @@
> Return the result of `forward-comment' if it gets called, nil otherwise."
> `(if (not comment-end-can-be-escaped)
> (forward-comment -1)
> - (when (and (< (skip-syntax-backward " >") 0)
> - (eq (char-after) ?\n))
> - (forward-char))
> + (let ((dist (skip-syntax-backward " >")))
> + (when (and
> + (< dist 0)
> + (progn
> + (skip-syntax-forward " " (- (point) dist 1))
> + (eq (char-after) ?\n)))
> + (forward-char)))
> (cond
> ((and (eq (char-before) ?\n)
> (eq (char-before (1- (point))) ?\\))
>
>
>
>
> > Alan, this seems to be a regression in Emacs 28, so could you please
> > look into it?
>
> Eli, Do I understand you want the fix in the release branch?
Yes, please.