[Top][All Lists]

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

Re: Indentation of def*

From: Po Lu
Subject: Re: Indentation of def*
Date: Thu, 14 Oct 2021 21:30:04 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Kangas <stefankangas@gmail.com> writes:

> Can't you just use this?
>     (declare (indent defun))

I could, but I was just demonstrating that a large amount of code
depends on the previous behaviour in order to be indented nicely.

> And shouldn't you be using that in any case, to make your intention more
> clear, and avoid relying on a fundamentally brittle heuristic?

If it's a heuristic that worked (at least, AFAIR) in Emacs 18, then I'm
usually inclined to trust it.  (And I considered it smart at the time,
when I first discovered it).

reply via email to

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