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

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

bug#10097: 24.0.91; Lisp mode should use common-lisp-indent-function by


From: Stefan Kangas
Subject: bug#10097: 24.0.91; Lisp mode should use common-lisp-indent-function by default
Date: Fri, 17 Jan 2020 00:11:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Helmut Eller <eller.helmut@gmail.com> writes:
>
>> Lisp mode is supposedly a "Major mode for editing Lisp code for Lisps
>> other than GNU Emacs Lisp".  Yet the variable lisp-indent-function
>> remains set to the rather Elisp oriented #'lisp-indent-function.  As
>> Common Lisp is the most important non-Elisp Lisp
>> #'common-lisp-indent-function would be a friendlier default as it gets
>> at least if/flet/labels right more often:
>
> [...]
>
>> +  (make-local-variable 'lisp-indent-function)
>> +  (setq lisp-indent-function 'common-lisp-indent-function)
>
> (I'm going through old Emacs bug reports that unfortunately got no
> response at the time.)
>
> I think this makes sense -- Common Lisp is the biggest non-Elisp Lisp
> dialect, so using this as a default seems good.
>
> However, it's a behaviour change, and people who are used to wrongly
> indenting Common Lisp code may be annoyed by the change.
>
> Does anybody have an opinion on changing the default indentation in this
> mode?

I think we should change the default as suggested and announce in NEWS
why the change was made, and how to get back the old behaviour.

Best regards,
Stefan Kangas





reply via email to

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