On 04/09/2014 20:08, Dirk Hohndel wrote:
On Thu, Sep 04, 2014 at 07:31:42PM +0200, Willem Ferguson wrote:
On 04/09/2014 16:58, Salvo Tomaselli wrote:
In data martedì 26 agosto 2014 10:39:14, Dirk Hohndel ha scritto:
Both this and the previous patch are whitespace damaged.

Can I please get ONE patch that uses tabs to indent?
It would be cool if you could provide astyle parameters or something similar
to use before applying patches, so that they are styled properly (not just the
tabs but everything else too.

I normally go town the left hand of the code and delete-tab back EACH line
until it is flush against the left margin. Then I tab this line of code in
order to place it back in the correct horizontal position. Then I go down
the right hand side of the code checking each line to see there is no space
at the end of the line. White space is difficult to see, so I may perhaps
indulge in an oversight here and there but I really try to do this
consistently.
Umm. That's nuts :-)

Use emacs and do M-x whitespace-cleanup and 99% of the problems will be
fixed. And with the settings in the CodingStyle document most editors will
help you produce good looking and correctly indented code to begin with.

Which editor are you using by default?

I have not been doing a lot of work on Emacs since it, like vi and vim, is not Posix compliant. Ctl-C, Ctl-X, Ctl-Z and Ctl-V have different meanings in Emacs compared to gedit (my default editor) or most other full-screen editors. Ironically some years ago I had no problems with Wordstar, another keyboard-intensive text processor with a similar approach as Emacs.

But I have Emacs and if that is the most efficient tool to get the work done, then I will certainly do it this way. Is it only the whitespace-cleanup command or are there others that are useful as well to clean up code?

Please also tell me how the pearl script indicates whitespace?

Kind regards,
willem

_______________________________________________
subsurface mailing list
subsurface@hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to