GNU bug report logs - #68233
29.1; tree-sitter-hl-mode doesn't honor the :extend font face in single line comments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Michael Labbé <mike@HIDDEN>; dated Wed, 3 Jan 2024 17:39:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 68233 <at> debbugs.gnu.org:


Received: (at 68233) by debbugs.gnu.org; 3 Jan 2024 17:51:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 03 12:51:07 2024
Received: from localhost ([127.0.0.1]:53162 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rL5OU-0007DT-LS
	for submit <at> debbugs.gnu.org; Wed, 03 Jan 2024 12:51:06 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58998)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rL5OR-0007Cu-Lp
 for 68233 <at> debbugs.gnu.org; Wed, 03 Jan 2024 12:51:05 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rL5OH-0001Xl-10; Wed, 03 Jan 2024 12:50:54 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=eo/qXsHqJkwHvImtN6WDZjHpbW4pGfXN7ANWStuxLyM=; b=mQVK6F/pNxOOSISEpgui
 wUsF3Zf7zGwHkS97h1HFISdDJEFCk4jrbhuWgwuRwE8+1hreyudZ+oX7AMBm1yBYseEZTFRZicYfz
 +hJWgO43mJhDdAwNGmyZIrBFz8Vcn6agb3JyBOZDEDMOIiuoWQu5LsoLlR5f7kb2F5IGsQ+WDw32/
 HnS0Xo1DOFo7TQxjgF+5kEXPdBQcHrIhFm4XHFz9Plrn6LfG7vVhD4IkCyusZ2/VIJo29AD4iEgDw
 Vy6sUvFFfd2Ht+JauBWvJvPoDp+GJuV7IRzpekabi8Xr5SjkOHy+8RSXsUyGtpFTAJi4XVywWrz9w
 Cf1nqf1oHxVxkw==;
Date: Wed, 03 Jan 2024 19:50:34 +0200
Message-Id: <83mstmxq51.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael =?utf-8?Q?Labb=C3=A9?= <mike@HIDDEN>
In-Reply-To: <9debef41-5898-4982-b009-a5114117f748@HIDDEN> (message
 from Michael =?utf-8?Q?Labb=C3=A9?= on Tue, 02 Jan 2024 19:33:44 -0800)
Subject: Re: bug#68233: 29.1;
 tree-sitter-hl-mode doesn't honor the :extend font face in single
 line comments
