Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-22 Thread Graeme Geldenhuys
Op 2010-10-21 19:34, Martin het geskryf: Well I didn't invent it, so I don't know it's original intend. But tabs (or rather the tab key, producing a sequence of spaces) are not only used for indent (as in indent at the start of line) This brings me to my next question (see the fpc-devel

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Graeme Geldenhuys
Op 2010-10-21 00:21, waldo kitty het geskryf: just to toss my two cents into the ring... the above is not for me... i'm very old-school... begin and end get their own line in my world... +1 I use Borland Delphi coding style. Always have, always will. Regards, - Graeme - -- fpGUI

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread A.J. Venter
Since I did this, I find that switching back and forth from Java/C#/Pascal/Javascript makes for quick code reading.  Otherwise it's way too difficult.  I realize this is just my personal preferences but I am also convinced after using this technique, most would be using it as well. I've

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Marco van de Voort
On Wed, Oct 20, 2010 at 07:59:48AM -0500, Andrew Brunner wrote: ?if Accept then ?begin | 1 2 ? ?3 ? ?4 ? 5 Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread A.J. Venter
Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or (conditionx=conditiony) then begin   // code here end else begin   // more code here end; I never got used to having begin

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: I have never seen code indented the way that smart tab algorithm works, so what's the point of it then. Look at C code... DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Martin
On 20/10/2010 14:12, Graeme Geldenhuys wrote: Op 2010-10-20 14:52, Martin het geskryf: I updated the help: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options#Smart_tabs Hope it is more understandable now. if Accept then begin | 1 234 5 PS: I have never seen code

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-21 Thread Sven Barth
Am 21.10.2010 15:10, schrieb A.J. Venter: In C there seems to be two popular approaches, one putting the opening { on the same line (this seems to be by far more popular one in languages like python) and the other putting it on it's own line as we normally do with begin. This is the GNU

[Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Hi, I've played with the latest snapshot of Lazarus and FPC (as release by Vincent) for the last 3 days now. I started with a new profile (via --pcp= parameter). Off the bat, one *major* annoyance of Lazarus IDE now is that I seem to spend more time trying to figure out how to disable all the

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
I have also concluded that the editor settings smart tabs should be renamed to idiot/stupid tabs instead, because that is exactly what it does! | symbol denotes cursor pos, and stupid tabs enabled, and auto indent disabled and tab indentation set to 2, tabs set to spaces. eg: if Accept then

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Henry Vermaak
On 20/10/10 10:39, Graeme Geldenhuys wrote: Hi, I've played with the latest snapshot of Lazarus and FPC (as release by Vincent) for the last 3 days now. I started with a new profile (via --pcp= parameter). Off the bat, one *major* annoyance of Lazarus IDE now is that I seem to spend more time

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 12:00, Henry Vermaak het geskryf: Hmm, yes, same here. Glad I'm not alone in this boat. I have been using the same profile for years, so it wasn't much of a problem, but starting with a new profile, I had to start fiddling with all the various editor settings (which I normally

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Alexander Klenin
On Wed, Oct 20, 2010 at 20:39, Graeme Geldenhuys graemeg.li...@gmail.com wrote: I started with a new profile (via --pcp= parameter). Off the bat, one *major* annoyance of Lazarus IDE now is that I seem to spend more time trying to figure out how to disable all the damn I'm trying to be clever

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Martin
On 20/10/2010 10:39, Graeme Geldenhuys wrote: Hi, I've played with the latest snapshot of Lazarus and FPC (as release by Vincent) for the last 3 days now. I started with a new profile (via --pcp= parameter). Off the bat, one *major* annoyance of Lazarus IDE now is that I seem to spend more

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 14:40, Martin het geskryf: the new one: Codetools - general overrides the above, if switched on, and does the mind of it's own auto indent Ah, finaly I killed the indent on paste feature too. It always got it wrong. yeah, I know: who is expecting it to be in the

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Andrew Brunner
Actually, I am often pleased when I copy/cut and past a block of text from one area to another only to find that the Editor knew what I was trying to do. I've left all the defaults the same. But I install Ubuntu often. One suggestion may be to delete your Lazarus profile information in your

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Martin
On 20/10/2010 10:49, Graeme Geldenhuys wrote: I have also concluded that the editor settings smart tabs should be renamed to idiot/stupid tabs instead, because that is exactly what it does! | symbol denotes cursor pos, and stupid tabs enabled, and auto indent disabled and tab indentation set

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Andrew Brunner
 if Accept then  begin | 1 2    3    4   5 Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or (conditionx=conditiony) then begin // code here end else begin // more code here

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 14:51, Andrew Brunner het geskryf: Ubuntu often. One suggestion may be to delete your Lazarus profile information in your home directory. This will reset everything to the latest and greatest as defaults and ensure that any settings you change will actually be respected...

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 14:52, Martin het geskryf: I updated the help: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options#Smart_tabs Hope it is more understandable now. if Accept then begin | 1 234 5 1 begin of line 2 first word begin 3 end of line 4 next word,

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 15:11, Andrew Brunner het geskryf: Hmm... When using lazarus from /trunk you should be more open to discussing/resolving/reporting issues with respect to leaps in features such as smart space/tabs. Do a Mantis search, I think I report more than enough bugs already. The purpose

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys graemeg.li...@gmail.com: I have also concluded that the editor settings smart tabs should be renamed to idiot/stupid tabs instead, because that is exactly what it does! | symbol denotes cursor pos, and stupid tabs enabled, and auto indent disabled and tab

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Martin
On 20/10/2010 14:28, Mattias Gärtner wrote: Zitat von Graeme Geldenhuys graemeg.li...@gmail.com: I have also concluded that the editor settings smart tabs should be renamed to idiot/stupid tabs instead, because that is exactly what it does! | symbol denotes cursor pos, and stupid tabs

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Vincent Snijders
2010/10/20 Graeme Geldenhuys graemeg.li...@gmail.com: Op 2010-10-20 15:11, Andrew Brunner het geskryf: Hmm... When using lazarus from /trunk you should be more open to discussing/resolving/reporting issues with respect to leaps in features such as smart space/tabs. Do a Mantis search, I

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread zeljko
And yes that page automatic features is another place, where no one ever would expect anything (half of it is display related, and should be on a page nested into display) = for the rest: a good name is needed (maybe the hints can even get there own page...) At least all those

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Mattias Gärtner
Zitat von Martin laza...@mfriebe.de: On 20/10/2010 10:39, Graeme Geldenhuys wrote: Hi, I've played with the latest snapshot of Lazarus and FPC (as release by Vincent) for the last 3 days now. I started with a new profile (via --pcp= parameter). Off the bat, one *major* annoyance of Lazarus

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 15:28, Mattias Gärtner het geskryf: Have you seen the link on the editor options to the codetools option? Yes, but that seems wrong. Why two tools to do indentation, and if both enabled gives undefined behaviour. It should always be one or the other, and preferably on the same

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Graeme Geldenhuys
Op 2010-10-20 15:49, Mattias Gärtner het geskryf: Yes. OTOH codetools are only for pascal. If we move the codetools options to the editor options, it must be made clear that these are only for pascal. I didn't know that, but I see your point. I'm not sure how to do that in an

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Mattias Gärtner
Zitat von Andrew Brunner andrew.t.brun...@gmail.com: [...] But I do agree that this is frustrating. I remember when Lazarus used to crash when laying out my forms with tons of components only to be missing them when I reopen the editor. I also recall a time when Delphi did the very same

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys graemeg.li...@gmail.com: Op 2010-10-20 15:28, Mattias Gärtner het geskryf: Have you seen the link on the editor options to the codetools option? Yes, but that seems wrong. Why two tools to do indentation, and if both enabled gives undefined behaviour. It should

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread Martin
On 20/10/2010 14:49, Mattias Gärtner wrote: Yes. OTOH codetools are only for pascal. If we move the codetools options to the editor options, it must be made clear that these are only for pascal. I'm not sure how to do that in an intuitive way. I still think they need a more prominent

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread waldo kitty
On 10/20/2010 08:59, Andrew Brunner wrote: if Accept then begin | 1 234 5 Actually, I rarely break my If statements across more than one line save to accommodate large logic statements for code readability. if (condition1=condition2) or (conditionx=conditiony) then begin //

Re: [Lazarus] Verdict of Lazarus 0.9.29

2010-10-20 Thread waldo kitty
On 10/20/2010 09:12, Graeme Geldenhuys wrote: Op 2010-10-20 14:52, Martin het geskryf: I updated the help: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options#Smart_tabs Hope it is more understandable now. if Accept then begin | 1 234 5 1 begin of line 2 first