emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code cleanup.


From: Kim F. Storm
Subject: Re: Code cleanup.
Date: Mon, 23 Oct 2006 18:50:21 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> At what stage of development (if at all) should such janitorial
> changes be usually applied?

Code cleanup is usually welcome -- but this is not the time.

> On a completely different tangent: wouldn't it be much more readable
> (though likely not completely correct in some perverse manner) if
> diff-mode actually had its TAB positions in column 9,17,25... instead
> of the customary 8,16,24...?  At least in context and unified diffs,
> that would _much_ better reflect the relative indentation of the
> actual change than the current behavior.
>
> It does not look like `tab-width' can be made to do that, but maybe
> one could use a display property in order to move the information of
> column 0 into the fringe.

Simpler would be to put the "diff decoration" in the left margin and
put the fringe outside the margins.  Then the user wouldn't see any
difference (except that tabs line up correctly).

> But it would probably be saner if tab-width were extended to allow,
> say, a cons-cell of initial offset and tab-width.

Or a list (1 9 17 t)  
(where t means to repeat tabs every "difference between last two elements).

--
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]