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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Ada.Text_IO.Get_Line issue in windows Date: Wed, 3 Jun 2015 10:08:43 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <556be876$0$2775$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Wed, 3 Jun 2015 10:08:43 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="3e823c68bf0b0c2f1772cc1070aaf7a3"; logging-data="13235"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zl2Gc6VW1QyMz0K5uwAEvgsRfxUduer8=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:6EpInaWZeqCEsznhNoLnz1ErlMc= Xref: news.eternal-september.org comp.lang.ada:26156 Date: 2015-06-03T10:08:43+00:00 List-Id: On 2015-06-03, Simon Wright wrote: > tornenvi writes: > >> Is this a bug in the windows builds of GNAT? > > It took me some time to realise that Emacs was automatically adding a > linefeed to the end of the example file. That behaviour is adjustable in Emacs and the default with early versions of Emacs was _not_ to add the line terminator to the final record in the file. I have had the following line in my .emacs since the 1990s: (setq require-final-newline t) However, your comment above implies that the default has changed so I don't know if that's now obsolete in the very latest Emacs versions. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world