From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#59763: 29.0.60; Filling for c-ts-mode Date: Fri, 2 Dec 2022 16:54:43 -0800 Message-ID: <684D8326-B59B-4A8D-9CD5-F0EB83CF5608@gmail.com> References: <69D98973-6824-47B3-900F-6DBEE669932F@gmail.com> <838rjpg8e1.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Theodor Thornhill , 59763@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 03 01:55:10 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 1p1GoA-0007rk-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Dec 2022 01:55:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1Go3-0004fO-DL; Fri, 02 Dec 2022 19:55: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 1p1Go2-0004d7-Ef for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 19:55: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 1p1Go2-0007w7-5C for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 19:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1Go2-0005qv-0z for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 19:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Dec 2022 00:55:01 +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.167002889322487 (code B ref 59763); Sat, 03 Dec 2022 00:55:01 +0000 Original-Received: (at 59763) by debbugs.gnu.org; 3 Dec 2022 00:54:53 +0000 Original-Received: from localhost ([127.0.0.1]:49859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1Gns-0005qd-R2 for submit@debbugs.gnu.org; Fri, 02 Dec 2022 19:54:53 -0500 Original-Received: from mail-pj1-f50.google.com ([209.85.216.50]:46889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1Gnr-0005qX-9n for 59763@debbugs.gnu.org; Fri, 02 Dec 2022 19:54:51 -0500 Original-Received: by mail-pj1-f50.google.com with SMTP id b13-20020a17090a5a0d00b0021906102d05so6544003pjd.5 for <59763@debbugs.gnu.org>; Fri, 02 Dec 2022 16:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=nd7dVYdO2vHisMdclZp8iu9pyafe0tqDjozLAI1xjE8=; b=iVUoKFJpVXhDg5v9IIR/koapnEhaTaAizHB1+Qsi+ptXp4oG1WCVtW6UmkU1dBTpcu RZFeR060YbfOkQZ59yIvGYTn2Plgc083tfJh9z0jO8OoYan2nIEkyuzm994XLquvYBOf BQTslelaLYYBevsiAJgzTXJyJjZxtBKPP2FGh+pkHxaCtN0EfjuR2inV8mk7Lk/lZXqD oxerfgSyotuztbMiaq16euHYO6x760DlYfJ2HdunalYVWXkNV737eNoPelv+0HRbGLoU ctYmQmwcHDu9X84PbvwTuJ3I2LETrCmc9Cg3co6/zwYmpsDCzMr44fj+ykbyf3+f/9tX ZcXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=nd7dVYdO2vHisMdclZp8iu9pyafe0tqDjozLAI1xjE8=; b=y0cHeW7uyNewABtCgUhV2lMJf+Vx5h6wBHUAvXJzkPx906JPZ8mReTKaTPjQeyVWC/ jEXCffyUq2a8wLfhGBDSzm1i21H+q1CNuU/k84a02DLejV3pr4HkDMqMXbi5VPZVbflB hXONaHHnCt+9Imw3G33vB2ZpzwX/nDsssajhq4Ak7gHlixlQs8PWyfT09FkYK3wMlrgs UhtlIwnYw6ev8FTCR9iJ8s9AtaAgUF9waM9th7zVvlDX6EEdFTZNtgrL3YpLlortyWdM MydnQsWnXkzCNL8iqcc3e2tMU6n3dpQl5qnEHRSYoGS+Tf18s2nSmHA/aUvMbq21jHzk nD1A== X-Gm-Message-State: ANoB5pkypGOYDa6uTYtMPOlzJ2dZqYA9uexyMsRtYUetxMsIebSh0eLJ JVAdMoiZchBpqNDDJ0ieKXI9n1WyOvYRgQ== X-Google-Smtp-Source: AA0mqf7kezdSHqPHl8xH8NjzK959+cX7Muzh5txquFjjp8ldpqtwwWzW3vCdEPP9zYprr0TmNbF+QQ== X-Received: by 2002:a17:90a:b285:b0:216:ab1b:98d0 with SMTP id c5-20020a17090ab28500b00216ab1b98d0mr83904374pjr.67.1670028885648; Fri, 02 Dec 2022 16:54:45 -0800 (PST) Original-Received: from smtpclient.apple (108-241-83-33.lightspeed.irvnca.sbcglobal.net. [108.241.83.33]) by smtp.gmail.com with ESMTPSA id t17-20020aa79471000000b00575c8242849sm5681064pfq.69.2022.12.02.16.54.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2022 16:54:45 -0800 (PST) In-Reply-To: <838rjpg8e1.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.120.41.1.1) 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:249798 Archived-At: > On Dec 2, 2022, at 6:58 AM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 1 Dec 2022 21:33:06 -0800 >>=20 >>=20 >> 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=E2=80=99s good? Alternatively we could copy out = the comment >> and fill it in a temp buffer with c-mode, but I didn=E2=80=99t have = the time to try >> it out and see how well it works. >=20 > Thanks. >=20 > =46rom quick testing, I see a problem: >=20 > . 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. I see. I=E2=80=99ll need to look at how cc-mode fill comments. >=20 > Btw, this command should be bound to M-q in ts-c-mode. Will do, once our fill function works well. BTW, Theo, if you have any = idea, don=E2=80=99t hesitate to go ahead :-) No obligations, of course. Yuan=