[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65540: 29.1.50; treesit-inspect-mode does not escape `treesit--inspe
From: |
Eli Zaretskii |
Subject: |
bug#65540: 29.1.50; treesit-inspect-mode does not escape `treesit--inspect-name` |
Date: |
Sat, 26 Aug 2023 08:24:58 +0300 |
> Date: Sat, 26 Aug 2023 00:08:00 +0200
> From: Augustin Chéneau (BTuin) <btuin@mailo.com>
>
> The minor mode `treesit-inspect-mode` uses the mode-line to display the
> current node. However, a node name containing a string is displayed
> incorrecly because mode-line will try to interpret it as a
> '%-contruct'. Each '%' needs to be escaped as a double percent ('%%').
>
> The attached patch should fix the issue (works for me).
Thanks. Yuan, any comments, or should I install this?
I thought about an alternative: do something like that in
treesit-inspect-node-at-point, where the value of
treesit--inspect-name is computed, but perhaps we want to allow that
variable to be set by other Lisp programs (although it's an internal
variable)?