[Top][All Lists]

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

Re: correct indentation for flet and labels macros

From: Davis Herring
Subject: Re: correct indentation for flet and labels macros
Date: Mon, 30 Aug 2004 20:45:01 -0600 (MDT)

> Is there any way to get flet and labels to indent their definitions like 
> defun?

It looks like you used tabs (of unknown width) that got converted to some 
other width, so it's hard to say what you really want.  But that's not 
actually relevant: the problem is that the thing controlling the 
indentation of (bar) is actually `foo', since it's the function name in 
that sexp.  However, you can probably do something deep and dark with

(put 'flet 'lisp-indent-hook 'indent-flet)
(defun indent-flet (state indent-point) ...)

But beyond that all I know is to read the source for
`calculate-lisp-indent', `lisp-indent-defform', and friends.

Davis Herring

This product is sold by volume, not by mass.  If it seems too dense or too 
sparse, it means mass-energy conversion has occurred during shipping.

reply via email to

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