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: A note about clang-format Date: Tue, 22 Aug 2023 20:07:32 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000db77d0060387b537" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Corwin Brust , emacs-devel To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 22 21:08:48 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 1qYWkC-0002sP-Ie for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Aug 2023 21:08:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYWjJ-0006lk-PA; Tue, 22 Aug 2023 15:07:53 -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 1qYWjH-0006lP-IB for emacs-devel@gnu.org; Tue, 22 Aug 2023 15:07:51 -0400 Original-Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYWjF-0006au-Ab for emacs-devel@gnu.org; Tue, 22 Aug 2023 15:07:51 -0400 Original-Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bbbda48904so56859651fa.2 for ; Tue, 22 Aug 2023 12:07:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692731267; x=1693336067; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G3HqK2214NIMl7cbXSsrPByGO6fFgFx03xGylnf/fNE=; b=AQ4duouOgidDarM3MqjtYtIcnmi6kPUdfh3bRQZhZce8rYmQeBUxLJPj+RqE7s5Tru Nj/FXmWB26gAQperyFbapDAF5InRfIjvi8RzMKvMj99KYyzIsaFkQYmCTJsqLtiNGYcz gwrcFtU2BrKwv1UkEnhZmZtGwd2HkG7vZlpLMGFtDEZoKvGrv4bOBoUKnAPL4FjAn0hM iuMEERiLrxRHAX6vTrJB5bDW3sA30pxWab8QKtGFQPiCv2JqRzNv/2O6DzAaG19E+3H2 p+O5v2StG/U+M5QNqXJF6VUZF5G7S99YOLTUNkS3RlQHigs7VJ9+xJ4yNKwtinVneTjA Ja3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692731267; x=1693336067; h=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=G3HqK2214NIMl7cbXSsrPByGO6fFgFx03xGylnf/fNE=; b=Dd367dOxk0Gxgq+eJsFqnTEngcpW3GjRhpEdUn8aHonTQMz0G8vxRiXx3CZeyH4aPZ 1WVPzykQP7UR1knQNIDaGpbUDgFwZn+mLzKy8gQXVuU5l8slal/H7lMAdNk7rExVe7Qn UIQmnHgKjk43b6Z7u6em+pqQB1mdsUelPK1KxS+9Buf2HQ+xcT2jZ/R1wYm5xRvaXKO3 jV8PFopGp537ttgpSpYRyy/64vHOdk4ijjwWs8WfoGhwUsx6038fPrU3pG/xATzM+d/8 s8O18uKW8ZxrUi5cwLh4cPMAV4K6q9MhTopFdiCrn7OJPCJP/KKBPifBUlnJvXvYtQnP +Zsw== X-Gm-Message-State: AOJu0Yz9og4NNRqRI8hm+vemBuZWuK3Wwj1DBY7bM0zqGyB6uEOGPNzO xCwRJD9LPXVY1G21W+6iFsE9qrm060jpBYpeWVObaJzp X-Google-Smtp-Source: AGHT+IHawormdKXY+1ATyKInD3MUJk4cZewDnpXoeCiGsS/TZcp+EfYfxI+CYq9COFqYNFKSRijUvbmOU//l/WEqGak= X-Received: by 2002:a2e:8803:0:b0:2ba:cbb:47a6 with SMTP id x3-20020a2e8803000000b002ba0cbb47a6mr7661191ljh.5.1692731266789; Tue, 22 Aug 2023 12:07:46 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22f; envelope-from=joaotavora@gmail.com; helo=mail-lj1-x22f.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, HTML_MESSAGE=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:309113 Archived-At: --000000000000db77d0060387b537 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 22, 2023, 19:59 Gerd M=C3=B6llmann w= rote: > Jo=C3=A3o T=C3=A1vora writes: > > > But it can be ignored via 'eglot-ignored-server-capabilities', which se= e. > > Actually, I found that auto-formatting quite nice when I switched from > lsp-mode to eglot today, so I didn't want to suppress this. But the > DEFUNs in Emacs' C code are something from another world. I don't know > if any formatter can cope with them. > > Might be good to start using this in the Emacs sources, too, if that's > ok. The existence of a .clang-format makes me think some users might > appreciate it. > I think we (meaning you) should lobby Eli for compile_commands.json generation first :) M-x eglot in Emacs sources still doesn't work oob and there's little reason for that (well, apart from some understandable llvm aversion, but there are other servers...). --000000000000db77d0060387b537 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Aug 22, 2023, 19:59 Gerd M=C3=B6llmann <gerd.moellmann@gmail.com> wrote:
Jo=C3=A3o T=C3=A1vora <joaotavora@gma= il.com> writes:

> But it can be ignored via 'eglot-ignored-server-capabilities',= which see.

Actually, I found that auto-formatting quite nice when I switched from
lsp-mode to eglot today, so I didn't want to suppress this.=C2=A0 But t= he
DEFUNs in Emacs' C code are something from another world.=C2=A0 I don&#= 39;t know
if any formatter can cope with them.

Might be good to start using this in the Emacs sources, too, if that's<= br> ok.=C2=A0 The existence of a .clang-format makes me think some users might<= br> appreciate it.

I think we (meaning you) should lobby Eli for compile_command= s.json generation first :)

M-x eglot in Emacs sources still doesn't work oob and there's li= ttle reason for that (well, apart from some understandable llvm aversion, b= ut there are other servers...).
--000000000000db77d0060387b537--