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: Indentation of def* Date: Thu, 14 Oct 2021 13:49:34 +0100 Message-ID: References: <878ryw1ptl.fsf@gnus.org> <871r4nn9ty.fsf@yahoo.com> <87ilxzzwn1.fsf@gnus.org> <878ryvzw7s.fsf@gnus.org> <87h7djlskn.fsf@yahoo.com> <87v91zyfiy.fsf@gnus.org> <87wnmfkd7p.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000074928005ce4f83ef" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , emacs-devel To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 14 14:51:21 2021 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 1mb0Cf-0001Ie-Hp for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 14:51:21 +0200 Original-Received: from localhost ([::1]:51952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb0Cd-0001i6-N5 for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Oct 2021 08:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb0BD-0000by-5e for emacs-devel@gnu.org; Thu, 14 Oct 2021 08:49:51 -0400 Original-Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]:40906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb0BB-0005AS-DL for emacs-devel@gnu.org; Thu, 14 Oct 2021 08:49:50 -0400 Original-Received: by mail-pj1-x1031.google.com with SMTP id pf6-20020a17090b1d8600b0019fa884ab85so6863740pjb.5 for ; Thu, 14 Oct 2021 05:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4UNb2gk/igUAtWd43wQMMwdp6mNIRljwm751yv64hk0=; b=H2FQQVpskzyGWk2Opo0XOZA6WVHGZ1r96ByIgCLiko0RiMd3rjW6lz7KJ3ccHzwlSt 9qeQ5ezv2ycFwLHyCxe+hO31K/C4TOBnkWjaCrTbVPSxXcyJMwxXsuiB8UTY+fKh2G1Y 2iPUiO4EHcvdGdtC5Fupe2CiCGI2qbVsZ9ZWrf5SLEHFqFDRlGsRagyA5aXTi6366Jw5 dsIalsSuy5xkjREvz/nuLG3jDbgaYhekt//EvfJewfCdsBLK43d8Lz2MNQPgKlp2dcKB n5zMll/HMu/8p4S85tUrdDFUjHpr2eigZJUxjl73fe0TMpKKNZ80OdoosgvbE3aJMD/d y0kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4UNb2gk/igUAtWd43wQMMwdp6mNIRljwm751yv64hk0=; b=NsHgWCxLv7DmfIQbXIIE1L37qFwczQ5bltNKc1UQtwqLT1lTw2QWmHDfTAsUvMn0tO Q4iiy1RSrHLWh0IfZ+DmjZhfBrj+7sxZrn48bK8n+wPMhagB7VQYqkX0H1xLoMLeVD1h XPZt5uZmH1h/NRBwM/7egNV/YK8Ruh6cmHeUI7LZXSyVeLWKPl4tvv6zTwEKDuPEcyGE lAjFDTAKsggmcNRxqhT1AVNH3AMk3rVJ/HGD3TfQW9LIZpikjK9iogmtNFJDRl06YRsW RG6Ic+1E+4BtRlmVJJWDV+gM57AtZPa9+8PkSgKjHjp4FYCRrUVvb2FM6qBnbfTiIRvl QbpA== X-Gm-Message-State: AOAM532eMzOc1ytRgslLrueLipgPxskDeRfpYRgrhD5aOQWsh3r9AbhR LXqz7lUTfJ/EfnXv2vtAedS8iXyBxiJwLy1MALg= X-Google-Smtp-Source: ABdhPJw+FfajvjU5EfWLUiEfHUEb5pK5IqktVHEinIRT4/BYiDzRaKsa0lBArp1ZY7YbX025NmYy08MPK7v52lFbxR8= X-Received: by 2002:a17:90a:fa91:: with SMTP id cu17mr3283214pjb.91.1634215786745; Thu, 14 Oct 2021 05:49:46 -0700 (PDT) In-Reply-To: <87wnmfkd7p.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::1031; envelope-from=joaotavora@gmail.com; helo=mail-pj1-x1031.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.23 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" Xref: news.gmane.io gmane.emacs.devel:277013 Archived-At: --00000000000074928005ce4f83ef Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 14, 2021, 13:27 Po Lu wrote: > Lars Ingebrigtsen writes: > > > So this is the thread where you can say "yay" or "eek". > > Then In this case, I would have to say "eek". There is simply too much > code out there (mine included) that relies on the existing heuristic, > and it would be very annoying to have that broken, at least now. > I think I reported that bug originally. I'm half-yay half-eek. Po Lu's use case is definitely something to consider. I'm in favor of tweaking the heuristic and applying it only to macro definitions, which are (or should be) the majority of definition creating forms. I can't confirm right now, but I think SLIME/Sly use a similar heuristic for Common Lisp. The plan would be to add the indent spec only to functions that define things, or to make those macros. Jo=C3=A3o --00000000000074928005ce4f83ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Oct 14, 2021, 13:27 Po Lu <luangruo@yahoo.com> wrote:
Lars Ingebrigtsen <larsi@gnus.org> writes:

> So this is the thread where you can say "yay" or "eek&q= uot;.

Then In this case, I would have to say "eek".=C2=A0 There is simp= ly too much
code out there (mine included) that relies on the existing heuristic,
and it would be very annoying to have that broken, at least now.

I think I r= eported that bug originally.=C2=A0 I'm half-yay half-eek. Po Lu's u= se case is definitely something to consider.=C2=A0
<= br>
I'm in favor of tweaking the heuristic and a= pplying it only to macro definitions, which are (or should be) the majority= of definition creating forms.

I can't confirm right now, but I think SLIME/Sly use a similar h= euristic for Common Lisp.

The plan would be to add the indent spec only to functions that define th= ings, or to make those macros.

Jo=C3=A3o
--00000000000074928005ce4f83ef--