References: <9debef41-5898-4982-b009-a5114117f748@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68233
Cc: 68233 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 02 Jan 2024 19:33:44 -0800
> From: Michael Labbé <mike@HIDDEN>
> 
> In many, if not all supported languages, tree-sitter-hl-mode's font locking does not honor the `:extend
> ` attribute of a face.  The [:extend face attribute]
> (https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html) is used to send a
> highlight past the newline character in a line.

I don't think tree-sitter-hl-mode is part of Emacs, is it?  If it
isn't part of Emacs, would you please report this first to the
developers of tree-sitter-hl-mode?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68233; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 3 Jan 2024 17:39:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 03 12:39:03 2024
Received: from localhost ([127.0.0.1]:53146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rL5Cm-0004Df-66
	for submit <at> debbugs.gnu.org; Wed, 03 Jan 2024 12:39:03 -0500
Received: from lists.gnu.org ([2001:470:142::17]:36954)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mike@HIDDEN>) id 1rKs1M-00053I-IZ
 for submit <at> debbugs.gnu.org; Tue, 02 Jan 2024 22:34:22 -0500
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 <mike@HIDDEN>) id 1rKs1E-00066i-7M
 for bug-gnu-emacs@HIDDEN; Tue, 02 Jan 2024 22:34:12 -0500
Received: from out3-smtp.messagingengine.com ([66.111.4.27])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mike@HIDDEN>) id 1rKs1B-0005NK-DA
 for bug-gnu-emacs@HIDDEN; Tue, 02 Jan 2024 22:34:11 -0500
Received: from compute7.internal (compute7.nyi.internal [10.202.2.48])
 by mailout.nyi.internal (Postfix) with ESMTP id 3D9035C00D5
 for <bug-gnu-emacs@HIDDEN>; Tue,  2 Jan 2024 22:34:05 -0500 (EST)
Received: from imap50 ([10.202.2.100])
 by compute7.internal (MEProxy); Tue, 02 Jan 2024 22:34:05 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tossed.org; h=cc
 :content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm2;
 t=1704252845; x=1704339245; bh=lbhkKK0Em6NZlJRrpSPuOEOZmsP3rNBy
 ZRGW5b4LzCU=; b=hE3j+z8pidhLtO7MMLIcan6ZmX0gFzkq6+fQo8FFElOH8C9d
 zaauBIyXoCNJIIaEaRqx+xWQvDQciyHI/F2I780f2QsA9Pt4v5SbCwdg6q2xVUaX
 J/t7nqf0IErBydSYszCY2ieBe7TTpCubz6vRbc+EXk3h8WdNkqZmDPw5Tvf0Bt54
 4/8blxzrqdIJ0RkSYnQLdNkGeVaQgayzMDpdjelnV2ks0yo27gVysVoKmACysqG0
 Tbct51jus0wAhZG8VnAhV+/tX6BrQaEe73hp9SzFKqgHSU6CLWaPnH0UY0WOYyuK
 xwP0ntZHgsQ9sBGBgMlMAMa2CQDNHCsOY3J1PA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1704252845; x=1704339245; bh=lbhkKK0Em6NZlJRrpSPuOEOZmsP3rNByZRG
 W5b4LzCU=; b=Lo2yioRzy0APdOSZ5n2Ti6+LOtPYn9tbsKMb+2V3H8nx28B68eM
 l7zZvFKioqn7am8P5f0M6bl6ctcecHF5RVP4mtQY8xCln1sYN9TjIKA6rWKPzLby
 akaRAn3VEtNqSKRolosDtMvijXoTrzGLLAQdMZWsJYXKM7sebvD7mNmkPB9tiEt9
 P1x7/kmUGSp5UJLU5OpGl4MgtcKVdSlAq0ge6ATAbsMJSUFfTX2KZrMqTno2mjw+
 WO5vHe7jC9h87snuk2aFJQ4jXdhv4uRYEJkUEG0S6j/zjjH9YjC+AHgYgyej4ZbH
 besEihvHVSSxSlR/IKHbHYmDYifGUyTVt1A==
X-ME-Sender: <xms:rNWUZY2K2_t6Fym_VzcIoaszAt4E6yBUHzfgH4cAvOdjc43tM08DHA>
 <xme:rNWUZTHI5sJbZD8-t0ROx3N6D9MA6AbvIFD4oIetDC6fCFmfzvYgApliOEEiHhvdR
 EdS6HDUYCVb3cXC1Ys>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeggedgiedvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre
 erreejnecuhfhrohhmpefoihgthhgrvghlucfnrggssgoruceomhhikhgvsehtohhsshgv
 ugdrohhrgheqnecuggftrfgrthhtvghrnhepteetvdeuvefhgfffhfeujeffffeigeevhf
 efkeekvdeivdffhfehjeffgeekheffnecuffhomhgrihhnpehgnhhurdhorhhgpdhgihht
 hhhusghushgvrhgtohhnthgvnhhtrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenuc
 frrghrrghmpehmrghilhhfrhhomhepmhhikhgvsehtohhsshgvugdrohhrgh
X-ME-Proxy: <xmx:rdWUZQ6bq1aofYAGh2Y_pyA0KjS0ycqRc9HocG3uew1HvjfdOtAGSQ>
 <xmx:rdWUZR0FK25lPG9ReGNGhPGMslVTbJVGx1KB_CXNEP7uLVfU1S9tOA>
 <xmx:rdWUZbH_6KeXx6obSOE2FDjXfn4olavqA9PMRgf9MslirVQ_CwJZCg>
 <xmx:rdWUZfTZC_jNHRE4ONn1_aRJOQfnO1Aqg2DD6lmh-281PD5PgC27Iw>
Feedback-ID: i646446d0:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id D8B4B1700096; Tue,  2 Jan 2024 22:34:04 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3
MIME-Version: 1.0
Message-Id: <9debef41-5898-4982-b009-a5114117f748@HIDDEN>
Date: Tue, 02 Jan 2024 19:33:44 -0800
From: =?UTF-8?Q?Michael_Labb=C3=A9?= <mike@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.1;
 tree-sitter-hl-mode doesn't honor the :extend font face in single line
 comments
Content-Type: multipart/alternative; boundary=4d3ebdf693ea4622b53c5bcca034a531
Received-SPF: pass client-ip=66.111.4.27; envelope-from=mike@HIDDEN;
 helo=out3-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 03 Jan 2024 12:38:54 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.4 (/)

--4d3ebdf693ea4622b53c5bcca034a531
Content-Type: text/plain

== BEGIN DESCRIPTION ==

In many, if not all supported languages, tree-sitter-hl-mode's font locking does not honor the `:extend` attribute of a face.  The [:extend face attribute](https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html) is used to send a highlight past the newline character in a line.

The easiest way to see this is to produce a `//` comment in a mode that supports it, such as c-mode.  Set the `font-lock-comment-face` and `tree-sitter-hl-face:comment` `:background` to a color other than the default background.  Then, observe as comments stop at the newline instead of the end of the frame.

