[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 27 Jan 2022 11:15:17 +0100
>>>>> On Thu, 27 Jan 2022 04:30:36 +0100, "Pierre L. Nageoire"
>>>>> <firstname.lastname@example.org> said:
Pierre> If someone could explain why the indent mechanism has soddenly been
Pierre> changed I would be glad !
Author: Lars Ingebrigtsen <email@example.com>
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"
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:
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)