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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4463baaf1b7fc03f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.222.71 with SMTP id qk7mr7796506pbc.1.1328388617095; Sat, 04 Feb 2012 12:50:17 -0800 (PST) Path: lh20ni260723pbb.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: GPS wrong handling of CR / LF in a virtual Windows Date: Sat, 04 Feb 2012 20:50:15 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="13373"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KTYKtIwj+qob/9JR4iyXxoq6sqS7AAPk=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:s1UIXZfM9odnENS0vzHAauVwNoc= sha1:D5rIkNoIbYK2DybPlJMq0kaNh6o= Content-Type: text/plain; charset=us-ascii Date: 2012-02-04T20:50:15+00:00 List-Id: Achim writes: > I have a very strange problem using the following configuration: > > Gnat: GNAT GPL 2011 / GPS 5.0.1 > OS: Virtual Windows XP using Virtual-Box on Host Mac-OS 10.6 > > The GPS editor does not handle CR/LF charaters correctly. > When the cursor is at the end of the line (behind the last displayed > character) and enter is pressed, no empty new line appears, but all > line numbers are incremented by one. > E.G. when the cursor is on the 5-th line in front of the 6-th line the > numbers 6 AND 7 are displayed in the same character. After each > pressing of enter another line-number is displayed in front of the > next line, all in the same place, but no new empty line is inserted. > > I tried all variations in the preferences-editor-Ada dialogs but > without any success. > > I've newer seen such behaviour, not on Mac-OS, Ubuntu or native Windows. > > The same thing happens when already existing files are displayed in > the editor. All existing empty lines are not shown. > > The whole thing is a bit disturbing. > I would appreciate any hint. This sounds rather like the problem I reported 31 July 2010 [J731-001]; if so, it's to do with font selection. > On Mac OS X Snow Leopard, GNAT GPL 2010's GPS 4.4.1 doesn't find the > Lucida fonts; the result is odd-looking, not least because blank lines > are squashed: see lines 22/23, 25/26, 27/28 etc below. > > Monaco is a much better choice (at points 10/9 rather than the default > 12/10). On this machine (Lion) I have the fonts set to Inconsolata, but I think that was a download from . Monaco certainly works for me. In Edit/Preferences, there are 2 font settings unger General and one under Editor/Fonts & Colors - the last is the one that controls code appearance. HTH