To reproduce this issue:

1.  launch emacs 29.1 with `emacs -q --load repro.el` (code is below). 
2. Create a blank c file, ensuring c-mode is set. Add a `//` comment to any line and hit enter.
3. Observe the comment terminates at the newline (before the right side of the frame).
4. Type `M-x` `tree-sitter-hl-mode`.  Observe the comment goes to the right side of the frame.

## Languages this bug exists in ##

Not a complete list, but:
- c
- c++
- javascript
- rust (via rustic)
- bash
- python
- ruby 
 
# repro.el #
```
;;
;; repro.el

(custom-set-faces
'(font-lock-comment-face ((t (:background "darkblue" :foreground "yellow" :extend t)))))

(custom-set-faces
'(tree-sitter-hl-face:comment ((t (:inherit font-lock-comment-face)))))

;; comments look like this

;;
;; tree-sitter
;;

(defvar bootstrap-version)
(setq straight-repository-branch "master")
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 6))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(require 'package)
(use-package tree-sitter
    :straight t
    :config
    (global-tree-sitter-mode)
    :hook ((python-mode
            rustic-mode
            c-mode cc-mode
            go-mode
            typescript-mode
            javascript-mode) . tree-sitter-hl-mode)
    )
    
(use-package tree-sitter-langs
    :straight t
    :ensure t
    :after tree-sitter
    )

(require 'tree-sitter-hl)



```


In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
cairo version 1.16.0) of 2023-12-10 built on lcy02-amd64-098
Repository revision: 28fb02492c2444c5976eb53fd6f9badfe54f4ea1
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Linux Mint 21.2

Configured using:
'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
--without-xaw3d --with-modules --with-cairo
--with-native-compilation=aot --with-xinput2 --with-tree-sitter
--with-json
'CFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
-isystem/build/emacs/stage/usr/include -O2'
'CPPFLAGS=-isystem/build/emacs/parts/emacs/install/usr/include
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu
-isystem/build/emacs/stage/usr/include'
'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
-L/build/emacs/parts/emacs/install/usr/lib
-L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
-L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu
-L/build/emacs/stage/usr/lib''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM
GTK3 ZLIB

Important settings:
  value of $LANG: en_CA.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils site-start comp
comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode
cl-loaddefs cl-lib bytecomp byte-compile rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 81329 7534)
(symbols 48 7142 0)
(strings 32 19747 1922)
(string-bytes 1 602929)
(vectors 16 16576)
(vector-slots 8 333053 16182)
(floats 8 27 24)
(intervals 56 417 0)
(buffers 984 12))

--4d3ebdf693ea4622b53c5bcca034a531
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>=3D=3D BEGIN DE=
SCRIPTION =3D=3D<br></div><div><br></div><div>In many, if not all suppor=
ted languages, tree-sitter-hl-mode's font locking does not honor the `:e=
xtend` attribute of a face.&nbsp; The [:extend face attribute](<a href=3D=
"https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attribut=
es.html">https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-=
Attributes.html</a>) is used to send a highlight past the newline charac=
ter in a line.<br></div><div><br></div><div>The easiest way to see this =
is to produce a `//` comment in a mode that supports it, such as c-mode.=
&nbsp; Set the `font-lock-comment-face` and `tree-sitter-hl-face:comment=
` `:background` to a color other than the default background.&nbsp; Then=
, observe as comments stop at the newline instead of the end of the fram=
e.<br></div><div><br></div><div>To reproduce this issue:<br></div><div><=
br></div><div>1.&nbsp; launch emacs 29.1 with `emacs -q --load repro.el`=
 (code is below).&nbsp;<br></div><div>2. Create a blank c file, ensuring=
 c-mode is set. Add a `//` comment to any line and hit enter.<br></div><=
div>3. Observe the comment terminates at the newline (before the right s=
ide of the frame).<br></div><div>4. Type `M-x` `tree-sitter-hl-mode`.&nb=
sp; Observe the comment goes to the right side of the frame.<br></div><d=
iv><br></div><div>## Languages this bug exists in ##<br></div><div><br><=
/div><div>Not a complete list, but:<br></div><div>- c<br></div><div>- c+=
+<br></div><div>- javascript<br></div><div>- rust (via rustic)<br></div>=
<div>- bash<br></div><div>- python<br></div><div>- ruby&nbsp;<br></div><=
div>&nbsp;<br></div><div># repro.el #<br></div><div>```<br></div><div>;;=
<br></div><div>;; repro.el<br></div><div><br></div><div>(custom-set-face=
s<br></div><div>'(font-lock-comment-face ((t (:background "darkblue" :fo=
reground "yellow" :extend t)))))<br></div><div><br></div><div>(custom-se=
t-faces<br></div><div>'(tree-sitter-hl-face:comment ((t (:inherit font-l=
ock-comment-face)))))<br></div><div><br></div><div>;; comments look like=
 this<br></div><div><br></div><div>;;<br></div><div>;; tree-sitter<br></=
