Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] PG indentation

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] PG indentation


Chronological Thread 
  • From: Beta Ziliani <bziliani AT famaf.unc.edu.ar>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] PG indentation
  • Date: Mon, 12 Sep 2016 16:14:36 -0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=bziliani AT famaf.unc.edu.ar; spf=None smtp.mailfrom=bziliani AT famaf.unc.edu.ar; spf=None smtp.helo=postmaster AT famaf.unc.edu.ar
  • Ironport-phdr: 9a23:yhWkMRXllbW1kK5eGWovYBh9wsPV8LGtZVwlr6E/grcLSJyIuqrYZh2Dt8tkgFKBZ4jH8fUM07OQ6PG5HzJQqs/a6jhCKMUKDE5dz51O3kQJO42sMQXDNvnkbig3ToxpdWRO2DWFC3VTA9v0fFbIo3e/vnY4ExT7MhdpdKyuQtaBx/q+2+36wZDPeQIA3GP7OuIrakvm5lyK7IFW2dIkcfdpjEOR4zNhQKd//StQP1WdnhLxtI+b3aVI1GBugc8n7NNKSq7gfq41HvRyBTUiNH0ptoWw7UGQBSPG3HYXU30XnxxUGECFqUiiBtai+hf948F6wWGxOdD8BeQ/Xi3n5KN2Qjfpjj0GPng36jeEpNZ3ifdxrQ6o7y5+x4/dZoDdYPBsf6fcdNUbbWRIW89fETFHCcWxY5ZJBvBXbrUQlJX0u1Zb9Uj2PgKrHu66j2YQ3nI=

Dear Clément,

Thanks for looking into this.

The settings:

Coq Indent Box Style: off (nil)
Coq Script Indent: off (nil)

Here is some test code:

Example indent_test : True.
Proof.
let why_this_is_indentend :=
and why this is here in
x <- some MetaCoq code;
y <- ouch this shouldnt be indented;
ret why_isnt_this_indented_BTW.
Qed.

I prefer to set the tab as two spaces, and mange it myself. But Proof
General is inserting its own indentation (and sometimes in a weird
way, see e.g. the two lines ending with ;).

And what is really pissing me off is that it is changing the
indentation I wrote. For instance, if I decide to move the y <- ouch
... code so it is aligned with the previous line, after hitting enter
PG will move it back to where it is in the code above. Maybe there are
some other options I’m missing?

Best,
Beta

On Mon, Sep 12, 2016 at 3:58 PM, Clément Pit--Claudel
<clement.pit AT gmail.com>
wrote:
> Hi Beta,
>
> How do you set these settings? Can you share a snippet and show the
> expected indentation?
>
> Cheers,
> Clément.
>
> On 2016-09-12 14:47, Beta Ziliani wrote:
>> Hi list,
>>
>> I updated PG and now it is indenting my code in a way I don't want it
>> to. I'm aware of the options Coq Script Indent and Coq Indent Box
>> Style, however they seem to have no effect whatsoever. Any clues?
>>
>> Thanks,
>> Beta
>>
>



Archive powered by MHonArc 2.6.18.

Top of Page