From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: Indentation Date: Thu, 27 Jan 2022 11:15:17 +0100 Message-ID: <87o83xfpsa.fsf@gmail.com> References: <86o83yd1q2.fsf@pollock-nageoire.net> <87czkeyz45.fsf@zoho.eu> <86bkzxdfdv.fsf@pollock-nageoire.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17712"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: "Pierre L. Nageoire" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 27 11:27:58 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nD20U-0004PH-Ba for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 11:27:58 +0100 Original-Received: from localhost ([::1]:49020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nD20S-0004u9-Sm for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 27 Jan 2022 05:27:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nD1oU-0004gn-7o for help-gnu-emacs@gnu.org; Thu, 27 Jan 2022 05:15:36 -0500 Original-Received: from [2a00:1450:4864:20::42a] (port=33395 helo=mail-wr1-x42a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nD1oM-00062j-Hk for help-gnu-emacs@gnu.org; Thu, 27 Jan 2022 05:15:29 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id e8so3895203wrc.0 for ; Thu, 27 Jan 2022 02:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=Aa2vcjXI0nmt10rxKCX+KzDn90FwCd1JtIbIbVIlbAY=; b=OkM9M5OF3+GoTBie79bgpVuPPgejcbV5cD2lyr+tQx+SoRLjdE/y+rFceu34aQzW0d qqA8TD0rMcE08z3t/iJc92BiSohfY0G7tkpZBtvz2KwvpcKx5Lx3pWLCWuq64HC+4xwz 9uDCob3f51pX7CHFJy+k8Ch/EMvfjxwk/QHi+MoPhJcEjCvHxeDo5Obp1EccXfY4g0IK CuX2zwaEMeJTLXEW6PN8nL7vZQhCHnFurokONlcHASc7YfY/+DPwDXNtn2YvQz/LGdG8 9kngkAPcP7upky8o5hNecIN3I4H7gxpAaUwAw+pFP5ir3NUpNhqCsiBhRULUnRPuYOmK jPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=Aa2vcjXI0nmt10rxKCX+KzDn90FwCd1JtIbIbVIlbAY=; b=x37OH1pynHzIMsYVmm//SE7eVGCjepnyLOmL/9EOelUXaJPcZfDs3KaH32d2pjuEgI y5vdSeFwlN5w5ntHBZnP5L7FtOheqV7YHf93+s73+gvdDbmMWRb5YhQ3zWGhXavmDqUR TonzhCCLDjcV3GxRpqyyk5u8GNG/W3ijbZ2qjBHC2R/rafCqWOW7e3gh1ehKpwOLIB8H LqcIIEwCBSdGwAgjrqREyIwE3ISpeDUrIzbG6EMN/pLekypoWCQhgewx4ivxs6ctwInh z6tj4qQaW1eaw5hl9gzkvfiUYNqaEBT7/Z9eF6hEC4CupwLaSgoKi24st2kO+ez5t0va 2Mqg== X-Gm-Message-State: AOAM530nQOuRo59hbkAVeoXOFztKUlgVV9/NAx4qgVSEInKB3Hg3nIZS w4Nw4buQYcPgRnZ0L3PLfSR/KBADdD8= X-Google-Smtp-Source: ABdhPJytKIgdPGiGMX4Q69bjEX2TPXx8W8sZVQBSuwDyTm5Bvw4aFdeecYVYFnH+NKXCGq9FmCRccg== X-Received: by 2002:a05:6000:18f:: with SMTP id p15mr2411574wrx.436.1643278518774; Thu, 27 Jan 2022 02:15:18 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:b96b:9e5:e272:2b49]) by smtp.gmail.com with ESMTPSA id p190sm1585982wmp.16.2022.01.27.02.15.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 02:15:18 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <86bkzxdfdv.fsf@pollock-nageoire.net> (Pierre L. Nageoire's message of "Thu, 27 Jan 2022 04:30:36 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42a (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135554 Archived-At: >>>>> On Thu, 27 Jan 2022 04:30:36 +0100, "Pierre L. Nageoire" said: Pierre> If someone could explain why the indent mechanism has soddenly been Pierre> changed I would be glad ! commit 32df2034234056bf24312ef5883671b59a387520 Author: Lars Ingebrigtsen Date: Mon Oct 18 10:00:20 2021 +0200 Remove the "def" indentation heuristic * lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Don't indent function calls with names that that start with "def" specially (bug#43329). and the corresponding etc/NEWS entry: ** 'def' indentation changes. In 'emacs-lisp-mode', forms with a symbol with a name that start with "def" have been automatically indented as if they were 'defun'-like forms, for instance: (defzot 1 2 3) This heuristic has now been removed, and all functions/macros that want to be indented this way have to be marked with (declare (indent defun)) or the like. If the function/macro definition itself can't be changed, the indentation can also be adjusted by saying something like: (put 'defzot 'lisp-indent-function 'defun) Robert --