emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation of def*


From: João Távora
Subject: Re: Indentation of def*
Date: Thu, 14 Oct 2021 13:49:34 +0100

On Thu, Oct 14, 2021, 13:27 Po Lu <luangruo@yahoo.com> wrote:
Lars Ingebrigtsen <larsi@gnus.org> writes:

> So this is the thread where you can say "yay" or "eek".

Then In this case, I would have to say "eek".  There is simply too much
code out there (mine included) that relies on the existing heuristic,
and it would be very annoying to have that broken, at least now.

I think I reported that bug originally.  I'm half-yay half-eek. Po Lu's use case is definitely something to consider. 

I'm in favor of tweaking the heuristic and applying it only to macro definitions, which are (or should be) the majority of definition creating forms.

I can't confirm right now, but I think SLIME/Sly use a similar heuristic for Common Lisp.

The plan would be to add the indent spec only to functions that define things, or to make those macros.

João

reply via email to

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