GNU bug report logs - #82020
31.1; elixir-ts-mode does not handle paragraph fill in heredocs

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; Reported by: Joram Schrijver <i@HIDDEN>; dated Thu, 8 Oct 2026 14:50:15 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 82020) by debbugs.gnu.org; 25 Oct 2026 11:30:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 25 07:30:07 2026
Received: from localhost ([127.0.0.1]:50692 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xKwQQ-0001U8-7s
	for submit <at> debbugs.gnu.org; Sun, 25 Oct 2026 07:30:06 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43174)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xKwQN-0001Pf-BY
 for 82020 <at> debbugs.gnu.org; Sun, 25 Oct 2026 07:30:04 -0400
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 1xKwQH-00008P-26; Sun, 25 Oct 2026 07:29:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Wafrc37GD+aNO7adX8wxosT+rL9mvWiJVxCACak69dI=; b=o4jwEQufEnOz
 yEVQe/rKQT7su5InXW8Lv4c+Y9m8ht+sB5xy+XGIBQWbbTt7WI81QvZKltc8dEQj0uATxDWRfBB/l
 /t6C7tSWnjTzVcELQkfAxKIsjyxd2Rh6+nfMEeDzNm5CP1+vWB0izOhyYHpEQarw5L4m8P/9bnJqr
 OgRA+aLzpq3hTKi4rK0t1o5BGmwPpVkvtF1V/sU+40HfCDZhTsvo93tDYYnFvt9sLhQJNpHKS/o+W
 L4XCjoxi41XyfOeEJhEtLRCMV3RmdEz4pCCSs2pHRgW/DFh7iDJJMjIAOSGn/Kvfj9tAOYSYhPEaW
 7/g9KnQ6fC3Hh78fBnWYfw==;
Date: Sun, 25 Oct 2026 13:29:54 +0200
Message-Id: <86mrs210i5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: wkirschbaum@HIDDEN, Joram Schrijver <i@HIDDEN>
In-Reply-To: <871p9et4zu.fsf@HIDDEN> (message from Joram Schrijver on Sun,
 25 Oct 2026 12:05:25 +0100)
Subject: Re: bug#82020: 31.1; elixir-ts-mode does not handle paragraph fill
 in heredocs
References: <87wlrsz268.fsf@HIDDEN> <86y0c8mb5l.fsf@HIDDEN>
 <CAOS0-36wjJXEp-xDk6GpCfKjFOMPcxbbvor01JPu1SLjNMF+=A@HIDDEN>
 <CAOS0-36RKMat4K9Lk0zATt3=_Q0C2yzafpnG9zNidQnOSqm3Uw@HIDDEN>
 <871p9et4zu.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82020
Cc: monnier@HIDDEN, 82020 <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 (---)

> From: Joram Schrijver <i@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  Stefan Monnier
>  <monnier@HIDDEN>,  82020 <at> debbugs.gnu.org
> Date: Sun, 25 Oct 2026 12:05:25 +0100
> 
> Wilhelm Kirschbaum <wkirschbaum@HIDDEN> writes:
> 
> > I think something like this will solve both the original problem and the one mentioned above. This seems to work for me, but please
> > check. 
> 
> Indeed I think this works as expected in all cases. Great!

Thanks for testing.

Wilhelm, would you please send a complete patch with commit log
message, so we could install this?




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

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


Received: (at 82020) by debbugs.gnu.org; 17 Oct 2026 07:08:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 17 03:08:38 2026
Received: from localhost ([127.0.0.1]:47996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xHyWs-0001Uc-Rz
	for submit <at> debbugs.gnu.org; Sat, 17 Oct 2026 03:08:38 -0400
Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:50228)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <wkirschbaum@HIDDEN>)
 id 1xHyWh-0001TL-1Y
 for 82020 <at> debbugs.gnu.org; Sat, 17 Oct 2026 03:08:27 -0400
Received: by mail-lj1-x234.google.com with SMTP id
 38308e7fff4ca-3a9e87ba696so4130121fa.0
 for <82020 <at> debbugs.gnu.org>; Sat, 17 Oct 2026 00:08:18 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1792220892; cv=none;
 d=google.com; s=arc-20260327;
 b=m+04+X3hGMAFWUFaBfbHuXHJ52zGXMPP0aFtz/K+ykCmct+L1kzF65T5nh6p+HK7j0
 GI+K/Wcpbn9v73l8sX59F9AS8DKaCEHfipqEvB/D1oVn0binrsAz80RC/r4wSpDFqsgX
 sm9K8UfjUS8j+WwC87wJylR5lcuo+F76Fk9PnK2FjE8yQVIUIWHYR4WoiFl1x90ZwugM
 Z5vS1vK2uZqmOzBIaI2PcMCWmaneLfJ6nSNlIxl/3AEhAyZ/VLuzgSKdEjqSsl12jke3
 +MlU2AwnY0OLZZbrfYlVlJPEidkge+xY9JS7+WT/AgaNcYZLdG2/zg2jSTFifKjBzRwl
 cjOw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=oN3azoLAI2pJVhYFex7EO2LU0BTpmLfE6IvY7tOb3Ek=;
 fh=HCD3s+AmMjozy3I8jqZQAWwhAIHrh5UloIUf1/kUlv4=;
 b=lKTttPJVJrXOwfcIwf7HzvNkrCGLHZWHxXS8og0OYrZqndrRp15+PgiiTkuJbKpcLk
 /5GV99kf2hARnLK1hQ4h+NQNEtspBUFkJxbCyLjbsM5CLAC6shs+akNIrD+5v4+BUdst
 uzYMu36QHX7HE1I7F1rH4KyNiyfycYiHTB8QW5cnZavXC9JwdVSSk32r8NnJsZk+ZYkM
 M5142fi7CUM0Q1PVLxAoT+Z++PtCXOm0kk/oo8RyLM8tk7A7b/Gu7cyDMyS0VSJBLyfx
 2DEoh/p5MoGh6ECk8epxPEevaVqH45uM3h9U/LIuPWZvm0lqJrfz2GNAaK00T3U1Ac93
 gwkw==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1792220892; x=1792825692; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=oN3azoLAI2pJVhYFex7EO2LU0BTpmLfE6IvY7tOb3Ek=;
 b=Pf4GVLpMgsluYk1zPOVSgZdVMb5VmkEE+E86Rc9b8T1rW6O3A2Np9/V3+HVnBYsBnJ
 58wMG9n7xgSNHioZIctfTkGtIOTuf/9iBTQ3hFHsRAEeNVqkE37UEtiYHJ9j/f5gpQc+
 zbrllRsfLY4G/sjHqNHK0MHk8t/g4ya8Zh6NX5CRTg4Ke7t1HLM4a+YKDqfIhyuixJKz
 QNFJC6DgqwNp2Dclq78rWl7ldw5VxErmSIvpGWSvZSpCbQ8d2kCGV8WykGv50nvsuu/c
 5YPTkoL9zQx/v6DW/R+eu5V8Q42EfyrQnw/m+sRevE1jBHRGWsUCzNhlUrihvYHeC6Gw
 m07g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1792220892; x=1792825692;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=oN3azoLAI2pJVhYFex7EO2LU0BTpmLfE6IvY7tOb3Ek=;
 b=0oqR6Z4XvsnQYOoOEpJtfXxujvHwXqO8wLUnGVAbZ3rhtoEZ3BSaG2A5qisXg7Uw4x
 IWHJO7Gyd9vjYp27rfl3cRUW6o+A4YSo8jIEma+tAR8gyZ6mep5Xf+qD0DYNuO0YXV8E
 g31M8IAeYfHRGhtntLP7PMwFA9RlZKsCqAxXu78owkdPTp1405zm6GlPTp/lUVsM+tHv
 F9RzjUw2PCRK6wFpsJoyvkT96U8n6ft9gDmJ1CnTCqxsjRiFuTvEL19fW3+dvAeKaitS
 U4RRqc6EXu1QnAiCDr53h1O/8E3Xxfsq8zhv01oDS18SN//3QsoLx05nnPcDGOXPPJ8I
 yuVA==
X-Forwarded-Encrypted: i=1;
 AKwUvBzjzilAVks6xHZ68i7cjJOcmrNF0doYFVlzLudDJvCxyAj/4HRd1c6unASPki2e06jpdHBBpA==@debbugs.gnu.org
X-Gm-Message-State: AFq9FYLzJyebE5A75927M4vhWzQNbfWon1qT/EKFsilc6uKV+9UAtUvq
 PjAFouVCOq1XPv+eer0Bs0E6n8xrYqEcLW3PQD6MbxABUjBM/jvYtHcWYnxF69FgJcgCiYCD0ZJ
 yqfThlQIQjEnG+mvYG2fULgQi/ZGHNDA=
