From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alastair Irving Newsgroups: gmane.emacs.bugs Subject: bug#70383: Conf-mode[toml] badly set face property Date: Sun, 14 Apr 2024 20:59:02 +0100 Message-ID: References: <45347c16-6e54-4598-8ac9-33f56f65e106@gmail.com> <868r1fnb8k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------03JnVhWXBU4DoOzVDEeXG9Nk" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2448"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70383@debbugs.gnu.org To: Eli Zaretskii , Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 14 22:52:30 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rw6px-0000Od-VQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Apr 2024 22:52:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rw6pi-0004BR-62; Sun, 14 Apr 2024 16:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rw6pf-00049a-Jq for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 16:52:12 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rw6pf-0003zJ-AZ for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 16:52:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rw6pp-0006q3-Uv for bug-gnu-emacs@gnu.org; Sun, 14 Apr 2024 16:52:22 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alastair Irving Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Apr 2024 20:52:20 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70383 X-GNU-PR-Package: emacs Original-Received: via spool by 70383-submit@debbugs.gnu.org id=B70383.171312791326032 (code B ref 70383); Sun, 14 Apr 2024 20:52:20 +0000 Original-Received: (at 70383) by debbugs.gnu.org; 14 Apr 2024 20:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:36339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw6pH-0006ke-0n for submit@debbugs.gnu.org; Sun, 14 Apr 2024 16:51:52 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:48564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rw60X-0004VX-4X for 70383@debbugs.gnu.org; Sun, 14 Apr 2024 15:59:23 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-343c7fae6e4so2142655f8f.1 for <70383@debbugs.gnu.org>; Sun, 14 Apr 2024 12:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713124744; x=1713729544; darn=debbugs.gnu.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=bVRJQIoVmNiMyYZG10L5FVvauFlqFWtMP17YSRZUWnw=; b=A0SjQEXAJq7iZcyZHsAfHdxm+WJMfAzn1/Rn6waPxZxzgewlhyEGpsf4xZtvFDF1sa LNdlhuJQGQNctb4aAgUdipOABP8PR6P3Zn2ipi/NXihR6oI9KaaXm0k/DBXYS6n7ajdt e8G0tn7OoNZ/FO60bg7Wgz1/T2bxu+PaLQCTE61dMEYG00ZzfnfSj15Rl4sv1bFc7cfh 5Deg5xwVVgmOmoWl5oNDQCfJ6PHmjvJSbM1SB9ADTPN1CnfWpRxgkuyp4dcH0070AGcv H8BL6NF96N9nQceEtgrL1Qnc3wNuzBPEfw9yLeDRdrau7oyMxQSo8pWRkEXHmSnC/5kG dCFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713124744; x=1713729544; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=bVRJQIoVmNiMyYZG10L5FVvauFlqFWtMP17YSRZUWnw=; b=ZIBlkGvnhcTd6aOdbZ9QZVr9tpTLB0srLZk8dl8bUccJyyy0oSAHGxiexpoaF2A3zA 73kQhXm+duWfemAm7kkuLcLWBTEyQee7XKLVrUUd4itPUEPgsA4O5zlcVymNM2bmFn/u iUVzFxw5JzRTByHPiJaprhqdmhN5MnDaETcjZRhLb/5wP9XAbtd4BN84CBUDeYl0wa6e 4CFALqjET6440z/BiIDqcYdI4lnK5sHmL8vrUa4lYCRjqb+sXCfjf6S/sR7h1C4LRNSG 7jVeMlQfO1vhIrROV12BuzXh0M4kxAojF14EWBofLBDMNYQzkv8O27S1K0EpFVwKYASa ZREg== X-Gm-Message-State: AOJu0YyK5+RRBpjNwPAl8K0K3xfg3sekf1QCtBlKGQbkychECzZB0qsF 15TTkDL1LRuvL+18CL5+ReER9BGG5WfXNOQVp+hgJcI9gC0zamz/ X-Google-Smtp-Source: AGHT+IElwoaMFhqL9i0whwZ4Zg7ZXT+i/z+rfB6a6nfUdTEsPlhm1R27RPZ5VNKXlb+taDINPm49ag== X-Received: by 2002:a5d:47ab:0:b0:343:65a8:406d with SMTP id 11-20020a5d47ab000000b0034365a8406dmr6858613wrb.64.1713124743850; Sun, 14 Apr 2024 12:59:03 -0700 (PDT) Original-Received: from ?IPV6:2a02:c7c:8239:f200:9123:6aed:6f92:203a? ([2a02:c7c:8239:f200:9123:6aed:6f92:203a]) by smtp.googlemail.com with ESMTPSA id n7-20020a05600c4f8700b004181ed7c033sm6904902wmq.24.2024.04.14.12.59.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Apr 2024 12:59:03 -0700 (PDT) Content-Language: en-GB In-Reply-To: <868r1fnb8k.fsf@gnu.org> X-Mailman-Approved-At: Sun, 14 Apr 2024 16:51:41 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283319 Archived-At: This is a multi-part message in MIME format. --------------03JnVhWXBU4DoOzVDEeXG9Nk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 14/04/2024 17:46, Eli Zaretskii wrote: >> Date: Sun, 14 Apr 2024 11:25:08 +0100 >> From: Alastair Irving >> >> 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? I don't think it's using a TOML grammar library, just conf-mode bundled with EMACS "The major mode is Conf[TOML] mode defined in conf-mode.el".  I think an extra newline was inserted in the TOML I pasted (in the comment before the URL), it should be 4 lines total. I've attached the exact file. > > Jostein and Yuan, can you please look into this? --------------03JnVhWXBU4DoOzVDEeXG9Nk Content-Type: text/plain; charset=UTF-8; name="test.toml" Content-Disposition: attachment; filename="test.toml" Content-Transfer-Encoding: base64 W3BhY2thZ2VdCm5hbWUgPSAidGVzdCIKIyBTZWUgbW9yZSBrZXlzIGFuZCB0aGVpciBkZWZp bml0aW9ucyBhdCBodHRwczovL2RvYy5ydXN0LWxhbmcub3JnL2NhcmdvL3JlZmVyZW5jZS9t YW5pZmVzdC5odG1sCltkZXBlbmRlbmNpZXNdCg== --------------03JnVhWXBU4DoOzVDEeXG9Nk--