help-zile
[Top][All Lists]
Advanced

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

[zile-devel] [ zile-Bugs-1889859 ] indent_relative always uses spaces


From: SourceForge.net
Subject: [zile-devel] [ zile-Bugs-1889859 ] indent_relative always uses spaces
Date: Fri, 08 Feb 2008 14:50:57 -0800

Bugs item #1889859, was opened at 2008-02-08 21:49
Message generated for change (Comment added) made by rrt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=117089&aid=1889859&group_id=17089

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: indent_relative always uses spaces

Initial Comment:
In line.c, the function indent_relative always inserts spaces, regardless of 
how the previous line is indented or indent-tabs-mode.  As a result, with 
indent-tabs-mode t, this input:

<TAB>foo
<TAB>bar

produces this output:

<TAB>foo
<SPACE><...><SPACE>bar

Obviously, this could break any file with syntactically significant whitespace. 
 Even when whitespace is used only for formatting, nobody wants inconsistent 
indentation.  (Anyone who doesn't care wouldn't need to set indent-tabs-mode.)

Fortunately, the most flexible solution is also the simplest: indent_relative 
should replicate exactly the indentation of the previous line, as its name 
implies.

----------------------------------------------------------------------

>Comment By: Reuben Thomas (rrt)
Date: 2008-02-08 22:50

Message:
Logged In: YES 
user_id=50145
Originator: NO

I'm afraid that while you're right that Zile should not just use spaces,
and I'll fix that, you're wrong that it should (or could) copy the
indentation of the previous line, as that is not what indent-relative does
in Emacs, and it is more important that Zile behave exactly like Emacs than
that it fix design bugs. Emacs's indent-relative indents by calling
indent-to, which indents a given amount using spaces and tabs. So if you've
used anything other than tabs up to a multiple of 8 followed by <8 spaces,
you lose, sorry.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=117089&aid=1889859&group_id=17089



reply via email to

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