X-Gm-Gg: AYBFou1Smi/QlHUNtnLifV/t+asr307T3LA/hn0eKXHM6kzrP3OCRSX4B52j8kkvbeE
 edhH9YdlqYTRpkY/20OiufQSFqupCzDETfhDyuTeH18wlmH0haBpyb13GLDrekpmEAVySOkt2bD
 i9lnhINEg5ouHP9n9elY5UHntlO2sC2l8JkEFDZPUjmOyElv/ejloGAnWAT+qALhshgMNtlDPwo
 pLHcHw6wiUicoOvBImKDSvOqTRKRse2E048Ebf6ATrMsa4BblYOO7gZwEH1FVLWAXzcAahmFkkG
 IvEUo2fpIc2CtVNZZ1P2KweqdzUXaBi2+3sH3NqW4OAq7WpESoYuCTkOcYrmFHpc7wMh0a/CPYU
 yPk28d6ASnLbmQ0b6u2cWRb0iQk3+XUdH9kcNjhR4l14zAXoCNAHLs33mqTGHxS/+9p90xfM=
X-Received: by 2002:a05:651c:1994:b0:3ab:322f:4b36 with SMTP id
 38308e7fff4ca-3ab322f4f39mr416421fa.8.1792220892138; Sat, 17 Oct 2026
 00:08:12 -0700 (PDT)
MIME-Version: 1.0
References: <87wlrsz268.fsf@HIDDEN> <86y0c8mb5l.fsf@HIDDEN>
 <CAOS0-36wjJXEp-xDk6GpCfKjFOMPcxbbvor01JPu1SLjNMF+=A@HIDDEN>
In-Reply-To: <CAOS0-36wjJXEp-xDk6GpCfKjFOMPcxbbvor01JPu1SLjNMF+=A@HIDDEN>
From: Wilhelm Kirschbaum <wkirschbaum@HIDDEN>
Date: Sat, 17 Oct 2026 09:08:00 +0200
X-Gm-Features: AclHuK-1_f7KtJnf86eD_SxlFfbSygmzZUIwqLZ7omxiTDBPhzO3OjXYWifUKzc
Message-ID: <CAOS0-36RKMat4K9Lk0zATt3=_Q0C2yzafpnG9zNidQnOSqm3Uw@HIDDEN>
Subject: Re: bug#82020: 31.1;
 elixir-ts-mode does not handle paragraph fill in heredocs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000a291fb065e03f15e"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82020
Cc: Joram Schrijver <i@HIDDEN>, Stefan Monnier <monnier@HIDDEN>,
 82020 <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: 0.0 (/)

--000000000000a291fb065e03f15e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I think something like this will solve both the original problem and the
one mentioned above. This seems to work for me, but please check.


modified   lisp/progmodes/elixir-ts-mode.el
@@ -641,6 +641,8 @@ heex-ts--indent-rules
 (defvar heex-ts--font-lock-settings)
 (defvar heex-ts--font-lock-feature-list)

