From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.13.215.74 with SMTP id z71mr20685749ywd.16.1498090186384; Wed, 21 Jun 2017 17:09:46 -0700 (PDT) X-Received: by 10.157.40.162 with SMTP id s31mr932481ota.12.1498090186343; Wed, 21 Jun 2017 17:09:46 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!y44no285276qth.1!news-out.google.com!s132ni1197itb.0!nntp.google.com!f20no543036itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 21 Jun 2017 17:09:46 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:445:9595:d58b:9f7e; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:445:9595:d58b:9f7e References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: [BBC] Programmers who use spaces 'paid more' From: Robert Eachus Injection-Date: Thu, 22 Jun 2017 00:09:46 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:47053 Date: 2017-06-21T17:09:46-07:00 List-Id: On Wednesday, June 21, 2017 at 8:27:56 AM UTC-4, Simon Wright wrote: > Dead simple: use the TAB key to tell the editor to align the=20 > current/selected lines appropriately; and leave the editor to decide=20 > whether to use tab characters (C-I) to implement the indent or just=20 > spaces.=20 > I agree that you have a problem if your project standards require some=20 > weird setting, but it's still a question of customising the editor.=20 I'm trying to remember whether I first used untabify in Emacs, but it was s= ometime in the 1960s. Untabify doesn't change the appearance of code if th= e tabs in Emacs match the settings on your display device. But there are n= o tabs left in the source file. If you were programming in a language wher= e tabs in (the code portion of) source files could make for hours of work,= it was a real time saver. (Oh, and you set your tab key to insert three sp= aces if that was what you wanted.) A few years later I was working on projects where the checked in files used= the project standard. If you opened one of the files in an editor? The p= retty printer would use your settings. If you checked the file back in aft= er changes, the first step was to run it through the pretty printer with no= errors. (The stuff that the pretty printer could fix would be fixed autom= atically. But if you added access to a library file which was not supposed= to be used here? Bad programmer, no cookie. ;-)