comp.lang.ada
 help / color / Atom feed
* pretty-print case-when GPS confusion
@ 2020-08-16 23:22 Micah Waddoups
  2020-08-17  5:25 ` Jeffrey R. Carter
  0 siblings, 1 reply; 2+ messages in thread
From: Micah Waddoups @ 2020-08-16 23:22 UTC (permalink / raw)


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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pretty-print case-when GPS confusion
  2020-08-16 23:22 pretty-print case-when GPS confusion Micah Waddoups
@ 2020-08-17  5:25 ` Jeffrey R. Carter
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey R. Carter @ 2020-08-17  5:25 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-16 23:22 pretty-print case-when GPS confusion Micah Waddoups
2020-08-17  5:25 ` Jeffrey R. Carter

comp.lang.ada

Archives are clonable: git clone --mirror https://archive.legitdata.co/comp.lang.ada

Example config snippet for mirrors


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git