+(defvar electric-pair-skip-whitespace-function)
+
 (defun elixir-ts--treesit-anchor-grand-parent-bol (_n parent &rest _)
   "Return the beginning of non-space characters for the parent node of
PARENT."
   (save-excursion
@@ -698,7 +700,7 @@ elixir-ts--syntax-propertize
       (pcase-exhaustive name
         ('quoted-text
          (put-text-property (1- (treesit-node-end node)) (treesit-node-end
node)
-                            'syntax-table (string-to-syntax "$")))))))
+                            'syntax-table (string-to-syntax "|")))))))

 (defun elixir-ts--electric-pair-string-delimiter ()
   "Insert corresponding multi-line string for `electric-pair-mode'."
@@ -714,6 +716,14 @@ elixir-ts--electric-pair-string-delimiter
     (save-excursion
       (newline 1 t))))

+(defun elixir-ts--electric-pair-skip-whitespace ()
+  "Move forward over whitespace, but do not stop on a closing \"\"\".
+
+Otherwise typing \" in a heredoc would jump to the closing delimiter."
+  (let ((start (point)))
+    (funcall (default-value 'electric-pair-skip-whitespace-function))
+    (when (looking-at-p "\"\"\"") (goto-char start))))
+
 ;;;###autoload
 (define-derived-mode elixir-ts-mode prog-mode "Elixir"
   "Major mode for editing Elixir, powered by tree-sitter."
@@ -734,10 +744,16 @@ elixir-ts-mode
   ;; Compile.
   (setq-local compile-command "mix")

+  (setq-local paragraph-start "\f\\|[ \t]*$\\|.*\"\"\"[ \t]*$")
+  (setq-local paragraph-separate "[ \t\f]*$\\|.*\"\"\"[ \t]*$")
+
   ;; Electric pair.
   (add-hook 'post-self-insert-hook
             #'elixir-ts--electric-pair-string-delimiter 'append t)

+  (setq-local electric-pair-skip-whitespace-function
#'elixir-ts--electric-pair-skip-whitespace)
+
+
   ;; `treesit-ready-p' also checks for buffer size.
   (when (and (treesit-ensure-installed 'elixir)
              (treesit-ready-p 'elixir))



On Sat, Oct 17, 2026 at 7:46=E2=80=AFAM Wilhelm Kirschbaum <wkirschbaum@gma=
il.com>
wrote:

> Hi Joram
>
> It was intentional and you can find the conversation about this change
> here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62536.
>
> I can look into this today and tomorrow to see if we can come up with a
> better solution perhaps.
>
> Regards,
> Wilhelm
>
> On Thu, Oct 8, 2026 at 6:04=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
>> > Date: Thu, 08 Oct 2026 16:39:59 +0200
>> > From: Joram Schrijver via "Bug reports for GNU Emacs,
>> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>> >
>> >
>> > When using elixir-ts-mode, `prog-fill-reindent-defun' (M-q) works as
>> > expected to reindent a defun and to fill paragraphs in comments and in
>> > strings, but inside a heredoc (""") it does not fill paragraphs.
>> >
>> > I investigated the issue and found that when treesit-fill-reindent-def=
un
>> > calls prog--text-at-point-p it returns nil. This in turn seems to be
>> > caused by elixir-ts--syntax-propertize making it so that syntax-ppss n=
o
>> > longer considers the text inside the heredoc to be inside a string.
>> >
>> > Indeed when I remove the following line from the definition of
>> > elixir-ts-mode the problem is fixed:
>> >
>> >   (setq-local syntax-propertize-function #'elixir-ts--syntax-propertiz=
e)
>> >
>> > Unfortunately setting syntax-propertize-function back to nil through
>> > elixir-ts-mode-hook does have the same effect, I'm not sure why.
>> >
>> > I don't really know why elixir-ts-mode sets syntax-propertize-function=
;
>> > removing it does not seem to break anything, but I may just not use
>> > whatever requires it.
>> >
>> > In addition to changing the above I've also added the following throug=
h
>> > elixir-ts-mode-hook:
>> >
>> >   ;; paragraph-{start,separate} are set so that multi-line strings
>> >   ;; keep the quotes on separate lines.
>> >   (setq-local paragraph-start "\f\\|[ \t]*$\\|[ \t]*\"\"\"[ \t]*$")
>> >   (setq-local paragraph-separate "[ \t\f]*$\\|[ \t]*\"\"\"[ \t]*$")
>> >
>> > Since Elixir requires the opening """ to be at the end of its line and
>> > the closing """ to be on its own line it would be nice to include
>> > something like this in elixir-ts-mode proper.
>>
>> Thanks, I've added Wilhelm, the author of elixir-ts-mode, and Stefan
>> to the discussion.
>>
>> > In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,
>> > cairo version 1.18.4)
>> > Windowing system distributor 'The X.Org Foundation', version
>> 11.0.12401013
>> > System Description: Arch Linux
>> >
>> > Configured using:
>> >  'configure --with-x-toolkit=3Dgtk3 --sysconfdir=3D/etc --prefix=3D/us=
r
>> >  --libexecdir=3D/usr/lib --localstatedir=3D/var --disable-build-detail=
s
>> >  --with-cairo --with-harfbuzz --with-libsystemd --with-modules
>> >  --with-native-compilation=3Daot --with-tree-sitter 'CFLAGS=3D-march=
=3Dx86-64
>> >  -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURC=
E=3D3
>> >  -Wformat -Werror=3Dformat-security -fstack-clash-protection
>> >  -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer =
-g
>> >  -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Da=
uto'
>> >  'LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
>> >  -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto''
>> >
>> > Configured features:
>> > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
>> > LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
>> > PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BAR=
S
>> > TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB
>> >
>> > Important settings:
>> >   value of $LC_TIME: nl_NL.UTF-8
>> >   value of $LANG: en_US.UTF-8
>> >   locale-coding-system: utf-8-unix
>> >
>> > Major mode: Elixir
>> >
>> > 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
>> >   font-lock-mode: t
>> >   blink-cursor-mode: t
>> >   minibuffer-nonselected-mode: t
>> >   minibuffer-regexp-mode: 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:
>> > (help-mode pp shadow sort mail-extr emacsbug lisp-mnt 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 subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev
>> > gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
>> > ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-change=
s
>> > easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode
>> > treesit comp-run bytecomp byte-compile comp-common rx warnings icons
>> > cl-loaddefs cl-lib 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 touch-screen tool-bar dnd fonts=
et
>> > 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-gener=
ic
>> > indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
>> > tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew gree=
k
>> > 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 loaddef=
s
>> > theme-loaddefs faces cus-face macroexp files window text-properties
>> > overlay sha1 md5 base64 format env code-pages mule custom widget keyma=
p
>> > hashtable-print-readable backquote threads dbusbind inotify lcms2
>> > dynamic-setting system-font-setting font-render-setting cairo gtk
>> > x-toolkit xinput2 x multi-tty move-toolbar make-network-process
>> > tty-child-frames native-compile emacs)
>> >
>> > Memory information:
>> > ((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)
>> >  (string-bytes 1 621920) (vectors 16 11839)
>> >  (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 655 12)
>> >  (buffers 1064 14))
>> >
>> > --
>> >   Joram
>> >
>> >
>> >
>> >
>>
>

--000000000000a291fb065e03f15e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I think something like this will solve both the origi=
nal problem and the one mentioned above. This seems to work for me, but ple=
ase check.=C2=A0</div><div><br></div><div><br></div><div>modified =C2=A0 li=
sp/progmodes/elixir-ts-mode.el<br>@@ -641,6 +641,8 @@ heex-ts--indent-rules=
<br>=C2=A0(defvar heex-ts--font-lock-settings)<br>=C2=A0(defvar heex-ts--fo=
nt-lock-feature-list)<br>=C2=A0<br>+(defvar electric-pair-skip-whitespace-f=
unction)<br>+<br>=C2=A0(defun elixir-ts--treesit-anchor-grand-parent-bol (_=
n parent &amp;rest _)<br>=C2=A0 =C2=A0&quot;Return the beginning of non-spa=
ce characters for the parent node of PARENT.&quot;<br>=C2=A0 =C2=A0(save-ex=
cursion<br>@@ -698,7 +700,7 @@ elixir-ts--syntax-propertize<br>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0(pcase-exhaustive name<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0(&#39;quoted-text<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (put-text-proper=
ty (1- (treesit-node-end node)) (treesit-node-end node)<br>- =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0&#39;syntax-table (string-to-syntax &quot;$&quot;)))))))<br>+ =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0&#39;syntax-table (string-to-syntax &quot;|&quot;))))))=
)<br>=C2=A0<br>=C2=A0(defun elixir-ts--electric-pair-string-delimiter ()<br=
>=C2=A0 =C2=A0&quot;Insert corresponding multi-line string for `electric-pa=
ir-mode&#39;.&quot;<br>@@ -714,6 +716,14 @@ elixir-ts--electric-pair-string=
-delimiter<br>=C2=A0 =C2=A0 =C2=A0(save-excursion<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0(newline 1 t))))<br>=C2=A0<br>+(defun elixir-ts--electric-pair-skip-w=
hitespace ()<br>+ =C2=A0&quot;Move forward over whitespace, but do not stop=
 on a closing \&quot;\&quot;\&quot;.<br>+<br>+Otherwise typing \&quot; in a=
 heredoc would jump to the closing delimiter.&quot;<br>+ =C2=A0(let ((start=
 (point)))<br>+ =C2=A0 =C2=A0(funcall (default-value &#39;electric-pair-ski=
p-whitespace-function))<br>+ =C2=A0 =C2=A0(when (looking-at-p &quot;\&quot;=
\&quot;\&quot;&quot;) (goto-char start))))<br>+<br>=C2=A0;;;###autoload<br>=
=C2=A0(define-derived-mode elixir-ts-mode prog-mode &quot;Elixir&quot;<br>=
=C2=A0 =C2=A0&quot;Major mode for editing Elixir, powered by tree-sitter.&q=
uot;<br>@@ -734,10 +744,16 @@ elixir-ts-mode<br>=C2=A0 =C2=A0;; Compile.<br=
>=C2=A0 =C2=A0(setq-local compile-command &quot;mix&quot;)<br>=C2=A0<br>+ =
=C2=A0(setq-local paragraph-start &quot;\f\\|[ \t]*$\\|.*\&quot;\&quot;\&qu=
ot;[ \t]*$&quot;)<br>+ =C2=A0(setq-local paragraph-separate &quot;[ \t\f]*$=
\\|.*\&quot;\&quot;\&quot;[ \t]*$&quot;)<br>+<br>=C2=A0 =C2=A0;; Electric p=
air.<br>=C2=A0 =C2=A0(add-hook &#39;post-self-insert-hook<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#&#39;elixir-ts--electric-pair-string-del=
imiter &#39;append t)<br>=C2=A0<br>+ =C2=A0(setq-local electric-pair-skip-w=
hitespace-function #&#39;elixir-ts--electric-pair-skip-whitespace)<br>+<br>=
+<br>=C2=A0 =C2=A0;; `treesit-ready-p&#39; also checks for buffer size.<br>=
=C2=A0 =C2=A0(when (and (treesit-ensure-installed &#39;elixir)<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (treesit-ready-p &#39;elixir))<br=
><br></div><div><br></div></div><br><div class=3D"gmail_quote gmail_quote_c=
ontainer"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Oct 17, 2026 at 7:4=
6=E2=80=AFAM Wilhelm Kirschbaum &lt;<a href=3D"mailto:wkirschbaum@HIDDEN=
">wkirschbaum@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D"gmail_=
quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,=
204);padding-left:1ex"><div dir=3D"ltr"><div>Hi Joram=C2=A0</div><div><br><=
/div><div>It was intentional and you can find the conversation about this c=
hange here:=C2=A0<a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=
=3D62536" target=3D"_blank">https://debbugs.gnu.org/cgi/bugreport.cgi?bug=
=3D62536</a>.=C2=A0</div><div><br></div><div>I can look into this today and=
 tomorrow to see if we can come up with a better solution perhaps.=C2=A0</d=
iv><div><br></div><div>Regards,=C2=A0</div><div>Wilhelm</div></div><br><div=
 class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Oct 8,=
 2026 at 6:04=E2=80=AFPM Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN" =
target=3D"_blank">eliz@HIDDEN</a>&gt; wrote:<br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(2=
04,204,204);padding-left:1ex">&gt; Date: Thu, 08 Oct 2026 16:39:59 +0200<br=
>
&gt; From: Joram Schrijver via &quot;Bug reports for GNU Emacs,<br>
&gt;=C2=A0 the Swiss army knife of text editors&quot; &lt;<a href=3D"mailto=
:bug-gnu-emacs@HIDDEN" target=3D"_blank">bug-gnu-emacs@HIDDEN</a>&gt;<br>
&gt; <br>
&gt; <br>
&gt; When using elixir-ts-mode, `prog-fill-reindent-defun&#39; (M-q) works =
as<br>
&gt; expected to reindent a defun and to fill paragraphs in comments and in=
<br>
&gt; strings, but inside a heredoc (&quot;&quot;&quot;) it does not fill pa=
ragraphs.<br>
&gt; <br>
&gt; I investigated the issue and found that when treesit-fill-reindent-def=
un<br>
&gt; calls prog--text-at-point-p it returns nil. This in turn seems to be<b=
r>
&gt; caused by elixir-ts--syntax-propertize making it so that syntax-ppss n=
o<br>
&gt; longer considers the text inside the heredoc to be inside a string.<br=
>
&gt; <br>
&gt; Indeed when I remove the following line from the definition of<br>
&gt; elixir-ts-mode the problem is fixed:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0(setq-local syntax-propertize-function #&#39;elixir-ts--sy=
ntax-propertize)<br>
&gt; <br>
&gt; Unfortunately setting syntax-propertize-function back to nil through<b=
r>
&gt; elixir-ts-mode-hook does have the same effect, I&#39;m not sure why.<b=
r>
&gt; <br>
&gt; I don&#39;t really know why elixir-ts-mode sets syntax-propertize-func=
tion;<br>
&gt; removing it does not seem to break anything, but I may just not use<br=
>
&gt; whatever requires it.<br>
&gt; <br>
&gt; In addition to changing the above I&#39;ve also added the following th=
rough<br>
&gt; elixir-ts-mode-hook:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0;; paragraph-{start,separate} are set so that multi-line s=
trings<br>
&gt;=C2=A0 =C2=A0;; keep the quotes on separate lines.<br>
&gt;=C2=A0 =C2=A0(setq-local paragraph-start &quot;\f\\|[ \t]*$\\|[ \t]*\&q=
uot;\&quot;\&quot;[ \t]*$&quot;)<br>
&gt;=C2=A0 =C2=A0(setq-local paragraph-separate &quot;[ \t\f]*$\\|[ \t]*\&q=
uot;\&quot;\&quot;[ \t]*$&quot;)<br>
&gt; <br>
&gt; Since Elixir requires the opening &quot;&quot;&quot; to be at the end =
of its line and<br>
&gt; the closing &quot;&quot;&quot; to be on its own line it would be nice =
to include<br>
&gt; something like this in elixir-ts-mode proper.<br>
<br>
Thanks, I&#39;ve added Wilhelm, the author of elixir-ts-mode, and Stefan<br=
>
to the discussion.<br>
<br>
&gt; In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,=
<br>
&gt; cairo version 1.18.4)<br>
&gt; Windowing system distributor &#39;The X.Org Foundation&#39;, version 1=
1.0.12401013<br>
&gt; System Description: Arch Linux<br>
&gt; <br>
&gt; Configured using:<br>
&gt;=C2=A0 &#39;configure --with-x-toolkit=3Dgtk3 --sysconfdir=3D/etc --pre=
fix=3D/usr<br>
&gt;=C2=A0 --libexecdir=3D/usr/lib --localstatedir=3D/var --disable-build-d=
etails<br>
&gt;=C2=A0 --with-cairo --with-harfbuzz --with-libsystemd --with-modules<br=
>
&gt;=C2=A0 --with-native-compilation=3Daot --with-tree-sitter &#39;CFLAGS=
=3D-march=3Dx86-64<br>
&gt;=C2=A0 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_=
SOURCE=3D3<br>
&gt;=C2=A0 -Wformat -Werror=3Dformat-security -fstack-clash-protection<br>
&gt;=C2=A0 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-poi=
nter -g<br>
&gt;=C2=A0 -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flt=
o=3Dauto&#39;<br>
&gt;=C2=A0 &#39;LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,=
relro<br>
&gt;=C2=A0 -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto&#39;&#39;<br=
>
&gt; <br>
&gt; Configured features:<br>
&gt; ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG<br=
>
&gt; LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY<br>
&gt; PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BAR=
S<br>
&gt; TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB<br=
>
&gt; <br>
&gt; Important settings:<br>
&gt;=C2=A0 =C2=A0value of $LC_TIME: nl_NL.UTF-8<br>
&gt;=C2=A0 =C2=A0value of $LANG: en_US.UTF-8<br>
&gt;=C2=A0 =C2=A0locale-coding-system: utf-8-unix<br>
&gt; <br>
&gt; Major mode: Elixir<br>
&gt; <br>
&gt; Minor modes in effect:<br>
&gt;=C2=A0 =C2=A0tooltip-mode: t<br>
&gt;=C2=A0 =C2=A0global-eldoc-mode: t<br>
&gt;=C2=A0 =C2=A0show-paren-mode: t<br>
&gt;=C2=A0 =C2=A0electric-indent-mode: t<br>
&gt;=C2=A0 =C2=A0mouse-wheel-mode: t<br>
&gt;=C2=A0 =C2=A0tool-bar-mode: t<br>
&gt;=C2=A0 =C2=A0menu-bar-mode: t<br>
&gt;=C2=A0 =C2=A0file-name-shadow-mode: t<br>
&gt;=C2=A0 =C2=A0global-font-lock-mode: t<br>
&gt;=C2=A0 =C2=A0font-lock-mode: t<br>
&gt;=C2=A0 =C2=A0blink-cursor-mode: t<br>
&gt;=C2=A0 =C2=A0minibuffer-nonselected-mode: t<br>
&gt;=C2=A0 =C2=A0minibuffer-regexp-mode: t<br>
&gt;=C2=A0 =C2=A0line-number-mode: t<br>
&gt;=C2=A0 =C2=A0indent-tabs-mode: t<br>
&gt;=C2=A0 =C2=A0transient-mark-mode: t<br>
&gt;=C2=A0 =C2=A0auto-composition-mode: t<br>
&gt;=C2=A0 =C2=A0auto-encryption-mode: t<br>
&gt;=C2=A0 =C2=A0auto-compression-mode: t<br>
&gt; <br>
&gt; Load-path shadows:<br>
&gt; None found.<br>
&gt; <br>
&gt; Features:<br>
&gt; (help-mode pp shadow sort mail-extr emacsbug lisp-mnt message mailcap<=
br>
&gt; yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache=
<br>
&gt; epa derived epg rfc6068 epg-config gnus-util text-property-search<br>
&gt; time-date subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev<br=
>
&gt; gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045<br>
&gt; ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-change=
s<br>
&gt; easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode<br=
>
&gt; treesit comp-run bytecomp byte-compile comp-common rx warnings icons<b=
r>
&gt; cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric<b=
r>
&gt; uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel<br>
&gt; term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fonts=
et<br>
&gt; image regexp-opt fringe tabulated-list replace newcomment text-mode<br=
>
&gt; lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch=
<br>
&gt; easymenu timer select scroll-bar mouse jit-lock font-lock syntax<br>
&gt; font-core term/tty-colors frame minibuffer nadvice seq simple cl-gener=
ic<br>
&gt; indonesian philippine cham georgian utf-8-lang misc-lang vietnamese<br=
>
&gt; tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew gree=
k<br>
&gt; romanian slovak czech european ethiopic indian cyrillic chinese<br>
&gt; composite emoji-zwj charscript charprop case-table epa-hook<br>
&gt; jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddef=
s<br>
&gt; theme-loaddefs faces cus-face macroexp files window text-properties<br=
>
&gt; overlay sha1 md5 base64 format env code-pages mule custom widget keyma=
p<br>
&gt; hashtable-print-readable backquote threads dbusbind inotify lcms2<br>
&gt; dynamic-setting system-font-setting font-render-setting cairo gtk<br>
&gt; x-toolkit xinput2 x multi-tty move-toolbar make-network-process<br>
&gt; tty-child-frames native-compile emacs)<br>
&gt; <br>
&gt; Memory information:<br>
&gt; ((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)<=
br>
&gt;=C2=A0 (string-bytes 1 621920) (vectors 16 11839)<br>
&gt;=C2=A0 (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 65=
5 12)<br>
&gt;=C2=A0 (buffers 1064 14))<br>
&gt; <br>
&gt; -- <br>
&gt;=C2=A0 =C2=A0Joram<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
</blockquote></div>
</blockquote></div>

--000000000000a291fb065e03f15e--




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

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


Received: (at 82020) by debbugs.gnu.org; 17 Oct 2026 05:47:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 17 01:47:32 2026
Received: from localhost ([127.0.0.1]:58286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xHxGO-0000Lr-Ts
	for submit <at> debbugs.gnu.org; Sat, 17 Oct 2026 01:47:32 -0400
Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:49506)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <wkirschbaum@HIDDEN>)
 id 1xHxGF-0000Ku-L2
 for 82020 <at> debbugs.gnu.org; Sat, 17 Oct 2026 01:47:22 -0400
Received: by mail-lj1-x232.google.com with SMTP id
 38308e7fff4ca-3a772ec8389so3574251fa.3
 for <82020 <at> debbugs.gnu.org>; Fri, 16 Oct 2026 22:47:15 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1792216029; cv=none;
 d=google.com; s=arc-20260327;
 b=qETM/LaIC5E9OIqV2xSgXV7HKvECyzMmK3uSkwAMMh9nupU475PHKRAmyQX1gjSNzh
 b3JLUwCfaGqbzOx6AmnXg32Nd3Wid7un+zRYxR+bf/ul4o0DYuIFDry1X6XEAEw00drJ
 k/eh8BLm4IXP9Eo+6JCqphBN+c+yEig0DtVcRJG81fEgqaEXq9m/zJ9nie2YAwT58Ufi
 30KMgXzFNL6iAKWCI5WDFQH6F4MSzU8f0tm+uf7Z/RNR5582x5G3TukWnrAZdHkWqzxX
 Gn/YVsJurTGHKgf79QE0frEGYZSZ4DKB8UvRODfcpf3lVBECHuNfq/RnfR6tPV8Th9xf
 bxNQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
 s=arc-20260327; 
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:dkim-signature;
 bh=qEh6XjplBqsAyMMo3A/hugw+oyuX9sEyS9EMCT3XmuI=;
 fh=wd262WVgQMvINKN1aXOoa42/TbJaBy8v//NgIY9nvL4=;
 b=SEq1tH+qkc+eKI7HapmR84Ud+XEKtZqo2EUuZae1Wu+4BAJz317zTKLb28o8WNOIxC
 FtKEyGFY0O/xGrrrxDpWJcvaDoW/uKsfHbSldqil3cfUJgoo6MBI2wGQ8Ly1D6QUsO0b
 jyfgP0pVcKJp5TLlqcCz5ey8aDQ3fLwq0+UTmL2lfb0jnp+R56WLYMkShWo25Om9qS4L
 3SzycrRBcPgIWCr6jalmCrvNikjYz5Q+a3NbTIP1f9s/4C5qO1anaVEDCyFv3bPZ9J1G
 c5LMtRHXtm0C6O2kPvO6BclbWjDtJ1PI3+IXF/31kYxr4BjI5y/zwp+gcdDfzOymwWV/
 oyDA==; darn=debbugs.gnu.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1792216029; x=1792820829; darn=debbugs.gnu.org;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:from:to:cc:subject:date:message-id:reply-to
 :content-type; bh=qEh6XjplBqsAyMMo3A/hugw+oyuX9sEyS9EMCT3XmuI=;
 b=LvRYw52vO4wKGoeJnQE/CmV40NVcnleHc0cN/ljBAl+Bj3XQKfxnLPSPsuJMrrPrad
 SYeqj4UZFS8l4vSrReQZLIsNriQVvsM1WTOO/GBU/02cIJITN/uSgWPB6JV5dfOof5/F
 hGHz1m0sJLkkSrw6s9kwkxo9PkG5Ek6cMSvhLz38TO2oX6rUjKJ+tSeKr5Oyw1z5gylp
 GHIpnFMiZhVpTwbYPSgl4l2qPiLxdzdXJDhjPYZZulI+7FpeH+D9A9gL2d1Q7NXTr2m/
 6qGMDX4NTP2nWVde8yMIjEer0FrbmKR4MrMlK5CQiR0oL9yCm9cJLEFLKhDWNo2/gewX
 kmww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20260707; t=1792216029; x=1792820829;
 h=content-type:cc:to:subject:message-id:date:from:in-reply-to
 :references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to:content-type;
 bh=qEh6XjplBqsAyMMo3A/hugw+oyuX9sEyS9EMCT3XmuI=;
 b=oazQ/MFXsszAqCNwCr+42aJMpy6KUbpVbRK6K0HPKCYoZjrEVoZRl6nDSBOMIN/YIg
 DMRoq0U1MCE1PN6O/5nDFTVTrAyfpyeVJVCAY6xNCqVSglDZ822nUNZ/UcqzwkQNLKal
 WGjRgL1QCYChSIHVqw9QEqXPlS2V2SvBQHvNJeoA52GKs0OvQqL9mdG6XXnNEdmpl+Nw
 QCsKqz3SmL0dWI5mG/9/xIxVcVdnzfees95b+sHxzwQpoawl9xrcQWNzBIgnr+bMi4GG
 gX6YFc5qeH1v/wjllLYnJCZBx6fUSXRct73RIwejAZWrUDI77AG+D064mSmno+e8cfui
 RPeA==
X-Forwarded-Encrypted: i=1;
 AKwUvBz5KbRb67cxZFWRBHEQ06gGED+5w4erHF/2NOvYCxZdRL3RVSZqSzlmq4hyxrScqxx2/aQiJQ==@debbugs.gnu.org
X-Gm-Message-State: AFq9FYJRYBcXFXeWWpdsjryB9Az/24WmlLODHGh/3Cl1svZHqifgqppL
 o/0/aUaWVjD3canTl5JQ4ZcjqL1zgkEUfKochH49DG/qn42SUGBy9SiCmfanG4R5hfwuMDPE60I
 4IujEfWBEgVfb7sGyfmx+ZEdGSJ5/N4c=
X-Gm-Gg: AYBFou1hUWg3oCZ1sqLbJ+4clwzubGI1iyv42JED4Afi2v72X1iDab7FGn/DqszlZUD
 DaVoU5mJeXjHTZIFef7zRwDQDqTGs1zwBaOF3jpviOyBhLXrIthR+BM1BZhC1Gz/MbVhJSQGEf2
 Ye+DnxEXdM9dWZxvRT74uEGGC6GvhcKEE2Exo8LNgBhlf2SS2xp5yLKCxTQIxtauCF21LLZf3Vq
 0PK8spVra5NrQ5ZZCiwH5jeHMvhhtCTsHTP+KzI8eqtOqR3XFxuToJT+TwCBqfQalKrJz2wiWhR
 IUXEhWGnrcO2z8U18mr1Z4yc+95M4iwS9Ahvo6qWLD/arjr4UF0BfnKpaDQbvlyfk76dtFGSnt/
 p6fiBLP+8R5ZRKZjnlrm5uzmH18cbfklvRVxM3GbYWx1TV1Xf6syAX1NeSohbeTlz9FD+A5c=
X-Received: by 2002:a05:651c:54f:b0:3aa:ee7a:5466 with SMTP id
 38308e7fff4ca-3ab292c9eb2mr3595531fa.16.1792216028731; Fri, 16 Oct 2026
 22:47:08 -0700 (PDT)
MIME-Version: 1.0
References: <87wlrsz268.fsf@HIDDEN> <86y0c8mb5l.fsf@HIDDEN>
In-Reply-To: <86y0c8mb5l.fsf@HIDDEN>
From: Wilhelm Kirschbaum <wkirschbaum@HIDDEN>
Date: Sat, 17 Oct 2026 07:46:55 +0200
X-Gm-Features: AclHuK8wtptrasIVDmdEp5SnKFBHAcHkuHPVbFWX4arwV1zfAyELFVMW-vnyplk
Message-ID: <CAOS0-36wjJXEp-xDk6GpCfKjFOMPcxbbvor01JPu1SLjNMF+=A@HIDDEN>
Subject: Re: bug#82020: 31.1;
 elixir-ts-mode does not handle paragraph fill in heredocs
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000c0dce1065e02cff6"
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 82020
Cc: Joram Schrijver <i@HIDDEN>, Stefan Monnier <monnier@HIDDEN>,
 82020 <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: 0.0 (/)

--000000000000c0dce1065e02cff6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Joram

It was intentional and you can find the conversation about this change
here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62536.

I can look into this today and tomorrow to see if we can come up with a
better solution perhaps.

Regards,
Wilhelm

On Thu, Oct 8, 2026 at 6:04=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote:

> > Date: Thu, 08 Oct 2026 16:39:59 +0200
> > From: Joram Schrijver via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> >
> >
> > When using elixir-ts-mode, `prog-fill-reindent-defun' (M-q) works as
> > expected to reindent a defun and to fill paragraphs in comments and in
> > strings, but inside a heredoc (""") it does not fill paragraphs.
> >
> > I investigated the issue and found that when treesit-fill-reindent-defu=
n
> > calls prog--text-at-point-p it returns nil. This in turn seems to be
> > caused by elixir-ts--syntax-propertize making it so that syntax-ppss no
> > longer considers the text inside the heredoc to be inside a string.
> >
> > Indeed when I remove the following line from the definition of
> > elixir-ts-mode the problem is fixed:
> >
> >   (setq-local syntax-propertize-function #'elixir-ts--syntax-propertize=
)
> >
> > Unfortunately setting syntax-propertize-function back to nil through
> > elixir-ts-mode-hook does have the same effect, I'm not sure why.
> >
> > I don't really know why elixir-ts-mode sets syntax-propertize-function;
> > removing it does not seem to break anything, but I may just not use
> > whatever requires it.
> >
> > In addition to changing the above I've also added the following through
> > elixir-ts-mode-hook:
> >
> >   ;; paragraph-{start,separate} are set so that multi-line strings
> >   ;; keep the quotes on separate lines.
> >   (setq-local paragraph-start "\f\\|[ \t]*$\\|[ \t]*\"\"\"[ \t]*$")
> >   (setq-local paragraph-separate "[ \t\f]*$\\|[ \t]*\"\"\"[ \t]*$")
> >
> > Since Elixir requires the opening """ to be at the end of its line and
> > the closing """ to be on its own line it would be nice to include
> > something like this in elixir-ts-mode proper.
>
> Thanks, I've added Wilhelm, the author of elixir-ts-mode, and Stefan
> to the discussion.
>
> > In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,
> > cairo version 1.18.4)
> > Windowing system distributor 'The X.Org Foundation', version
> 11.0.12401013
> > System Description: Arch Linux
> >
> > Configured using:
> >  'configure --with-x-toolkit=3Dgtk3 --sysconfdir=3D/etc --prefix=3D/usr
> >  --libexecdir=3D/usr/lib --localstatedir=3D/var --disable-build-details
> >  --with-cairo --with-harfbuzz --with-libsystemd --with-modules
> >  --with-native-compilation=3Daot --with-tree-sitter 'CFLAGS=3D-march=3D=
x86-64
> >  -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=
=3D3
> >  -Wformat -Werror=3Dformat-security -fstack-clash-protection
> >  -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -=
g
> >  -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flto=3Dau=
to'
> >  'LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
> >  -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto''
> >
> > Configured features:
> > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
> > LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
> > PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
> > TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB
> >
> > Important settings:
> >   value of $LC_TIME: nl_NL.UTF-8
> >   value of $LANG: en_US.UTF-8
> >   locale-coding-system: utf-8-unix
> >
> > Major mode: Elixir
> >
> > 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
> >   font-lock-mode: t
> >   blink-cursor-mode: t
> >   minibuffer-nonselected-mode: t
> >   minibuffer-regexp-mode: 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:
> > (help-mode pp shadow sort mail-extr emacsbug lisp-mnt 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 subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev
> > gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
> > ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-changes
> > easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode
> > treesit comp-run bytecomp byte-compile comp-common rx warnings icons
> > cl-loaddefs cl-lib 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 touch-screen tool-bar dnd fontse=
t
> > 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-generi=
c
> > 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 gtk
> > x-toolkit xinput2 x multi-tty move-toolbar make-network-process
> > tty-child-frames native-compile emacs)
> >
> > Memory information:
> > ((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)
> >  (string-bytes 1 621920) (vectors 16 11839)
> >  (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 655 12)
> >  (buffers 1064 14))
> >
> > --
> >   Joram
> >
> >
> >
> >
>

--000000000000c0dce1065e02cff6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Joram=C2=A0</div><div><br></div><div>It was intent=
ional and you can find the conversation about this change here:=C2=A0<a hre=
f=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62536">https://debbugs=
.gnu.org/cgi/bugreport.cgi?bug=3D62536</a>.=C2=A0</div><div><br></div><div>=
I can look into this today and tomorrow to see if we can come up with a bet=
ter solution perhaps.=C2=A0</div><div><br></div><div>Regards,=C2=A0</div><d=
iv>Wilhelm</div></div><br><div class=3D"gmail_quote gmail_quote_container">=
<div dir=3D"ltr" class=3D"gmail_attr">On Thu, Oct 8, 2026 at 6:04=E2=80=AFP=
M Eli Zaretskii &lt;<a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>&gt; wr=
ote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">&gt; Date: =
Thu, 08 Oct 2026 16:39:59 +0200<br>
&gt; From: Joram Schrijver via &quot;Bug reports for GNU Emacs,<br>
&gt;=C2=A0 the Swiss army knife of text editors&quot; &lt;<a href=3D"mailto=
:bug-gnu-emacs@HIDDEN" target=3D"_blank">bug-gnu-emacs@HIDDEN</a>&gt;<br>
&gt; <br>
&gt; <br>
&gt; When using elixir-ts-mode, `prog-fill-reindent-defun&#39; (M-q) works =
as<br>
&gt; expected to reindent a defun and to fill paragraphs in comments and in=
<br>
&gt; strings, but inside a heredoc (&quot;&quot;&quot;) it does not fill pa=
ragraphs.<br>
&gt; <br>
&gt; I investigated the issue and found that when treesit-fill-reindent-def=
un<br>
&gt; calls prog--text-at-point-p it returns nil. This in turn seems to be<b=
r>
&gt; caused by elixir-ts--syntax-propertize making it so that syntax-ppss n=
o<br>
&gt; longer considers the text inside the heredoc to be inside a string.<br=
>
&gt; <br>
&gt; Indeed when I remove the following line from the definition of<br>
&gt; elixir-ts-mode the problem is fixed:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0(setq-local syntax-propertize-function #&#39;elixir-ts--sy=
ntax-propertize)<br>
&gt; <br>
&gt; Unfortunately setting syntax-propertize-function back to nil through<b=
r>
&gt; elixir-ts-mode-hook does have the same effect, I&#39;m not sure why.<b=
r>
&gt; <br>
&gt; I don&#39;t really know why elixir-ts-mode sets syntax-propertize-func=
tion;<br>
&gt; removing it does not seem to break anything, but I may just not use<br=
>
&gt; whatever requires it.<br>
&gt; <br>
&gt; In addition to changing the above I&#39;ve also added the following th=
rough<br>
&gt; elixir-ts-mode-hook:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0;; paragraph-{start,separate} are set so that multi-line s=
trings<br>
&gt;=C2=A0 =C2=A0;; keep the quotes on separate lines.<br>
&gt;=C2=A0 =C2=A0(setq-local paragraph-start &quot;\f\\|[ \t]*$\\|[ \t]*\&q=
uot;\&quot;\&quot;[ \t]*$&quot;)<br>
&gt;=C2=A0 =C2=A0(setq-local paragraph-separate &quot;[ \t\f]*$\\|[ \t]*\&q=
uot;\&quot;\&quot;[ \t]*$&quot;)<br>
&gt; <br>
&gt; Since Elixir requires the opening &quot;&quot;&quot; to be at the end =
of its line and<br>
&gt; the closing &quot;&quot;&quot; to be on its own line it would be nice =
to include<br>
&gt; something like this in elixir-ts-mode proper.<br>
<br>
Thanks, I&#39;ve added Wilhelm, the author of elixir-ts-mode, and Stefan<br=
>
to the discussion.<br>
<br>
&gt; In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,=
<br>
&gt; cairo version 1.18.4)<br>
&gt; Windowing system distributor &#39;The X.Org Foundation&#39;, version 1=
1.0.12401013<br>
&gt; System Description: Arch Linux<br>
&gt; <br>
&gt; Configured using:<br>
&gt;=C2=A0 &#39;configure --with-x-toolkit=3Dgtk3 --sysconfdir=3D/etc --pre=
fix=3D/usr<br>
&gt;=C2=A0 --libexecdir=3D/usr/lib --localstatedir=3D/var --disable-build-d=
etails<br>
&gt;=C2=A0 --with-cairo --with-harfbuzz --with-libsystemd --with-modules<br=
>
&gt;=C2=A0 --with-native-compilation=3Daot --with-tree-sitter &#39;CFLAGS=
=3D-march=3Dx86-64<br>
&gt;=C2=A0 -mtune=3Dgeneric -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_=
SOURCE=3D3<br>
&gt;=C2=A0 -Wformat -Werror=3Dformat-security -fstack-clash-protection<br>
&gt;=C2=A0 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-poi=
nter -g<br>
&gt;=C2=A0 -ffile-prefix-map=3D/build/emacs/src=3D/usr/src/debug/emacs -flt=
o=3Dauto&#39;<br>
&gt;=C2=A0 &#39;LDFLAGS=3D-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,=
relro<br>
&gt;=C2=A0 -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=3Dauto&#39;&#39;<br=
>
&gt; <br>
&gt; Configured features:<br>
&gt; ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG<br=
>
&gt; LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY<br>
&gt; PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BAR=
S<br>
&gt; TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB<br=
>
&gt; <br>
&gt; Important settings:<br>
&gt;=C2=A0 =C2=A0value of $LC_TIME: nl_NL.UTF-8<br>
&gt;=C2=A0 =C2=A0value of $LANG: en_US.UTF-8<br>
&gt;=C2=A0 =C2=A0locale-coding-system: utf-8-unix<br>
&gt; <br>
&gt; Major mode: Elixir<br>
&gt; <br>
&gt; Minor modes in effect:<br>
&gt;=C2=A0 =C2=A0tooltip-mode: t<br>
&gt;=C2=A0 =C2=A0global-eldoc-mode: t<br>
&gt;=C2=A0 =C2=A0show-paren-mode: t<br>
&gt;=C2=A0 =C2=A0electric-indent-mode: t<br>
&gt;=C2=A0 =C2=A0mouse-wheel-mode: t<br>
&gt;=C2=A0 =C2=A0tool-bar-mode: t<br>
&gt;=C2=A0 =C2=A0menu-bar-mode: t<br>
&gt;=C2=A0 =C2=A0file-name-shadow-mode: t<br>
&gt;=C2=A0 =C2=A0global-font-lock-mode: t<br>
&gt;=C2=A0 =C2=A0font-lock-mode: t<br>
&gt;=C2=A0 =C2=A0blink-cursor-mode: t<br>
&gt;=C2=A0 =C2=A0minibuffer-nonselected-mode: t<br>
&gt;=C2=A0 =C2=A0minibuffer-regexp-mode: t<br>
&gt;=C2=A0 =C2=A0line-number-mode: t<br>
&gt;=C2=A0 =C2=A0indent-tabs-mode: t<br>
&gt;=C2=A0 =C2=A0transient-mark-mode: t<br>
&gt;=C2=A0 =C2=A0auto-composition-mode: t<br>
&gt;=C2=A0 =C2=A0auto-encryption-mode: t<br>
&gt;=C2=A0 =C2=A0auto-compression-mode: t<br>
&gt; <br>
&gt; Load-path shadows:<br>
&gt; None found.<br>
&gt; <br>
&gt; Features:<br>
&gt; (help-mode pp shadow sort mail-extr emacsbug lisp-mnt message mailcap<=
br>
&gt; yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache=
<br>
&gt; epa derived epg rfc6068 epg-config gnus-util text-property-search<br>
&gt; time-date subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev<br=
>
&gt; gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045<br>
&gt; ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-change=
s<br>
&gt; easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode<br=
>
&gt; treesit comp-run bytecomp byte-compile comp-common rx warnings icons<b=
r>
&gt; cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric<b=
r>
&gt; uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel<br>
&gt; term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fonts=
et<br>
&gt; image regexp-opt fringe tabulated-list replace newcomment text-mode<br=
>
&gt; lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch=
<br>
&gt; easymenu timer select scroll-bar mouse jit-lock font-lock syntax<br>
&gt; font-core term/tty-colors frame minibuffer nadvice seq simple cl-gener=
ic<br>
&gt; indonesian philippine cham georgian utf-8-lang misc-lang vietnamese<br=
>
&gt; tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew gree=
k<br>
&gt; romanian slovak czech european ethiopic indian cyrillic chinese<br>
&gt; composite emoji-zwj charscript charprop case-table epa-hook<br>
&gt; jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddef=
s<br>
&gt; theme-loaddefs faces cus-face macroexp files window text-properties<br=
>
&gt; overlay sha1 md5 base64 format env code-pages mule custom widget keyma=
p<br>
&gt; hashtable-print-readable backquote threads dbusbind inotify lcms2<br>
&gt; dynamic-setting system-font-setting font-render-setting cairo gtk<br>
&gt; x-toolkit xinput2 x multi-tty move-toolbar make-network-process<br>
&gt; tty-child-frames native-compile emacs)<br>
&gt; <br>
&gt; Memory information:<br>
&gt; ((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)<=
br>
&gt;=C2=A0 (string-bytes 1 621920) (vectors 16 11839)<br>
&gt;=C2=A0 (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 65=
5 12)<br>
&gt;=C2=A0 (buffers 1064 14))<br>
&gt; <br>
&gt; -- <br>
&gt;=C2=A0 =C2=A0Joram<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
</blockquote></div>

--000000000000c0dce1065e02cff6--




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

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


Received: (at 82020) by debbugs.gnu.org; 8 Oct 2026 16:04:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 08 12:04:51 2026
Received: from localhost ([127.0.0.1]:41437 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xEqbr-00018m-Lv
	for submit <at> debbugs.gnu.org; Thu, 08 Oct 2026 12:04:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52004)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1xEqbg-00017y-St
 for 82020 <at> debbugs.gnu.org; Thu, 08 Oct 2026 12:04:40 -0400
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 1xEqbZ-0003m7-GL; Thu, 08 Oct 2026 12:04:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=bRqlzeXIf9QMnqurqwHSiiUk7VhTbQbPOOmq/q/qJXs=; b=ngh/Zm59nRoO
 ZlPAXnTSiXNzWd1K3N8LEvlX6AvGFFYezzX/GsVx2VUhShJr3/qCpgGc77z684XzBDfCnehVVSwwV
 glsaiHLFJOj1SB1yL+ysJmeNHi7kqxjrZfIdez4uqUZO2/DejIOaDzdlO8e/IHrmeTXpIJcl4P1Yj
 kfuhsxVdx4QXWL2tbnni6QGuPhNEhwNdiOyUpDyzXhj8xSkBLoqimH6jqN75QBos1peHQa6SB9epr
 ErzPnh20Ycop5cWWmAL4hjXbMf4s3E4R1BaljV/Zjp9Xzkn2V4VjQaSLdjBU/nfmnF6gnIvvKyJZ+
 auWNJgRrwlCs9oSXj38Pzg==;
Date: Thu, 08 Oct 2026 19:04:22 +0300
Message-Id: <86y0c8mb5l.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Joram Schrijver <i@HIDDEN>, Wilhelm H Kirschbaum <wkirschbaum@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <87wlrsz268.fsf@HIDDEN> (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#82020: 31.1;
 elixir-ts-mode does not handle paragraph fill in heredocs
References: <87wlrsz268.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 82020
Cc: 82020 <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: Thu, 08 Oct 2026 16:39:59 +0200
> From: Joram Schrijver via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 
> When using elixir-ts-mode, `prog-fill-reindent-defun' (M-q) works as
> expected to reindent a defun and to fill paragraphs in comments and in
> strings, but inside a heredoc (""") it does not fill paragraphs.
> 
> I investigated the issue and found that when treesit-fill-reindent-defun
> calls prog--text-at-point-p it returns nil. This in turn seems to be
> caused by elixir-ts--syntax-propertize making it so that syntax-ppss no
> longer considers the text inside the heredoc to be inside a string.
> 
> Indeed when I remove the following line from the definition of
> elixir-ts-mode the problem is fixed:
> 
>   (setq-local syntax-propertize-function #'elixir-ts--syntax-propertize)
> 
> Unfortunately setting syntax-propertize-function back to nil through
> elixir-ts-mode-hook does have the same effect, I'm not sure why.
> 
> I don't really know why elixir-ts-mode sets syntax-propertize-function;
> removing it does not seem to break anything, but I may just not use
> whatever requires it.
> 
> In addition to changing the above I've also added the following through
> elixir-ts-mode-hook:
> 
>   ;; paragraph-{start,separate} are set so that multi-line strings
>   ;; keep the quotes on separate lines.
>   (setq-local paragraph-start "\f\\|[ \t]*$\\|[ \t]*\"\"\"[ \t]*$")
>   (setq-local paragraph-separate "[ \t\f]*$\\|[ \t]*\"\"\"[ \t]*$")
> 
> Since Elixir requires the opening """ to be at the end of its line and
> the closing """ to be on its own line it would be nice to include
> something like this in elixir-ts-mode proper.

Thanks, I've added Wilhelm, the author of elixir-ts-mode, and Stefan
to the discussion.

> In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,
> cairo version 1.18.4)
> Windowing system distributor 'The X.Org Foundation', version 11.0.12401013
> System Description: Arch Linux
> 
> Configured using:
>  'configure --with-x-toolkit=gtk3 --sysconfdir=/etc --prefix=/usr
>  --libexecdir=/usr/lib --localstatedir=/var --disable-build-details
>  --with-cairo --with-harfbuzz --with-libsystemd --with-modules
>  --with-native-compilation=aot --with-tree-sitter 'CFLAGS=-march=x86-64
>  -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3
>  -Wformat -Werror=format-security -fstack-clash-protection
>  -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g
>  -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto'
>  'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
>  -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto''
> 
> Configured features:
> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
> LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
> PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
> TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB
> 
> Important settings:
>   value of $LC_TIME: nl_NL.UTF-8
>   value of $LANG: en_US.UTF-8
>   locale-coding-system: utf-8-unix
> 
> Major mode: Elixir
> 
> 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
>   font-lock-mode: t
>   blink-cursor-mode: t
>   minibuffer-nonselected-mode: t
>   minibuffer-regexp-mode: 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:
> (help-mode pp shadow sort mail-extr emacsbug lisp-mnt 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 subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev
> gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
> ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-changes
> easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode
> treesit comp-run bytecomp byte-compile comp-common rx warnings icons
> cl-loaddefs cl-lib 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 touch-screen 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 gtk
> x-toolkit xinput2 x multi-tty move-toolbar make-network-process
> tty-child-frames native-compile emacs)
> 
> Memory information:
> ((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)
>  (string-bytes 1 621920) (vectors 16 11839)
>  (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 655 12)
>  (buffers 1064 14))
> 
> -- 
>   Joram
> 
> 
> 
> 




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

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


Received: (at submit) by debbugs.gnu.org; 8 Oct 2026 14:49:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 08 10:49:29 2026
Received: from localhost ([127.0.0.1]:53519 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1xEpQv-0003i2-0V
	for submit <at> debbugs.gnu.org; Thu, 08 Oct 2026 10:49:29 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:42728)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <i@HIDDEN>) id 1xEpIE-00033B-BF
 for submit <at> debbugs.gnu.org; Thu, 08 Oct 2026 10:40:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <i@HIDDEN>) id 1xEpI8-0002aX-0g
 for bug-gnu-emacs@HIDDEN; Thu, 08 Oct 2026 10:40:16 -0400
Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <i@HIDDEN>) id 1xEpI2-0002V9-A9
 for bug-gnu-emacs@HIDDEN; Thu, 08 Oct 2026 10:40:15 -0400
Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41])
 by mailfout.phl.internal (Postfix) with ESMTP id 7626CEC01AF
 for <bug-gnu-emacs@HIDDEN>; Thu,  8 Oct 2026 10:40:07 -0400 (EDT)
Received: from phl-frontend-03 ([10.202.2.162])
 by phl-compute-01.internal (MEProxy); Thu, 08 Oct 2026 10:40:07 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joram.io; 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=1791470407; x=1791556807; bh=rlEae+/Sx9YajM2Up24dygQtZJXdDZuI
 9naL9qt5Zqk=; b=kHEwpRDYHHxtIlM/BOun/tM9XebF5D4hrw/ffl9eGu+jx1cu
 oD17irRoG3G7tQeLeJEkMHkdGlUdZal2PtmtSLraUNjUyum9hWwcQB2Zx2hSqC8o
 xcDOEsvSoMNV+GEWm++5lc8QE8pQ3oTg45z/uWF6Td6uZAjx65s/2wWvA//yLV6f
 nwhvTT64Slt4Hl7EbZbuRkGWGxuBUJ2UG4eZYoVEgcJkni7Aj6MaRH9jzmMYl4HO
 GB4KTeRfgSxHwsoEDJUsyzR7TOrnlgTiC1B8rY6XOrzjAK8h2Qa4s3NRDoFXmvQN
 oRYRjZLarcFqm9l9+/+28QdpWrcrY9Krn5QYCA==
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-sender:x-me-sender:x-sasl-enc; s=fm2; t=1791470407; x=
 1791556807; bh=rlEae+/Sx9YajM2Up24dygQtZJXdDZuI9naL9qt5Zqk=; b=g
 GbkYZ6eLlIzZN/L4IPotksN9wBGHwLM7IgLnGIXU/X6aPE3iWNR3BLPPqPQHY01u
 hbPgMZXDMeZ5Wl+S8EDuHr1zNH3SRP03YvyuUXPB9aB7D9BTkfS80GSqERV3HMlv
 nQ3qN8pz2dEVDIb+zX2wnbnv8eGc1JtirEg4YytS8w7mH7pLKni/9q1NTmYCAwOK
 /5UOMnfk4ryOEqaDEcKlaHlwalGl737xxdQS4VY+0pluIRpKt+9X/BrJDsaxarLt
 xfYHDoal7LSHFoHZpZstWQ2iQ1SX8y1HK0ffEEu8UT1MJxx+4Szi6ux9cl9qbUpt
 IQa7keArsEImp/Bsw5DCQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
 repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
 action=sign d=joram.io a=rsa-sha256;
DKIM2-Signature: i=1; m=1; t=1791470407; d=joram.io;
 mf=PGlAam9yYW0uaW8+; rt=PGJ1Zy1nbnUtZW1hY3NAZ251Lm9yZz4=;
 s=fm2:rsa-sha256:ecMxk5WRj+L7/cmzaR27rPvWmvJ+y+ltfiWojggCl2DBudS
 pe8eaoLhapcpNzBEqeuu5E42w8r89oZINJaJJVVoTFsvtovjAy5Mfnh77DHa/kGN
 wtTx6WIwTkul3tc4r5GuYpkLSIWmfhDybaNPRBLtSwyO5zfPHPae+9WPWTkVNud3
 3Hh5jfaQP53es5OHVn+pE7jgXfMaLyRkv7zc3nxHNct6zDPxagZc5k61wsUxDOt3
 Zfjw+BFcQf84T/J8HfWc8pqMDgRPOc+pEKL1tV8d1w2dYEfnkU/hkty/zbEUK4n1
 KL51Q1LWs10x0/QcDAtNJPgVfVP7X1kAvkpM9OA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
 repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
 action=mi-m=1; hc=8;
 hn=content-type,date,feedback-id,from,message-id,mime-version,
 subject,to;
Message-Instance: m=1;
 h=sha256:Tx3Bwtruwx4eIxKXDG2X5u0CncDbOWk4jqGDSTSuMTk=:tlAD6/5vHhmCczK/CkF8CICcdT52zHvVjxFzoqWYqvQ=;
X-ME-Sender: <xms:R6vHaqYVcPXX7fjwHVRWLu157cVhx78v-Sn27ATSnjfm5cHe5VLsHg>
 <xme:R6vHajTt0Y9Rwg27utS6ytjfwyk6EfSp4biL7GGtvog34E4310mylIAsqurcAjxTw
 ypttwquF7HFtkrnnOOWAcV5LXRzvGrrlkH5hmpbTOu9LvGT9aU5p70>
X-ME-Received: <xmr:R6vHagCEH6SmosPt0oaQrDMyjGXJhj9SZ6E6p_byGRXVD9Tgs361VA>
X-ME-Proxy-Cause: dmFkZTFSOjWkXDJ5v9CcOsw/OD9MouONpS31i1RKYuM0xlsuPjoyfAIC82ou/whgbtXu+D
 aiZtrbzQV1jlSnQF40vyC8e8VkeQUb6R6+rQCmYj05yKzBJhr7Hrf97wZdjIClZyaOUWwE
 FOO+qevFS8Z465g8yyWsIYtFWlmgv3slRCmIYuZqm1aftQ5Cx5ClOog/28YQpq8Eb6aUAF
 Ov3wSmLf50ty7Y61YUqcPitv4fXah+6l2MQj8Qvyl1QbhbSzhXFWA00KDKX3NCtIbCr5q6
 rlEI3bI5C81t5/q7Htwnah5y1fuAhGUxlVGLs0u4D1fuKadKmmX2ikzVrVngN7QhJpg9Vm
 2wt5sDGOLVU9fDX7CqpHHS+oJncMi2xetgn9N66KkmbijnwyLOgRKtl6neIxD1Sv2WZat4
 lLZxrmHLC9ewX2YygNnCobBZ9Plpc2miQgYT9g6OnPPSselViLkMtHsy583Wto7OdzVJzJ
 T3czRzxpVgu0uTvIwd1Ul7Y8Er2SQyxa3BJYbaNpNUoEDsi/7EgJ4i+8NMDdg+mQE6jDZp
 ZKCta++E6jSRmMqbyCE1/xTQ6XAkCNhC7eM8iMSwJjhJ82gdOsvyTB7zPpkJ97wB1L4KRw
 Ii7w2j7eeiuG95ln8hVcboKggCrnRI7dK3pmGDl2M4czYbbY2VjhB63GoQMw
X-ME-Proxy: <xmx:R6vHapdIo4jpXOUaHDv6BnbUoUgG3FAkiizwFpw_VETMPGWJukwtVA>
 <xmx:R6vHapP9Ezpp1YakbHq0OoRyf_W7cnkVfg_ceSwniqVnP1Sk2hF6aA>
 <xmx:R6vHar6KTlbD0aCVRW9paB5WKBxdaZeG4nLoIwiDgyPfyqJ014tW5g>
 <xmx:R6vHalK8ZJwmLXrgH9yrpRxHzdlEqUEfQEwR62DHzEWCdHWlPfMOug>
 <xmx:R6vHapKiY8ozqs2f0w9oq_F9TjzI8bB-cQp6AnbBd-LrYUSensh8jGJh>
Feedback-ID: if2484080:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Thu, 8 Oct 2026 10:40:06 -0400 (EDT)
From: Joram Schrijver <i@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.1; elixir-ts-mode does not handle paragraph fill in heredocs
X-Debbugs-Cc: 
Date: Thu, 08 Oct 2026 16:39:59 +0200
Message-ID: <87wlrsz268.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=103.168.172.150; envelope-from=i@HIDDEN;
 helo=fout-a7-smtp.messagingengine.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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,
 RCVD_IN_MSPIKE_H2=0.001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 08 Oct 2026 10:49:10 -0400
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.0 (/)


When using elixir-ts-mode, `prog-fill-reindent-defun' (M-q) works as
expected to reindent a defun and to fill paragraphs in comments and in
strings, but inside a heredoc (""") it does not fill paragraphs.

I investigated the issue and found that when treesit-fill-reindent-defun
calls prog--text-at-point-p it returns nil. This in turn seems to be
caused by elixir-ts--syntax-propertize making it so that syntax-ppss no
longer considers the text inside the heredoc to be inside a string.

Indeed when I remove the following line from the definition of
elixir-ts-mode the problem is fixed:

  (setq-local syntax-propertize-function #'elixir-ts--syntax-propertize)

Unfortunately setting syntax-propertize-function back to nil through
elixir-ts-mode-hook does have the same effect, I'm not sure why.

I don't really know why elixir-ts-mode sets syntax-propertize-function;
removing it does not seem to break anything, but I may just not use
whatever requires it.

In addition to changing the above I've also added the following through
elixir-ts-mode-hook:

  ;; paragraph-{start,separate} are set so that multi-line strings
  ;; keep the quotes on separate lines.
  (setq-local paragraph-start "\f\\|[ \t]*$\\|[ \t]*\"\"\"[ \t]*$")
  (setq-local paragraph-separate "[ \t\f]*$\\|[ \t]*\"\"\"[ \t]*$")

Since Elixir requires the opening """ to be at the end of its line and
the closing """ to be on its own line it would be nice to include
something like this in elixir-ts-mode proper.


In GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.52,
cairo version 1.18.4)
Windowing system distributor 'The X.Org Foundation', version 11.0.12401013
System Description: Arch Linux

Configured using:
 'configure --with-x-toolkit=gtk3 --sysconfdir=/etc --prefix=/usr
 --libexecdir=/usr/lib --localstatedir=/var --disable-build-details
 --with-cairo --with-harfbuzz --with-libsystemd --with-modules
 --with-native-compilation=aot --with-tree-sitter 'CFLAGS=-march=x86-64
 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3
 -Wformat -Werror=format-security -fstack-clash-protection
 -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g
 -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto'
 'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
 -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto''

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

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

Major mode: Elixir

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
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-nonselected-mode: t
  minibuffer-regexp-mode: 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:
(help-mode pp shadow sort mail-extr emacsbug lisp-mnt 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 subr-x mule-util mm-decode mm-bodies mm-encode mailabbrev
gmm-utils mailheader sendmail mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode track-changes
easy-mmode files-x vc-dispatcher cl-seq heex-ts-mode elixir-ts-mode
treesit comp-run bytecomp byte-compile comp-common rx warnings icons
cl-loaddefs cl-lib 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 touch-screen 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 gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
tty-child-frames native-compile emacs)

Memory information:
((conses 16 76305 26685) (symbols 48 7716 10) (strings 32 19639 2061)
 (string-bytes 1 621920) (vectors 16 11839)
 (vector-slots 8 168105 17122) (floats 8 32 135) (intervals 56 655 12)
 (buffers 1064 14))

-- 
  Joram




Acknowledgement sent to Joram Schrijver <i@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#82020; 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: Sun, 25 Oct 2026 11:30:02 UTC

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