From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: c-ts-mode Date: Fri, 8 Sep 2023 19:30:15 +0100 Message-ID: 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: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5904"; mail-complaints-to="usenet@ciao.gmane.io" Cc: theo@thornhill.no, casouri@gmail.com, spacibba@aol.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 08 20:31:25 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 1qegGK-0001N6-LJ for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Sep 2023 20:31:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qegFV-0002mz-S9; Fri, 08 Sep 2023 14:30:33 -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 1qegFU-0002lt-2M for emacs-devel@gnu.org; Fri, 08 Sep 2023 14:30:32 -0400 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qegFR-0007WX-Rd; Fri, 08 Sep 2023 14:30:31 -0400 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-502153ae36cso3805840e87.3; Fri, 08 Sep 2023 11:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694197827; x=1694802627; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vyZynDJq8OwWoDgoYGZLUmyIi87Vu6hQJQfBAYjrDno=; b=EOxu/BxTuAB1rnr4PjrIXlnKUtfnLgjyn/y578i18xUoWKlpwVBS8O9HMLeDpgsf/O Xxl6AAmkgVI6t4f7GeIRSf/VaHAc0z6o5GP0YToKGZQjLaOoMYnI32BWdVTaxy3HaFGa FUGbkT0C48DhTnAnrWnxnWNsTuIZvKwHP3sAE3mDTjIjySAiwRV3IWUOs+2WWxfFRZRZ ud4qnhxaitqyqYw3LQiu5KdVedYn00kp7CGaqERiDpuR41MexOs4kvQgXKsE5zj3+ddY 7bL1glMRXlC3q6xcX5u/bCff/E9Oj4lN3PrKoER0A9JQnSbhj3OI61zdhdic707dTNJZ Hjdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694197827; x=1694802627; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vyZynDJq8OwWoDgoYGZLUmyIi87Vu6hQJQfBAYjrDno=; b=vRf+hmor/WFLTinNnCpsnOAqSsRk+K0iem9rKziSE2qNRQ53THJaYKM8jp76RKEQiy UhwDDG0pV2mguLMCwCDLO77oCvMuWBs4CW6F7+gt53JMnwzSdVsLrmSfBlQhAWl5JFrr Ei44W2EOdkQamA7jofKsWxNd9beuCZz9qjtIcHX9sBso6jk+FvYhI5s4By9kkS0uuJtJ 2zkZbvnalK9Q02QEUoBPN4jB/D/xzmUeA86HEcFGW1TZPiQul4g0rYhg5bPS+NjtnCiK P+yVfbo0gkacp70aJ2p75XgvNweebX6pwn7mmfcaImj2aJYIpd8Gc67IV9KqYvWqIJUr 322Q== X-Gm-Message-State: AOJu0YwAx1Uyrd8O3U3uw6V8i18PQ1OM2Nm1aoBj62O77KmREVHKKY4Z h0JTwpZpktguqFChMfKSijt4EO7Vb7Fa0IIp1sY/GySfIsH+dg== X-Google-Smtp-Source: AGHT+IFBSlO10dPGS9HOpeaRydtORjVl8aRsV2eTyY7VnNnNSRQ4qKGIB1tgk/EuiVX8C4ZaLUJp8LDRNsE3ezA/Tq0= X-Received: by 2002:a19:6d1c:0:b0:500:c975:7641 with SMTP id i28-20020a196d1c000000b00500c9757641mr2108711lfc.35.1694197826918; Fri, 08 Sep 2023 11:30:26 -0700 (PDT) In-Reply-To: <83bkecwmlc.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x136.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:310351 Archived-At: On Fri, Sep 8, 2023 at 7:23=E2=80=AFPM 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. 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. Jo=C3=A3o