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 09:19:17 +0100 Message-ID: References: <878ryw1ptl.fsf@gnus.org> <87czo2lq0d.fsf@gnus.org> <87v91s876d.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="37634"; 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 10:21:39 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 1md6qx-0009ba-D2 for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 10:21:39 +0200 Original-Received: from localhost ([::1]:53270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1md6qw-0004Ba-8a for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Oct 2021 04:21:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1md6oz-0002eo-35 for emacs-devel@gnu.org; Wed, 20 Oct 2021 04:19:37 -0400 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:38834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1md6ot-0002eD-CE; Wed, 20 Oct 2021 04:19:36 -0400 Original-Received: by mail-pl1-x630.google.com with SMTP id i5so9353968pla.5; Wed, 20 Oct 2021 01:19:30 -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=s2CKkkw2NDa0QGoYY5pJcdEuTdzeSQavngwSOaD5O/w=; b=ERb1qc2EKwb5FdoWPcstZfqcj4TAQ4g+KGgbT0ian89/b/hyAXTPRRBdFaQjyZA+jV /SGUrWJYGmwuGzgMRN8yKEnT2qVmxOsCB2oPNTzVlprJy5EIhXJk73IA+267Jkpl2cQd EGTC4m1vMycVvx8xtuW/Dixv6caDKxEFQNXM0TEZyYfoRayg2gBwbBnNHZzGDrMXm6DX TcxT4dlE3nhyqFVyDzcB9WOqYmR77hBvFfSZXAbyxhdblijLzmsMvg2xe+Nm5/2dB/HU 6EUIYxAtYiQy/nrJOkNT5/FSqDmFI/MyLaTZ8tpE8efrJ4EkXrneeFH4KwXAVWFVfUSi d1Aw== 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=s2CKkkw2NDa0QGoYY5pJcdEuTdzeSQavngwSOaD5O/w=; b=7XcM2JlIa/Oi2dc3H/oCRPcluLOptY9qvB1QoGZ7UW8TrzVsLEcHwQzSG55KU7K/dT 71td6+nEtFei0scPjF8FeCW+LZaHPWQ68+w4VFNOHj8xCCki/OFETbxMfZnjnVUlxk9L xbWKaXA6Ml4+4Y51nsskapRZreI5grBHQrqfNJ/7YQxZrgBwXwISwqtDRQ/iP+lmYZ56 yjQurOVFbjgo16iSzPlZurJjC36iYC9WjsWiRn9MzSO3XAknOdrlgcFigKZlF8RvVjXz pFd9S//XebCYlwPtl5zLzMR+vJOs2sPqMcWOt0v3TSZPl3aZnJkZClS/Q+rza+c4Vm4J WJQw== X-Gm-Message-State: AOAM532fBW/uldU1Q5J4aVpro4ANLgO1kXjpmaaQdV71rv0Z3a+dNF/Q VtcaQhar03Jr1VudgjEJkjmFaAGF7Vo51lAVclc= X-Google-Smtp-Source: ABdhPJyi9k7yss3SKg3aKOBSNEAxrk3X9JY0kBX5cBP8WnXX+P7AKlHSv+WXxV1omoV8p8ZHNgLCmO4YHzHzibG2sCk= X-Received: by 2002:a17:902:728b:b0:13f:c086:bdfe with SMTP id d11-20020a170902728b00b0013fc086bdfemr15217101pll.6.1634717968962; Wed, 20 Oct 2021 01:19:28 -0700 (PDT) In-Reply-To: <87v91s876d.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=joaotavora@gmail.com; helo=mail-pl1-x630.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:277430 Archived-At: On Wed, Oct 20, 2021 at 8:52 AM Lars Ingebrigtsen wrote: > > Richard Stallman writes: > > Please keep the heuristic. It is still useful. > > If file A uses a deffoober construct defined in file B, and you visit > > file A with file B not loaded, the heuristic will make the uses of > > deffoober indent properly. > Or wrongly -- functions like `default-boundp' are indented wrongly using > that heuristic. Right. And your example is a _function_. Why don't you _at least_ keep the heuristic for macros? Isn't that a worthy compromise, a "no-worse" situation? It would fix your default-boundp example and, if Richard's example deffoober is a macro (I'd say there's a good chance it is, statistically speaking) then the calls to that macro would also be indented correctly. What am I missing? > The moral is: If you edit Emacs Lisp, you should load the file you're > editing first, otherwise it'll indent badly. That was always the moral yes. But now, AFAIU, you're tightening up those morals a bit, by requiring that Richard edit his code to add indent specs to his macro definitions like deffoober. If I'm mistaken in this particular example, please correct me. Jo=C3=A3o