Hi all,
This patch resolves the :DEFAULT-INITARGS indentation problem described by Zach [1]. It is based on Bill's one [2], and I make the indentation methods lookup correct. Bill said it's a yucky patch, but at least it works. I hope the patch can be commited.
Thanks, Des
[1] http://common-lisp.net/pipermail/slime-devel/2007-February/013759.html [2] http://common-lisp.net/pipermail/slime-devel/2007-February/013760.html
* Desmond O. Chang [2010-06-27 16:40] writes:
Hi all,
This patch resolves the :DEFAULT-INITARGS indentation problem described by Zach [1]. It is based on Bill's one [2], and I make the indentation methods lookup correct. Bill said it's a yucky patch, but at least it works. I hope the patch can be commited.
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.
Helmut
On Tue, Jun 29, 2010 at 2:19 PM, Helmut Eller heller@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'. 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?
* Desmond O. Chang [2010-06-29 20:52] writes:
On Tue, Jun 29, 2010 at 2:19 PM, Helmut Eller heller@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:
- In the `put' way, I have to manually set every `default-*' symbol
which does not indent as `defun'.
Hopefully there aren't that many.
- 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.
Helmut
On Wed, Jun 30, 2010 at 4:45 PM, Helmut Eller heller@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@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:
- In the `put' way, I have to manually set every `default-*' symbol
which does not indent as `defun'.
Hopefully there aren't that many.
- 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