help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentation


From: Pierre L. Nageoire
Subject: Re: Indentation
Date: Fri, 28 Jan 2022 07:31:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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 <rpluim@gmail.com> writes:

>>>>>> On Thu, 27 Jan 2022 04:30:36 +0100, "Pierre L. Nageoire"
> <devel@pollock-nageoire.net> said:
>
>     Pierre> If someone could explain why the indent mechanism has soddenly 
> been
>     Pierre> changed I would be glad !
>
>     commit 32df2034234056bf24312ef5883671b59a387520
>     Author: Lars Ingebrigtsen <larsi@gnus.org>
>     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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]