From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59763: 29.0.60; Filling for c-ts-mode Date: Fri, 02 Dec 2022 16:58:14 +0200 Message-ID: <838rjpg8e1.fsf@gnu.org> References: <69D98973-6824-47B3-900F-6DBEE669932F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59763@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 15:59:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p17VZ-0001se-RJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 15:59:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p17VH-0005fy-Mw; Fri, 02 Dec 2022 09:59:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p17VG-0005ey-Uj for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 09:59:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p17VG-0001fc-IW for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 09:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p17VG-0006LS-3d for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 09:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 14:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59763 X-GNU-PR-Package: emacs Original-Received: via spool by 59763-submit@debbugs.gnu.org id=B59763.166999313024384 (code B ref 59763); Fri, 02 Dec 2022 14:59:02 +0000 Original-Received: (at 59763) by debbugs.gnu.org; 2 Dec 2022 14:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:47181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p17V4-0006LE-AP for submit@debbugs.gnu.org; Fri, 02 Dec 2022 09:58:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p17Uz-0006L3-0Z for 59763@debbugs.gnu.org; Fri, 02 Dec 2022 09:58:48 -0500 Original-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 1p17Ut-0001X8-Kz; Fri, 02 Dec 2022 09:58:39 -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=u3ljqyivkppRvQT4rEpfkCBSjem1wcx0mHJHEbV5HfE=; b=Q/yoWW1DdLZeMd/mybM/ ztqpYcZ1zc4U70XF/fG7Bmsp70Qwt6g8+8bbF27RhnUluOIfJk72XtSVqJ5wolEAJonf5Aps/e0oC p/8TA/dvmb80wMVjmDCTYP+IuV0Lh2MepL21gNBWiWN8OQ0WuoKg94rz54aMoCW8307dAl7pj9vYD g04XKemWKYhna/Ixlx+bjSLEEcRHagmsKWeEg3X/avHb1b+1UGdv+UuwX2bjiiefgUrNwzut3nf1N TcDOf7rXNQ0EtrWlHdquivTXGGoOmcpzCONUq5EK56Io6SAYrgSu1F4MmYtSGSyq1Xrade858aXFT speMUrnCo3B2gA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p17Us-0001wO-Oq; Fri, 02 Dec 2022 09:58:39 -0500 In-Reply-To: <69D98973-6824-47B3-900F-6DBEE669932F@gmail.com> (message from Yuan Fu on Thu, 1 Dec 2022 21:33:06 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249755 Archived-At: > From: Yuan Fu > Date: Thu, 1 Dec 2022 21:33:06 -0800 > > > IMO For c-ts-mode to be usable we need to have at least a basic filling > function. Below is the function I have in my init.el, could someone have > a look and see if it’s good? Alternatively we could copy out the comment > and fill it in a temp buffer with c-mode, but I didn’t have the time to try > it out and see how well it works. Thanks. >From quick testing, I see a problem: . Visit dispnew.c and go to the comment that starts on line 324. Delete the newline between the two lines of the comment, and invoke the function. Observe how the first non-blank character of the comment's second line is aligned with the "/*" on the previous line, not with the text after "/*" as I'd expect. Btw, this command should be bound to M-q in ts-c-mode.