From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: pretty-print case-when GPS confusion Date: Mon, 17 Aug 2020 07:25:05 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 17 Aug 2020 05:25:06 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="b2b991894d029904599c327604d24fd6"; logging-data="13546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X/qd7e/WKtRILu67GFSMr3OMSB6rlVpY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cancel-Lock: sha1:LsI9QZ9wai/U0d5yPIoXvCGo4oM= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:59735 List-Id: On 8/17/20 1:22 AM, Micah Waddoups wrote: > So, I have been happy with my pretty-printing/formatting within GPS for a long time, but there is one thing that really gets me irritated because it tends to run the text out of the visible area. That is the inconsistant indenting of "when" within the scope of "case". Sometimes it indents, which I do NOT want, and sometimes it does not indent. I know the mechanics of the decision and I can manually tweak it, but it is a persistent problem. I use case statements often enough that when it behaves against my wishes, just a few layers of case statements tends to go off the screen to the right and I find the result more difficult to read. > > Does anyone have a simple solution or switch to use that I have overlooked? Under Edit=>Preferences=>Editor=>Ada is Case Indentation. Choosing Non RM Style seems to consistently give what you want. If you want similar (non) indentation of "when" under "exception" then you're out of luck. -- Jeff Carter "Apple juice and Darvon is fantastic together." Play It Again, Sam 127