# [slime-devel] Patch for :DEFAULT-INITARGS indentation problem

Desmond O. Chang dochang at gmail.com
Wed Jun 30 14:06:04 UTC 2010

```On Wed, Jun 30, 2010 at 4:45 PM, Helmut Eller <heller at common-lisp.net> wrote:
> * Desmond O. Chang [2010-06-29 20:52] writes:
>
>> On Tue, Jun 29, 2010 at 2:19 PM, Helmut Eller <heller at common-lisp.net> wrote:
>>>
>>> Something like
>>>
>>>  (put 'default-value 'common-lisp-indent-function '(&rest))
>>>
>>> would probably be easier than adding yet another special case to the
>>> indentation code.  Or writing \Default should also work.
>> I prefer configuration to patch, but your solutions also have two problems:
>>
>> 1. In the `put' way, I have to manually set every `default-*' symbol
>> which does not indent as `defun'.
>
> Hopefully there aren't that many.
>
>> 2. In the backslash way, I need to modify existing code, and syntax
>> highlight doesn't work on :\default-initargs.
>>
>> Is there a perfect way?
>
> Maybe a better indentation function for defclass.

Now I put :default-initargs config in .emacs and try to avoid using
any other `default-*' symbol.

It's currently acceptable for me.  Thank you for your suggestion.

Des

```