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.devel Subject: Re: c-ts-mode Date: Fri, 08 Sep 2023 21:54:18 +0300 Message-ID: <838r9gwl5x.fsf@gnu.org> References: <5F73CB5D-DB00-439F-AD7C-7E209EC83A35@gmail.com> <83jzt2z5mk.fsf@gnu.org> <83y1hhykni.fsf@gnu.org> <877cp1lvih.fsf@gmail.com> <83v8clyhqi.fsf@gnu.org> <83tts5ygv2.fsf@gnu.org> <83msxxxkc0.fsf@gnu.org> <871qf9ktxd.fsf@gmail.com> <838r9gykia.fsf@gnu.org> <83pm2sx10t.fsf@gnu.org> <83msxwx02s.fsf@gnu.org> <83jzt0wueo.fsf@gnu.org> <83bkecwmlc.fsf@gnu.org> 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="7765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, casouri@gmail.com, spacibba@aol.com, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 20:55:17 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qegdR-0001kT-IW for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 20:55:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qegcf-0001lc-M1; Fri, 08 Sep 2023 14:54:29 -0400 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 1qegce-0001lT-PB for emacs-devel@gnu.org; Fri, 08 Sep 2023 14:54:28 -0400 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 1qegcd-0005FL-EV; Fri, 08 Sep 2023 14:54:28 -0400 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=4awXmM+I5BCn0w0f6aBX1FazOmudAM7iV1P8BQpd+TQ=; b=EN+bzPVjwfJbnU8iIZ2F /NzldoX7CTTVwRVpEnAKQdoI/PgrkHWUUPF08fyNBggfeyi1F9u2yUk4hHCsdjVg4WibGIY5dUF5d tEZ98RrA+T6P+4YLpfJ/o92x6X4hY89J2IVTJL+tZR6H4t7fsxXuddsrryNNzE+CcE6xaDrHr8184 QtAwW7QX2PcXnrHklYe9r7wRwlXINaWOQQMGD2UvrbYMvS/pc1r9HsuDmgGnG3FTxxBaEVeHdKNUW 7uxS2fi6at1h44qrsXXfRn7bUusIeo03WTalZ0jJQF36QpAFHytcBXp7Znv4iYKffOX8/JuMtE5DZ Cb3VB0aHFsb+TA==; In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Fri, 8 Sep 2023 19:30:15 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:310360 Archived-At: > From: João Távora > Date: Fri, 8 Sep 2023 19:30:15 +0100 > Cc: theo@thornhill.no, casouri@gmail.com, spacibba@aol.com, > emacs-devel@gnu.org > > On Fri, Sep 8, 2023 at 7:23 PM Eli Zaretskii wrote: > > > > If so, then going that route means basically writing a translator > > > of clang-format -> Emacs treesitter rules. Maybe it's easier than > > > I think, and the main advantage is it will plug into > > > indent-line-function and indent-region-function rather easily. > > > And, who knows, some code can be reused for writing translators of > > > other formatters. > > Yes. > > > > > Anyway I wouldn't discard the "LSP shortcut" idea. > > > > I didn't discard it. > > OK. But the TODO item doesn't mention it. It also doesn't say it's off the table, though. In fact, it says nothing at all about the implementation. If you want to add some implementation ideas to that item, I won't object; please show the patch. > I think prospective volunteers should eventually be steered to this > discussion to learn about these trade-offs. Some entries in > etc/TODO have links to lists.gnu.org. I suggest to add one in the > item to our conversation. Fine by me, thanks.