[Top][All Lists]

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

Re: Incorrect indentation after :name

From: Stefan Monnier
Subject: Re: Incorrect indentation after :name
Date: Tue, 05 Jul 2005 01:21:46 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     +      (if (or (not function)
>     +       (and (> (point) (1+ (point-min)))
>     +            (or (save-excursion (backward-char 2) (looking-at "'("))
>     +                (keywordp (intern-soft function)))
>     +            (not (fboundp (intern-soft function)))))

> The problem is, this will do the wrong thing when you edit
> a call to a function defined in a file that isn't loaded.

> It might be better to check for a quote in front of
> the current list or a surrounding list.  That could work reliably.

I do check for a quote.  The check for `fboundp' is to try and "correctly"
indent things like

       '(with-current-buffer buf

which occur sometimes in macros.


reply via email to

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