div><div>;;<br></div><div><br></div><div>(defvar bootstrap-version)<br><=
/div><div>(setq straight-repository-branch "master")<br></div><div>(let =
((bootstrap-file<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (exp=
and-file-name "straight/repos/<a href=3D"http://straight.el/bootstrap.el=
">straight.el/bootstrap.el</a>" user-emacs-directory))<br></div><div>&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; (bootstrap-version 6))<br></div><div>&nbsp; =
(unless (file-exists-p bootstrap-file)<br></div><div>&nbsp;&nbsp;&nbsp; =
(with-current-buffer<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; (url-retrieve-synchronously<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; "<a href=3D"https://raw.githubusercontent.com/r=
adian-software/straight.el/develop/install.el">https://raw.githubusercon=
tent.com/radian-software/straight.el/develop/install.el</a>"<br></div><d=
iv>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'silent 'inhibit-coo=
kies)<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (goto-char (point-max=
))<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (eval-print-last-sexp)))=
<br></div><div>&nbsp; (load bootstrap-file nil 'nomessage))<br></div><di=
v><br></div><div>(require 'package)<br></div><div>(use-package tree-sitt=
er<br></div><div>&nbsp;&nbsp;&nbsp; :straight t<br></div><div>&nbsp;&nbs=
p;&nbsp; :config<br></div><div>&nbsp;&nbsp;&nbsp; (global-tree-sitter-mo=
de)<br></div><div>&nbsp;&nbsp;&nbsp; :hook ((python-mode<br></div><div>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rustic=
-mode<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; c-mode cc-mode<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; go-mode<br></div><div>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typescript-mode<=
br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; javascript-mode) . tree-sitter-hl-mode)<br></div><div>&nbsp;&nb=
sp;&nbsp; )<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;<br></div><div>(use-pa=
ckage tree-sitter-langs<br></div><div>&nbsp;&nbsp;&nbsp; :straight t<br>=
</div><div>&nbsp;&nbsp;&nbsp; :ensure t<br></div><div>&nbsp;&nbsp;&nbsp;=
 :after tree-sitter<br></div><div>&nbsp;&nbsp;&nbsp; )<br></div><div><br=
></div><div>(require 'tree-sitter-hl)<br></div><div><br></div><div><br><=
/div><div><br></div><div>```<br></div><div><br></div><div><br></div><div=
>In GNU Emacs 29.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,<=
br></div><div>cairo version 1.16.0) of 2023-12-10 built on lcy02-amd64-0=
98<br></div><div>Repository revision: 28fb02492c2444c5976eb53fd6f9badfe5=
4f4ea1<br></div><div>Repository branch: master<br></div><div>Windowing s=
ystem distributor 'The X.Org Foundation', version 11.0.12101004<br></div=
><div>System Description: Linux Mint 21.2<br></div><div><br></div><div>C=
onfigured using:<br></div><div>'configure --prefix=3D/snap/emacs/current=
/usr --with-x-toolkit=3Dgtk3<br></div><div>--without-xaw3d --with-module=
s --with-cairo<br></div><div>--with-native-compilation=3Daot --with-xinp=
ut2 --with-tree-sitter<br></div><div>--with-json<br></div><div>'CFLAGS=3D=
-isystem/build/emacs/parts/emacs/install/usr/include<br></div><div>-isys=
tem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu<br></di=
v><div>-isystem/build/emacs/stage/usr/include -O2'<br></div><div>'CPPFLA=
GS=3D-isystem/build/emacs/parts/emacs/install/usr/include<br></div><div>=
-isystem/build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu<br=
></div><div>-isystem/build/emacs/stage/usr/include'<br></div><div>'LDFLA=
GS=3D-L/build/emacs/parts/emacs/install/lib<br></div><div>-L/build/emacs=
/parts/emacs/install/usr/lib<br></div><div>-L/build/emacs/parts/emacs/in=
stall/lib/x86_64-linux-gnu<br></div><div>-L/build/emacs/parts/emacs/inst=
all/usr/lib/x86_64-linux-gnu<br></div><div>-L/build/emacs/stage/usr/lib'=
'<br></div><div><br></div><div>Configured features:<br></div><div>ACL CA=
IRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG<br></d=
iv><div>JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES=
<br></div><div>NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND=
 SQLITE3<br></div><div>THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11 =
XDBE XIM XINPUT2 XPM<br></div><div>GTK3 ZLIB<br></div><div><br></div><di=
v>Important settings:<br></div><div>&nbsp; value of $LANG: en_CA.UTF-8<b=
r></div><div>&nbsp; locale-coding-system: utf-8-unix<br></div><div><br><=
/div><div>Major mode: Fundamental<br></div><div><br></div><div>Minor mod=
es in effect:<br></div><div>&nbsp; tooltip-mode: t<br></div><div>&nbsp; =
global-eldoc-mode: t<br></div><div>&nbsp; show-paren-mode: t<br></div><d=
iv>&nbsp; electric-indent-mode: t<br></div><div>&nbsp; mouse-wheel-mode:=
 t<br></div><div>&nbsp; tool-bar-mode: t<br></div><div>&nbsp; menu-bar-m=
ode: t<br></div><div>&nbsp; file-name-shadow-mode: t<br></div><div>&nbsp=
; global-font-lock-mode: t<br></div><div>&nbsp; blink-cursor-mode: t<br>=
</div><div>&nbsp; buffer-read-only: t<br></div><div>&nbsp; line-number-m=
ode: t<br></div><div>&nbsp; indent-tabs-mode: t<br></div><div>&nbsp; tra=
nsient-mark-mode: t<br></div><div>&nbsp; auto-composition-mode: t<br></d=
iv><div>&nbsp; auto-encryption-mode: t<br></div><div>&nbsp; auto-compres=
sion-mode: t<br></div><div><br></div><div>Load-path shadows:<br></div><d=
iv>None found.<br></div><div><br></div><div>Features:<br></div><div>(sha=
dow sort mail-extr emacsbug message mailcap yank-media puny dired<br></d=
iv><div>dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg=
 rfc6068<br></div><div>epg-config gnus-util text-property-search time-da=
te mm-decode mm-bodies<br></div><div>mm-encode mail-parse rfc2231 mailab=
brev gmm-utils mailheader sendmail<br></div><div>rfc2047 rfc2045 ietf-dr=
ums mm-util mail-prsvr mail-utils site-start comp<br></div><div>comp-cst=
r warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode<br></div=
><div>cl-loaddefs cl-lib bytecomp byte-compile rmc iso-transl tooltip cc=
onv<br></div><div>eldoc paren electric uniquify ediff-hook vc-hooks lisp=
-float-type<br></div><div>elisp-mode mwheel term/x-win x-win term/common=
-win x-dnd tool-bar dnd<br></div><div>fontset image regexp-opt fringe ta=
bulated-list replace newcomment<br></div><div>text-mode lisp-mode prog-m=
ode register page tab-bar menu-bar rfn-eshadow<br></div><div>isearch eas=
ymenu timer select scroll-bar mouse jit-lock font-lock syntax<br></div><=
div>font-core term/tty-colors frame minibuffer nadvice seq simple cl-gen=
eric<br></div><div>indonesian philippine cham georgian utf-8-lang misc-l=
ang vietnamese<br></div><div>tibetan thai tai-viet lao korean japanese e=
ucjp-ms cp51932 hebrew greek<br></div><div>romanian slovak czech europea=
n ethiopic indian cyrillic chinese<br></div><div>composite emoji-zwj cha=
rscript charprop case-table epa-hook<br></div><div>jka-cmpr-hook help ab=
brev obarray oclosure cl-preloaded button loaddefs<br></div><div>theme-l=
oaddefs faces cus-face macroexp files window text-properties<br></div><d=
iv>overlay sha1 md5 base64 format env code-pages mule custom widget keym=
ap<br></div><div>hashtable-print-readable backquote threads dbusbind ino=
tify lcms2<br></div><div>dynamic-setting system-font-setting font-render=
-setting cairo<br></div><div>move-toolbar gtk x-toolkit xinput2 x multi-=
tty make-network-process<br></div><div>native-compile emacs)<br></div><d=
iv><br></div><div>Memory information:<br></div><div>((conses 16 81329 75=
34)<br></div><div>(symbols 48 7142 0)<br></div><div>(strings 32 19747 19=
22)<br></div><div>(string-bytes 1 602929)<br></div><div>(vectors 16 1657=
6)<br></div><div>(vector-slots 8 333053 16182)<br></div><div>(floats 8 2=
7 24)<br></div><div>(intervals 56 417 0)<br></div><div>(buffers 984 12))=
<br></div><div><br></div></body></html>
--4d3ebdf693ea4622b53c5bcca034a531--




Acknowledgement sent to Michael Labbé <mike@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68233; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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