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: Wed, 20 Oct 2021 17:10:01 +0100 Message-ID: References: <878ryw1ptl.fsf@gnus.org> <87czo2lq0d.fsf@gnus.org> <87v91s876d.fsf@gnus.org> <87ee8gnlar.fsf@gnus.org> <87zgr4m41d.fsf@gnus.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="38763"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , emacs-devel To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 20 18:11:52 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 1mdEC0-0009tr-4O for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 18:11:52 +0200 Original-Received: from localhost ([::1]:50522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mdEBy-0006kS-NJ for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 12:11:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mdEAT-0005Jk-D6 for emacs-devel@gnu.org; Wed, 20 Oct 2021 12:10:20 -0400 Original-Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:33494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mdEAQ-0007uf-Ux; Wed, 20 Oct 2021 12:10:16 -0400 Original-Received: by mail-pf1-x429.google.com with SMTP id t184so3401310pfd.0; Wed, 20 Oct 2021 09:10:13 -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:content-transfer-encoding; bh=2UaYOtFingucVAGNX6vaUFXYurfRoLEg5uCSfT42fok=; b=HKrQu5Prhs1ErEAqC7c1YWwjJifsnRc9sXjvDuHffKd2rquFKqi4QExFxLSqRlIX7l O1CDJN6RQKogC9SQrih6aO1jrxpKbEBP7l38h+AdM+vUiBpJeVzC2ljUMyfdR2KZqXyt bGaPhkLxitRhpvWqajGzYECe0Hpw44TFDi8wmEOfFkFoZzh/QcYcih4unXrvETF8j8Px XBKyFMVxwPQHKII6DhLQokJk/8u9eZ9mLuDGeZryy3TuYKOhX8uacYzq7FUSOKo+knVV 7pb6KyoNV4jrre0RRceifohr+hdgO2d3UWXPXNZfW0kq2dZ6A+8QrzK2fItJaVXCpWhp rMDA== 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:content-transfer-encoding; bh=2UaYOtFingucVAGNX6vaUFXYurfRoLEg5uCSfT42fok=; b=k2Xm58OfSAJ9dZFfxpFQRGlvXpkd5t4v4/4KdEqo9yg09o9O77ILP/5LlrdSJXumVX 0pi7MCkExj4dXkWCowBeYTh1vjD5Bgpfbsqtrvmw/YyVsdILnaqRusbBNSiAymw/FHcU A3hKWZPWLOUolW72qRtXOZzW98T4Ygy00e8VH8+4ne2yJbkZYJts+aROds3V1jJYFw0u /xmTo1tgszj+3KlAomBoCljUACIPbbg54Rfttx79x16mX0w6yVLFi3SouHGI5K3x6Lqx hqt2VsRc9aZ0LZR2Vs9BehCFR0ibT114ge2Wg2k6VOwTTohAMqqXDEGvKQHzKvmY+9GJ JGpg== X-Gm-Message-State: AOAM532G8eZGrLrMUUcNqJ6qdzvz7nReSCBE2VvjmfH0cd5U9+LwagGv +o0LmsrNTweGeM6X78qr/X5HfkcTARLyDB0oeYY= X-Google-Smtp-Source: ABdhPJx8SCh+untXpeVExtR0dG05piWuC2T/FX30UiPgZEsZ4FF1zBCJJTEgE142VC0WssLPjpatXQQ2aTVZ2mid5Ks= X-Received: by 2002:a63:2a10:: with SMTP id q16mr87830pgq.45.1634746212635; Wed, 20 Oct 2021 09:10:12 -0700 (PDT) In-Reply-To: <87zgr4m41d.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=joaotavora@gmail.com; helo=mail-pf1-x429.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.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:277454 Archived-At: On Wed, Oct 20, 2021 at 10:36 AM Lars Ingebrigtsen wrote: > > So I'd like to have 'b' please. A compromise. We could add those > > debug specs to the def _functions_ like your example. Whoever > > these functions are and however many there are. Again, it'd be > > great to have the data. Some data. > If you want the data, it's there in the Emacs tree. Look at all > functions/macros named def* with/without indent specs, examine what they > are, and count. Counting is easy, but some days ago, you wrote > .. > about half of them really wants to > .. > have (indent defun). (And most of the macros, but not all.) What are these exceptions you're referring to? How can I know what they are? Also I think there's a fair amount of code in the so-called "wild" that probably relies on this heuristic. Of course I think you understand that removing the heuristic breaks some of it. That's a price you're probably aware of. Woudln't you consider breaking _less_ of it? https://github.com/search?l=3DEmacs+Lisp&q=3D%22defmacro+def%22&type=3DCode If you kept the heuristic for macros, I think you wounldn't break these^. And many, if not all, of the problems of the bugs would still be resolved, I think. Jo=C3=A3o