GNU bug report logs -
#70383
Conf-mode[toml] badly set face property
Previous Next
Full log
View this message in rfc822 format
> Date: Sun, 14 Apr 2024 11:25:08 +0100
> From: Alastair Irving <alastair.j.irving <at> gmail.com>
>
> When editting TOML files with conf-mode[toml] the face property is being
> set badly on certain characters. This occurs in Emacs 29.3 (running
> with -q) but has been present in older versions. Steps to reproduce:
>
> 1. Create a file test.toml containing the following:
>
>
> [package]
> name = "test"
> # See more keys and their definitions at
> https://doc.rust-lang.org/cargo/reference/manifest.html
> [dependencies]
>
> 2. Navigate to the d in dependencies and evaluate
>
> (text-properties-at (point))
>
> The output for me looks like
>
> (face (font-lock-type-face font-lock-type-face font-lock-type-face
> font-lock-type-face font-lock-type-face font-lock-ty\
> pe-face font-lock-type-face font-lock-type-face font-lock-type-face
> font-lock-type-face
>
>
> It looks like something is wrong in the font-lock setup and the same
> face is being applied very many times.
I cannot reproduce this here, neither in Emacs 29 nor in Emacs 30.
What version of the TOML grammar library are you using?
Jostein and Yuan, can you please look into this?
This bug report was last modified 1 year and 87 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.