From unknown Mon Aug 18 18:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72116: 30.0.60; Filling c-ts-mode documentation is broken Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2024 18:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 72116@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172098140322429 (code B ref -1); Sun, 14 Jul 2024 18:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jul 2024 18:23:23 +0000 Received: from localhost ([127.0.0.1]:58547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT3sY-0005pg-W2 for submit@debbugs.gnu.org; Sun, 14 Jul 2024 14:23:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:42352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT3sX-0005pZ-DT for submit@debbugs.gnu.org; Sun, 14 Jul 2024 14:23:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT3sV-0000wi-K7 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 14:23:19 -0400 Received: from mail.reprendre.net ([2001:910:1410:501::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT3sT-00056u-0k for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 14:23:19 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 72E842C93D9 for ; Sun, 14 Jul 2024 20:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=dkim; t=1720981390; h=from:subject:date:message-id:to:mime-version:content-type; bh=RBnlpisTTNitL/n4Qi8oDOBmS0mXffhnx8qrgazJT2w=; b=WAUNe62jH73duOWVr2/IbKKq68WWK5lrjihnJI6JBPUxqUfaT2LoGCq/mRBhcr1d0fKs4u 68qTV8IJjZECbpPeSbewl6RLPA0kGJbas6MP/YwiPYGZu85YmVEj8sMUddB8pIZnpnHydJ QJA+bKfhzgG2p1kl5xkI9p8uDNOVmvDucTe3joWAui1CBbw6I+vDjxnYOlT8M55OENpBNX DRso4EhEO2nbAv8546zf6Yhl3o6V10T1uxBOK6zF9zLoNTE6is4WxgjjOk7NHTyP7++hg3 G5Ffudo3+CSCFzlZPIi9ZOwUl/8sAbrcDYS+P+JUg4ZyZndJuW165vELWs4MbQ== From: Damien Cassou Date: Sun, 14 Jul 2024 20:23:09 +0200 Message-ID: <87cynf4yuq.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=2001:910:1410:501::1; envelope-from=damien@cassou.me; helo=mail.reprendre.net 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Filling documentation in a c-ts-mode buffer doesn't insert the " * " prefix. It works fine in c-mode. How to reproduce: 1. Install the C treesitter grammar 2. Start emacs with "emacs -Q" 3. Open the attached file in a new buffer 4. Run M-x c-ts-mode 5. Move point to the middle of line 2 6. Press M-q Expected: 2 lines of documentation, each one starting with " * " Actual: 2 lines of documentation, only the first one starting with " * " If you remove step 4 from the above instructions, c-mode will do the work just fine. The solution to this bug could help solve bug#71760. -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=foo.c /** * rsite nrsoti ernsto ierntires ntoritsen roitsenrsoit enrstoi ensrotie nrsit ensroit enrsoi ensrien */ int f() { } --=-=-=-- From unknown Mon Aug 18 18:01:54 2025 X-Loop: help-debbugs@gnu.org Subject: bug#72116: 30.0.60; Filling c-ts-mode documentation is broken Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2024 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Damien Cassou , Yuan Fu Cc: 72116@debbugs.gnu.org Received: via spool by 72116-submit@debbugs.gnu.org id=B72116.172098269624543 (code B ref 72116); Sun, 14 Jul 2024 18:45:02 +0000 Received: (at 72116) by debbugs.gnu.org; 14 Jul 2024 18:44:56 +0000 Received: from localhost ([127.0.0.1]:58578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT4DQ-0006Nn-1Q for submit@debbugs.gnu.org; Sun, 14 Jul 2024 14:44:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT4DO-0006NV-3s for 72116@debbugs.gnu.org; Sun, 14 Jul 2024 14:44:55 -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 ) id 1sT4DG-0003Du-6C; Sun, 14 Jul 2024 14:44:46 -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=xpRIPm+8ntHw+RSp+7FIR4trjHKiv5uJp0Zq53bHHtM=; b=h5jXb/CcMCUL GxOopiAP3qiG4jqNcuLKnVfQYu+N9KkXk0eNMDSKzF9W2o6i8YyQQkacUkEI9IgrLl+BXamCvDu2a Ro3WjkO48qs1LMCrJ/wDBUqc1luhSBOWjIYMC0XxDiVi7xioX+JB0alOQdO0fIww+39/Dfiz2UqlI jkzR4OnMmaeOYomT0SpZm+T6Frgaam6kImpgOe8qFszXOC9ZmRbF/2Jkfry8C1U99ZGx3a4E7jSVy 0Sujj2e57NzUIQh7y5Au89Lw3Q0c1gcJ04ybonhzoOkPOTUVmA5RLtZNyPzx4+GBI4WRbszIyyhRu c7O62R972l9Zbt2+1nRfdA==; Date: Sun, 14 Jul 2024 21:44:32 +0300 Message-Id: <86ttgrizjj.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87cynf4yuq.fsf@cassou.me> (message from Damien Cassou on Sun, 14 Jul 2024 20:23:09 +0200) References: <87cynf4yuq.fsf@cassou.me> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Damien Cassou > Date: Sun, 14 Jul 2024 20:23:09 +0200 > > Filling documentation in a c-ts-mode buffer doesn't insert the " * " > prefix. It works fine in c-mode. How to reproduce: > > 1. Install the C treesitter grammar > 2. Start emacs with "emacs -Q" > 3. Open the attached file in a new buffer > 4. Run M-x c-ts-mode > 5. Move point to the middle of line 2 > 6. Press M-q You can work around this by enabling auto-fill-mode. Then typing SPC at the end of the long line will produce the effect you want. Yuan, can you please look into this? > If you remove step 4 from the above instructions, c-mode will do the > work just fine. In c-mode, M-q is bound to a c-mode specific function, which makes no sens in c-ts-mode. We need a ts-specific solution (and we already seem to have it, it just isn't working in this case for some reason). From unknown Mon Aug 18 18:01:54 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Damien Cassou Subject: bug#72116: closed (Re: bug#72116: 30.0.60; Filling c-ts-mode documentation is broken) Message-ID: References: <2CE81709-A2EA-4855-830A-F05C69E8C922@gmail.com> <87cynf4yuq.fsf@cassou.me> X-Gnu-PR-Message: they-closed 72116 X-Gnu-PR-Package: emacs Reply-To: 72116@debbugs.gnu.org Date: Wed, 17 Jul 2024 04:20:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1721190001-4552-1" This is a multi-part message in MIME format... ------------=_1721190001-4552-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #72116: 30.0.60; Filling c-ts-mode documentation is broken which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 72116@debbugs.gnu.org. --=20 72116: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72116 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1721190001-4552-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 72116-done) by debbugs.gnu.org; 17 Jul 2024 04:19:52 +0000 Received: from localhost ([127.0.0.1]:34829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTw8u-0001Av-4Q for submit@debbugs.gnu.org; Wed, 17 Jul 2024 00:19:52 -0400 Received: from mail-oo1-f41.google.com ([209.85.161.41]:49532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sTw8q-0001Af-Va for 72116-done@debbugs.gnu.org; Wed, 17 Jul 2024 00:19:50 -0400 Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-5c791729c36so277715eaf.3 for <72116-done@debbugs.gnu.org>; Tue, 16 Jul 2024 21:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721189920; x=1721794720; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=d7A1mpAbbx2ieHlenJfBX7tmiRFdafC/BVyvU/3j+W8=; b=Q4l0mmQ6g3mJakX6i9Mu34LR59f220Hl+aX770cusRPgHfdcA9trFiLwM9ZdBPVovf M1C1Hb0yogGdsvs1JSyvLiey75voD3L0Y3LD6Z8n4dlDTGNLfqEvlp0IazlqSdM1Fc7+ YXl3lUqzoSidgZ/UjH3J8qK7/MAWSc+DjtK4Hj9qYrM8fJVLGrihJc8lafkhgA1pk5Jc GQJqkwBHI7qe11UuZySx+u3Cuq6H9IQTLKNW79v4jDGRM2JRAMHpnHOC4QGsq+Puq32k JzJdkEJKE6brOSpoUJph7SMECmjaAyupSGAwfSu8m1Ms5vmYXk4bP+UaxY+Qo7PAN7DQ N6nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721189920; x=1721794720; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d7A1mpAbbx2ieHlenJfBX7tmiRFdafC/BVyvU/3j+W8=; b=RQx4QbMBC9+jwnreeHpH55/nPNRA3nIk3rx4zIzlcos4GHEbR/0EIo1r6mpOJgdgpK jHKD8ZsHcWlK6io2gUJTRZkAtgcl9mtHWtSzWmH0QU0GD0dNmsYxNcC5x9cX1x7+lYhn R1gDqa6yAetWTEqhN3hDZ77fI80jZQbI6I59okVQnb+6Dp20bigYWN1Oa+zIK7jLB6mJ QGBkGRAD47IBvkSgGVMLv/DRHppimWgxKmdG0okoJoI6vxdY74dYlqyZcWzL5Nd1L8k7 fil192Y/Z8RV77yCAXQWbcCRwfq7Fxxbnz0EdWXvVuF6Fhhu/hJ531BFycDF48L7tFTv 9foQ== X-Forwarded-Encrypted: i=1; AJvYcCV6WirkfjCoKRcW3MSPZnr7omY6rmy46Jd35269fKtuRdH0MnynwOsfwR8Q8cPLFtZRxYjtuNeMoAGrBgXcQYxdH+xrihUmIFrq0w== X-Gm-Message-State: AOJu0YwJD7Kn7CcHFTOVLf6xmC0OOT4cM5ZB58hTheiGyxUZxp49+f0o /Xn16Bnt4dZDd5OWy9Xk4S0VGhNEHp+9Y1X/7YgEA6Y7iL7aYxd+ X-Google-Smtp-Source: AGHT+IFvNujSVhe3Wjl9r62tIjVSL74czmkPUhPjtiWQpIamy9hM40T9wfW8/REXKYidTqs2UnBcOg== X-Received: by 2002:a05:6358:5e06:b0:1aa:ac10:bfc3 with SMTP id e5c5f4694b2df-1ac9e63fb6fmr70214355d.11.1721189920093; Tue, 16 Jul 2024 21:18:40 -0700 (PDT) Received: from smtpclient.apple ([2601:646:8f81:6120:c931:36dd:b6ff:8bfc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fc0bc374c1sm68049035ad.182.2024.07.16.21.18.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2024 21:18:39 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: bug#72116: 30.0.60; Filling c-ts-mode documentation is broken From: Yuan Fu In-Reply-To: <86ttgrizjj.fsf@gnu.org> Date: Tue, 16 Jul 2024 21:18:27 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <2CE81709-A2EA-4855-830A-F05C69E8C922@gmail.com> References: <87cynf4yuq.fsf@cassou.me> <86ttgrizjj.fsf@gnu.org> To: Eli Zaretskii X-Mailer: Apple Mail (2.3774.600.62) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72116-done Cc: Damien Cassou , 72116-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > On Jul 14, 2024, at 11:44=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Damien Cassou >> Date: Sun, 14 Jul 2024 20:23:09 +0200 >>=20 >> Filling documentation in a c-ts-mode buffer doesn't insert the " * " >> prefix. It works fine in c-mode. How to reproduce: >>=20 >> 1. Install the C treesitter grammar >> 2. Start emacs with "emacs -Q" >> 3. Open the attached file in a new buffer >> 4. Run M-x c-ts-mode >> 5. Move point to the middle of line 2 >> 6. Press M-q >=20 > You can work around this by enabling auto-fill-mode. Then typing SPC > at the end of the long line will produce the effect you want. >=20 > Yuan, can you please look into this? Fixed and pushed to master. I didn=E2=80=99t push this to emacs-30 since = adaptive-filling is a fragile being, so let=E2=80=99s wait and see :-) >=20 >> If you remove step 4 from the above instructions, c-mode will do the >> work just fine. >=20 > In c-mode, M-q is bound to a c-mode specific function, which makes no > sens in c-ts-mode. We need a ts-specific solution (and we already > seem to have it, it just isn't working in this case for some reason). In c-ts-mode, M-q jumps a few hops, but it eventually calls = c-ts-mode=E2=80=99s filling function (c-ts-common--fill-paragraph). Yuan= ------------=_1721190001-4552-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Jul 2024 18:23:23 +0000 Received: from localhost ([127.0.0.1]:58547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT3sY-0005pg-W2 for submit@debbugs.gnu.org; Sun, 14 Jul 2024 14:23:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:42352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sT3sX-0005pZ-DT for submit@debbugs.gnu.org; Sun, 14 Jul 2024 14:23:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT3sV-0000wi-K7 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 14:23:19 -0400 Received: from mail.reprendre.net ([2001:910:1410:501::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sT3sT-00056u-0k for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 14:23:19 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 72E842C93D9 for ; Sun, 14 Jul 2024 20:23:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=dkim; t=1720981390; h=from:subject:date:message-id:to:mime-version:content-type; bh=RBnlpisTTNitL/n4Qi8oDOBmS0mXffhnx8qrgazJT2w=; b=WAUNe62jH73duOWVr2/IbKKq68WWK5lrjihnJI6JBPUxqUfaT2LoGCq/mRBhcr1d0fKs4u 68qTV8IJjZECbpPeSbewl6RLPA0kGJbas6MP/YwiPYGZu85YmVEj8sMUddB8pIZnpnHydJ QJA+bKfhzgG2p1kl5xkI9p8uDNOVmvDucTe3joWAui1CBbw6I+vDjxnYOlT8M55OENpBNX DRso4EhEO2nbAv8546zf6Yhl3o6V10T1uxBOK6zF9zLoNTE6is4WxgjjOk7NHTyP7++hg3 G5Ffudo3+CSCFzlZPIi9ZOwUl/8sAbrcDYS+P+JUg4ZyZndJuW165vELWs4MbQ== From: Damien Cassou To: bug-gnu-emacs@gnu.org Subject: 30.0.60; Filling c-ts-mode documentation is broken X-Debbugs-Cc: Date: Sun, 14 Jul 2024 20:23:09 +0200 Message-ID: <87cynf4yuq.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Last-TLS-Session-Version: TLSv1.3 Received-SPF: pass client-ip=2001:910:1410:501::1; envelope-from=damien@cassou.me; helo=mail.reprendre.net 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain Filling documentation in a c-ts-mode buffer doesn't insert the " * " prefix. It works fine in c-mode. How to reproduce: 1. Install the C treesitter grammar 2. Start emacs with "emacs -Q" 3. Open the attached file in a new buffer 4. Run M-x c-ts-mode 5. Move point to the middle of line 2 6. Press M-q Expected: 2 lines of documentation, each one starting with " * " Actual: 2 lines of documentation, only the first one starting with " * " If you remove step 4 from the above instructions, c-mode will do the work just fine. The solution to this bug could help solve bug#71760. -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=foo.c /** * rsite nrsoti ernsto ierntires ntoritsen roitsenrsoit enrstoi ensrotie nrsit ensroit enrsoi ensrien */ int f() { } --=-=-=-- ------------=_1721190001-4552-1--