Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-05

Block completion configuration

9 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

I have 'block completion' enabled (well, I recompiled lazarus and it was on by default) When I type the begin keyword, the editor now adds an end; keyword. However, the end; keyword is wrongly aligned, as for example in:

   With Something do
     begin
   end;

i.e. the 'end' keyword is de-indented with 2 spaces with respect to the begin keyword. can this be configured somehow ?

because the way it is now, I disabled the block completion feature.

Michael.

Reply by email

Mattias Gaertner
to Michael Van Canneyt
Show quoted text 14 lines
Hi, I have 'block completion' enabled (well, I recompiled lazarus and it was on by default) When I type the begin keyword, the editor now adds an end; keyword. However, the end; keyword is wrongly aligned, as for example in: With Something do begin end; i.e. the 'end' keyword is de-indented with 2 spaces with respect to the begin keyword. can this be configured somehow ?

No, because it is a bug. Fixed in 20280.

because the way it is now, I disabled the block completion feature.

block completion is not yet perfect.

Mattias

Reply by email

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Thu, 28 May 2009 12:33:31 +0200 (CEST) Michael Van Canneyt wrote: > > Hi, > > I have 'block completion' enabled (well, I recompiled lazarus and it > was on by default) When I type the begin keyword, the editor now adds > an end; keyword. However, the end; keyword is wrongly aligned, as for > example in: > > With Something do > begin > end; > > i.e. the 'end' keyword is de-indented with 2 spaces with respect to > the begin keyword. can this be configured somehow ? No, because it is a bug. Fixed in 20280.

That was fast...

Show quoted text 5 lines
> because the way it is now, I disabled the block completion feature. block completion is not yet perfect.

Well, Rome wasn't built in a day either...

Thanks for the quick reaction !

Michael.

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 9 lines
Michael Van Canneyt schrieb: > I have 'block completion' enabled (well, I recompiled lazarus and > it was on by default) me2 - good for debugging this new feature, bad while it has bugs. When a conditional block is added to an existing begin-end section, another "end" seems to be inserted into this block while editing.

Please provide an example.

Mattias

Reply by email

Hans-Peter Diettrich
to Mattias Gaertner
> When a conditional block is added to an existing begin-end section, > another "end" seems to be inserted into this block while editing. Please provide an example.

Is it sufficient to show the result?

DoDi

Reply by email

Mattias Gärtner
to Hans-Peter Diettrich

Zitat von Hans-Peter Diettrich :

Show quoted text 9 lines
Mattias Gaertner schrieb: >> When a conditional block is added to an existing begin-end >> section, another "end" seems to be inserted into this block while >> editing. > > Please provide an example. Is it sufficient to show the result?

Don't know.

Just provide the example and at which line end you press return.

Mattias

Powered by NetMail

Reply by email

Hans-Peter Diettrich
to Mattias Gärtner
Show quoted text 10 lines
>>> When a conditional block is added to an existing begin-end section, >>> another "end" seems to be inserted into this block while editing. >> >> Please provide an example. > > Is it sufficient to show the result? Don't know. Just provide the example and at which line end you press return.

I don't know when exactly the end was inserted. I just was there, preventing compilation.

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 16 lines
Mattias G?rtner schrieb: >>>> When a conditional block is added to an existing begin-end >>>> section, another "end" seems to be inserted into this block >>>> while editing. >>> >>> Please provide an example. >> >> Is it sufficient to show the result? > > Don't know. > > Just provide the example and at which line end you press return. I don't know when exactly the end was inserted. I just was there, preventing compilation.

If you can not reproduce it, maybe it was already fixed?

Mattias

Reply by email