1 |
sön 2001-11-11 klockan 13.39 skrev Martin Schlemmer: |
2 |
> On Sun, 2001-11-11 at 14:27, Mikael Hallendal wrote: |
3 |
> > lör 2001-11-10 klockan 22.04 skrev Daniel Robbins: |
4 |
> > > On Sat, Nov 10, 2001 at 03:39:13PM -0500, Chris Houser wrote: |
5 |
> > > > Daniel Robbins wrote: [Sat Nov 10 2001, 1:24:42PM EST] |
6 |
> > > > > OK, if people need rules, I can provide them: |
7 |
> > > > > |
8 |
> > > > > 1) Use one tab per indent |
9 |
> > > > > |
10 |
> > > > > 2) Put comments on separate lines |
11 |
> > > > > |
12 |
> > > > > 3) Avoid using "/" line continuation characters and use long lines instead. |
13 |
> > > > |
14 |
> > > > Oh, please not 3) ... I realy dislike long lines. I don't think it's |
15 |
> > > > too big a deal if the line continuations don't line up for everybody. |
16 |
> > > |
17 |
> > > OK, I'll amend 3. Either you can use long lines, or you can use "/" line |
18 |
> > > continuation characters. If you *do* use line continuation characters, you |
19 |
> > > should *not* try to tab align them so that they're "pretty". Instead, follow |
20 |
> > > the line with a single space, then a "/", and then a newline. |
21 |
> > |
22 |
> > Hmm .. imho it's much easier to read with the \ aligned. |
23 |
> > I think we can do this by supplying a emacs/vi-mode for editing ebuilds. |
24 |
> > Those modes should be strict and force the developer to do it right. |
25 |
> > |
26 |
> |
27 |
> Sure, but the problem just is: they do not align for different |
28 |
> tabwidth's, so the emacs/vi-mode is not going to help much in |
29 |
> that respect. We either have to do it with only a space |
30 |
> before the \, or all use a tabwidth of 4 as recommended by |
31 |
> drobbins. |
32 |
> |
33 |
> Ill rather go for the space before the \ then, no offence to |
34 |
> the 4 tabwidth guys ;) |
35 |
|
36 |
I don't think there will be any problem making the emacs/vi-mode that |
37 |
aligns the '\' with just one tab. Of course it won't look very good with |
38 |
a non-emacs/vi editor but then it will look like 'foo \' will. |
39 |
|
40 |
We should look on the ebuilds as source and not text-files. Just take a |
41 |
look at emacs C-mode for example. When you hit TAB it aligns it |
42 |
correctly, not 4 or 8 spaces. You set the indentwidth and so should we. |
43 |
|
44 |
Ok, I'm a bit tired now so the above might be kinda hard to read but you |
45 |
get the picture? :) |
46 |
|
47 |
Regards, |
48 |
Mikael Hallendal |
49 |
|
50 |
-- |
51 |
|
52 |
Mikael Hallendal |
53 |
Gentoo Linux Developer, Desktop Team Leader |
54 |
CodeFactory AB, Stockholm, Sweden |