From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Pierre L. Nageoire" Newsgroups: gmane.emacs.help Subject: Re: Indentation Date: Fri, 28 Jan 2022 07:31:47 +0100 Message-ID: <86o83w5q24.fsf@pollock-nageoire.net> References: <86o83yd1q2.fsf@pollock-nageoire.net> <87czkeyz45.fsf@zoho.eu> <86bkzxdfdv.fsf@pollock-nageoire.net> <87o83xfpsa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12306"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Robert Pluim Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 28 08:38:54 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 1nDLqP-0002xr-St for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Jan 2022 08:38:53 +0100 Original-Received: from localhost ([::1]:53848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nDLqO-0003zV-Mt for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 28 Jan 2022 02:38:52 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDLcN-0000uy-Mt for help-gnu-emacs@gnu.org; Fri, 28 Jan 2022 02:24:23 -0500 Original-Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:52886 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nDLcL-00060m-7C for help-gnu-emacs@gnu.org; Fri, 28 Jan 2022 02:24:23 -0500 Original-Received: from jabberwocky ([86.247.162.82]) by smtp.orange.fr with ESMTP id DLcFnRx9btSo5DLcFnxhsk; Fri, 28 Jan 2022 08:24:16 +0100 X-ME-Helo: jabberwocky X-ME-Date: Fri, 28 Jan 2022 08:24:16 +0100 X-ME-IP: 86.247.162.82 In-Reply-To: <87o83xfpsa.fsf@gmail.com> (Robert Pluim's message of "Thu, 27 Jan 2022 11:15:17 +0100") Received-SPF: none client-ip=80.12.242.131; envelope-from=devel@pollock-nageoire.net; helo=smtp.smtpout.orange.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:135585 Archived-At: Hi Robert, Many thanks to have extracted this pertienent part of the emacs news ! First I now understand why the situation is so ; and secondly I know how to custimize it for my own needs ! Perfect ! Regards Robert Pluim writes: >>>>>> 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