[Top][All Lists]

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

Re: indentation of functions inside flet

From: Stefan Monnier
Subject: Re: indentation of functions inside flet
Date: Fri, 20 Jan 2012 11:17:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

>>> So it would be nice if Lisp mode indented such function definitions like
>>> defuns.  I wonder, has anyone cared about this before me (I'm sure
>>> someone
>>> has) and are there any improvements to the Lisp mode available ?
>> It would be nice if CL macros were indented better, I agree.
>> Note that the way to do it is to put the bulk of the code in cl(-*).el and
>> only change lisp-mode.el so as to provide hooks that CL needs.
> Basically, what is wrong with the current indentation mechanism is its
> short-sightedness.

I don't disagree.  But all it means is that the lisp-indent-function
hook is not flexible enough and needs to be spiced up, so that CL can
use it to get better indentation.
Maybe we can steal some code from the SLIME guys for that.


reply via email to

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