Re: [Lazarus] Block completion configuration

2009-05-29 Thread Mattias Gaertner
On Fri, 29 May 2009 15:20:29 +0200
Hans-Peter Diettrich  wrote:

> 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

___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-29 Thread Hans-Peter Diettrich

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.


DoDi


___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-29 Thread Mattias Gärtner

Zitat von Hans-Peter Diettrich :


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


___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-28 Thread Hans-Peter Diettrich

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?

DoDi


___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-28 Thread Mattias Gaertner
On Thu, 28 May 2009 16:24:52 +0200
Hans-Peter Diettrich  wrote:

> 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

___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-28 Thread Hans-Peter Diettrich

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.


DoDi


___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-28 Thread Michael Van Canneyt



On Thu, 28 May 2009, Mattias Gaertner wrote:


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...





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.

___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Block completion configuration

2009-05-28 Thread Mattias Gaertner
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.


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

block completion is not yet perfect.


Mattias

___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Block completion configuration

2009-05-28 Thread 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.


___
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus