[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Idea: unify *newline(-and-indent)
From: |
Lennart Borgman (gmail) |
Subject: |
Re: Idea: unify *newline(-and-indent) |
Date: |
Sun, 31 Aug 2008 13:59:20 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Daniel Colascione wrote:
> Then, take all the functions above and convert them to functions that
> can be plugged into interactive-newline-function. The situation we end
> up with something like indent-for-tab-command and indent-line-function.
>
> Is it worth writing the patch?
>
> Thanks,
> Dan
I think this would be very good.
Users that normally use several different major could benefit. This is
of course often the case in web development.
> (Also – any objections to making cc-mode and lisp-mode use
> indent-for-tab-command? The lisp tab command
> has an indent-whole-sexp feature, but that be handled by passing the
> prefix argument to indent-line-function. The cc-mode indent function has
> some tab-or-indent DWIM feature, but isn't it better to put that in
> indent-for-tab-command by extending tab-always-indent?)
In my opinion, yes.