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: Lars Ingebrigtsen
Subject: bug#10097: 24.0.91; Lisp mode should use common-lisp-indent-function by default
Date: Thu, 03 Oct 2019 18:31:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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