[Top][All Lists]

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

Re: Indentation

From: Robert Pluim
Subject: Re: Indentation
Date: Thu, 27 Jan 2022 11:15:17 +0100

>>>>> 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

        (put 'defzot 'lisp-indent-function 'defun)


reply via email to

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