GNU bug report logs - #60087
29.0.60; c++-ts-mode conflict with electric-pair-mode

Previous Next

Package: emacs;

Reported by: Eason Huang <aqua0210 <at> foxmail.com>

Date: Thu, 15 Dec 2022 11:34:02 UTC

Severity: normal

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: Eason Huang <aqua0210 <at> foxmail.com>, 60087 <at> debbugs.gnu.org
Subject: bug#60087: 29.0.60; c++-ts-mode conflict with electric-pair-mode
Date: Thu, 15 Dec 2022 13:10:00 +0000
[Message part 1 (text/plain, inline)]
On Thu, Dec 15, 2022 at 12:25 PM Daniel Martín via Bug reports for GNU
Emacs, the Swiss army knife of text editors <bug-gnu-emacs <at> gnu.org> wrote:

>
> Thanks for the report.  I think the bug is that we need a second
> character in the syntax table entry, to set the correct matching
> delimiter.
>
> Does the following patch solve this issue and bug#60049?
>
>
I don't know how this can work if '<' is going to be used to input
the less-than operator.  I think more complex syntax-propertization
functionality is going to be needed here.  I don't have a tree-sitter
build to test, but I'd say that the tree-sitter backend should be asked
about what kind of '<' and '>' we're talking about.  AFAICT, just
saying that '<' has the delimiter syntax in C++ is wrong. It's not
like '(' or '{.'

João
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.