[PATCH] documentation - tabs usage
Matěj Týč <[email protected]> Tue, 11 May 2010 00:23:29 +0200
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have found difficult to figure out how to make indent to use tabs. I have found a nice description on a forum: http://osdir.com/ml/gnu.utils/2007-05/msg00017.html I have also made a modest patch, so feel free to do whatever with it, but I would like to have information like this in the documentation. Regards, Matěj Týč _______________________________________________ bug-indent mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-indent
tabs.patch
(text/x-patch, 586 B)
--- indent.texinfo 2008-03-11 19:50:42.000000000 +0100
+++ indent.texinfo 2010-05-11 00:15:40.000000000 +0200
@@ -1762,6 +1762,14 @@
@item -i@var{n}
@itemx --indent-level@var{n}
Set indentation level to @var{n} spaces.@*
+
+In case that you would like the code to be indented using tabs an not spaces, make sure that you do the following
+@itemize
+ @item Don't use the @option{-nut} option that bans the usage of tab
+ @item Use the @option{-i8} option (8 is the default tab width)
+@end itemize
+Those spaces will get collapsed to tabs.
+
@xref{Indentation}.
@item -il@var{n}