[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Indenting
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-03-20 23:23:06
[Download RAW message or body]

On Mon, Mar 20, 2000 at 06:19:07PM -0500, Cristian Tibirna wrote:
> 
> On Mon, 20 Mar 2000, David Faure wrote:
> 
> > This being said, I agree, tabs suck. :)
> > I would be happy with any decision for a standard indentation of 2,
> > 3 or 4 spaces, so that I could set emacs to it once and for all.
> > Currently I have to adapt it to the file I'm working on... :)
> > But since this will never happen, I'll keep adapting ;-)
> > 
> 
> God, how well I understand you !!! :-)
> 
> Luck is that X/Emacs is intelligent enough to obey to local tab rule when
> editing inside existing code blocks. Problem is when creating new blocks
> (like a new method in an already existing class). Once you start a block
> that has a first unindented line, you're back at your default rule.
Yup.

> Now, the idea: we need a LISP guru to adapt Arnt's .emacs so that it
> automatically determines and sets the appropriate indenting count for a
> file at opening.
This is impossible - it assumes the file is consistent in itself.
Open any kspread source file (except the ones I just hacked!), and you
will soon see that it's far from being the case.
There are statements all over the place. You can hardly determine
anything from that.

OTOH, a first line that sets the variable could do it
(like I've seen for vi). But I don't know the syntax for emacs. Anybody ?

> Intelligently (the pondered mean of all indents :-) I
> think I'll pray God to lend on me that extra pair of brains that He
> provisioned for my next life, so that I can start understanding Lisp ;-^
;-)

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See ftp://mandrakesoft.com/pub/david/kde1-and-kde2.txt to set up KDE 2

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic