Re: [Lazarus] How to unset bookmarks in the editor?

2008-11-25 Thread Martin Friebe
You can put a feature request in the bugtracker ( I will pick it up) However it will be a while before I get to work on it... This is unless someone actually brings a reason, why this would be a bad feature Martin Graeme Geldenhuys wrote: On Tue, Nov 25, 2008 at 4:51 PM, Mattias Gärtner

Re: [Lazarus] How to unset bookmarks in the editor?

2008-11-25 Thread Martin Friebe
Joost van der Sluis wrote: Op dinsdag 25-11-2008 om 15:25 uur [tijdzone +], schreef Martin Friebe: You can put a feature request in the bugtracker ( I will pick it up) However it will be a while before I get to work on it... This is unless someone actually brings a reason, why

Re: [Lazarus] Synedit highlighting

2008-11-23 Thread Martin Friebe
Brad Campbell wrote: Is there any way of setting the default background colour of a line from a SynHighlighter? I need to change the background colour based on the currently assigned range. I have been doing it with a hack to synedit that leaves the background colour the same as the

Re: [Lazarus] After using TSynCompletion, the SynEdit dont want to write the first Char, but after the first Char all works

2008-11-10 Thread Martin Friebe
Hi, I haven't fully investigated this, put it may be related to the fact that you install some custom onKeyPressed stuff. The original procedure TSynCompletion.EditorKeyPress(Sender: TObject; var Key: char); does: if TRecordUsedToStoreEachEditorVars(fEditstuffs[i]^).NoNextKey then begin

Re: [Lazarus] PPC: SynEditFoldedView giving parameter syntax error

2008-11-06 Thread Martin Friebe
As a temporary fix, enable the {$INLINE OFF} on top off the file, I will look into this later. Is this error with the fpc build in assembler? (or is fpc always using an external assembler on power pc?) I know this error may happen when cross-compiling with an external assembler. I am not sure if

Re: [Lazarus] PPC: SynEditFoldedView giving parameter syntax error

2008-11-06 Thread Martin Friebe
Brad Campbell wrote: EarMaster - Bent Olsen wrote: Hi all, I have updated Lazarus to latest revision (17246) on Win32 and Mac i386/PPC, and downloaded latest FPC 2.2.2 (20081106 on Win32, 20081104 on Mac i386/PPC) Uncomment the {$INLINE OFF} in

Re: [Lazarus] PPC: SynEditFoldedView giving parameter syntax error

2008-11-06 Thread Martin Friebe
Vincent Snijders wrote: Brad Campbell schreef: Henry Vermaak wrote: 2008/11/6 Martin Friebe [EMAIL PROTECTED]: I am trying to find the right IFDEF, to make sure it compiles for powerpc. I believe it would be {$IFDEF CPUM68K} {$INLINE OFF} {$ENDIF} Brad, could you see

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: Hello, I just worked a bit with lazarus after some month. It's still quite impressive how good it works. On the other hand it's sad that so many things do not work yet. Especially in Win32 IMHO it's still easier to work in Delphi and only switch to Lazarus when

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: If I could help out to solve this issue I'd be glad to 'fix' some more (like the annoying Shift+Click, that triggers slightly wrong and makes me continuously enter the wrong unit). Can you give an example what exactly goes wrong with the shift click,

Re: [Lazarus] IDE: Win32: MouseWheel Scrolling (SynEdit)

2008-10-27 Thread Martin Friebe
Christian Budde wrote: Hi Martin This is probably cross all OS. I am not sure what the intended behaviour is. I guess that it is correct to take the action on Mouse-up, but it may be sensible to limit it on cases where ctrl was hold down during the mouse-down event. IMHO in that

[Lazarus] Mantis statistics / More

2008-10-22 Thread Martin Friebe
Just seen the thread about statistics. I thought I bring forward another idea I recently had. Would it make sense to add some fields to the bugs, classifying them as: - bug - regression [ and last working version / revision ] - feature They are just meaningful for statistics. And maybe helpful

Re: [Lazarus] trim trailing spaces and cursor past eol

2008-10-18 Thread Martin Friebe
Mattias Gaertner wrote: On Sat, 18 Oct 2008 00:19:00 +0100 Martin Friebe [EMAIL PROTECTED] wrote: Hi, just trying to poll an opinion on how exactly those features should work. Especially in relation to the automatic indent of a new line to the indent of the line above. (This is when

[Lazarus] trim trailing spaces and cursor past eol

2008-10-17 Thread Martin Friebe
Hi, just trying to poll an opinion on how exactly those features should work. Especially in relation to the automatic indent of a new line to the indent of the line above. (This is when you press enter at the newly inserted line will be indented as much as the line under which it was

Re: [Lazarus] matching bracket problems (Carbon)

2008-10-10 Thread Martin Friebe
like a repaint or redrawing issue. On Fri, Oct 10, 2008 at 9:00 AM, Martin Friebe [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, I don't have a mac, so I can't test this, but I was involved into some refactor around the bracket-highlights (a few month back). one

Re: [Lazarus] SynEdit: TSynPasSyn and keywords

2008-10-09 Thread Martin Friebe
Alexander Klenin wrote: I noticed that FreePascal highlighter does not overload IsKeyword function. Thinking that it should be trivial to implement, I have taken a look at SynHighlighterPas unit. Maybe off topic, but out of curiosity. What is the benefit you hope to get from adding it? It

[Lazarus] maybe to be merged into 0.9.26 (regression in synedit / bug 12281)

2008-10-03 Thread Martin Friebe
Hi The following bug is a regression from 0.9.24: http://bugs.freepascal.org/view.php?id=12281 I am not sure if it will have the necessary attention in the bug system, before 0.9.26 is released. please review Thanks Martin ___ Lazarus mailing list

Re: [Lazarus] BUG in Synedit

2008-10-02 Thread Martin Friebe
can be reproduced in the IDE as well File-new : then choose text an empty synedit is created. - inserting a space or char into the empty line works - but if you press return, before inserting anything else,it will fail. please create a bug report for it. Brad Campbell wrote: Steps to

[Lazarus] codetool consistence exception

2008-10-01 Thread Martin Friebe
Just got the following exception (SVN 0.9.27, 16831). Not seen it before. (it happened while hovering over a comment / hinttimer) any idea how to find out more, before pasting it into a bugreport? TApplication.HandleException Stack trace: $007A4E45 TCODETREENODE__CONSISTENCYCHECK, line

Re: [Lazarus] Powered by lazarus

2008-09-18 Thread Martin Friebe
Hi, Hope you don't mind me playing with the image ( just mentioning, I am not normally into graphical design = so if my result isn;t any good, feel free to say) But the first thing that came to mind was, that IDE seemed to big. And maybe in the wrong place. I moved it to the right, made

Re: [Lazarus] wrong icon choice in Project Inspector

2008-09-17 Thread Martin Friebe
On 9/17/08, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, With my last svn update, I noticed a few more icons have been added to screens. I personally think the icon used in the Remove button in the Project Inspector is wrong. The red icon normally associated with ERROR. For

[Lazarus] double win scroll [Re: Dear developers, we need your help before releasing 0.9.26]

2008-09-05 Thread Martin Friebe
http://bugs.freepascal.org/view.php?id=11768 Scrolling with the mouse wheel can affect more than one window. From short testing this seems to be a regression too. I can reproduce this, but only with SVN. 0.9.24 is not affected. I have found some more info. Assume the following layout: (O

[Lazarus] Bug 0011564 and next release 0.9.26 ?

2008-09-01 Thread Martin Friebe
http://bugs.freepascal.org/view.php?id=11564 Just to draw some attention to it, as I don't know if it was noticed. I wouldn't normally do this (drawing attention), but in this case I make the exception, because it is a crashing bug, and I therefore believe it should be fixed in 0.9.26. I know

Re: [Lazarus] Mantis question

2008-08-31 Thread Martin Friebe
If I try this and submit a bug, I get the error: A necessary field 'Widgetset' was empty. Please recheck your inputs. Marc Weustink wrote: Graeme Geldenhuys wrote: Hi, I just saw Mantis notice in my inbox - http://bugs.freepascal.org/view.php?id=11933

Re: [Lazarus] Security issue (symlink attack) in Lazarus filed on Fedora's bugzilla

2008-08-29 Thread Martin Friebe
Just some ideas on the topic. IMHO the tmp-dir should have a random, or pseudo-random element to it, and the current script should not (at least not without asking) delete a tmp-dir. A random element (such as the PID ) would solve issues if 2 different users run the script simultaneously (e.g

Re: [Lazarus] Any chance of changing the LCL Unicode encoding to UTF-16?

2008-08-02 Thread Martin Friebe
IMHO, it would be best if a string knew it's encoding. AFAIK, at the moment a string is prefixed by a record, containing data such us the amount of allocated mem, and a ref-count. This should include a field encoding. Then you could always request the string in the encoding you need, and it

Re: [Lazarus] Need help on windows Lazarus build

2008-08-01 Thread Martin Friebe
Hi, Not a direct answer to your question, but if your main interest is to have the latest lazarus, you don't necessarily need fpc from svn. You could download and install a nightly build (Lazarus + FPC), *and* have an svn checkout of Lazarus. The svn Lazarus, can then use the fpc from the

[Lazarus] automatic code unfolding, on edit (inside fold)

2008-07-31 Thread Martin Friebe
While working on http://bugs.freepascal.org/view.php?id=7773, there a a few behavioural decisions:. The basic of the bug is (| = cursor): [ some comment is not needed,, but refers to later, to point out special situations ] [+] If a=b then begin {some comment} | //Line after end

[Lazarus] debugln [Re: writeln to stdout in windows?]

2008-07-29 Thread Martin Friebe
debugln('foo'); from LCLProc may be your friend. It, is used in lazarus itself, too. it does first look for a param '--debug-log=', then enviroment, then STDOUT. And it just keeps silent, if no output at all is avail. For more info go to the LCLProc unit and check the initialization section

Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Martin Friebe
? Best Regards Martin Bob K. wrote: Still the same problem. -- From: Martin Friebe [EMAIL PROTECTED] Sent: Sunday, July 27, 2008 1:17 PM To: General mailing list lazarus@lazarus.freepascal.org Subject: Re: [Lazarus] unable to rebuild lazarus

Re: [Lazarus] unable to rebuild lazarus

2008-07-28 Thread Martin Friebe
. I'm unable to find the version of gdb.exe 3. there is nothing in the debug output window the exe will not run from windows explorer. I'm running Windows Vista. -- From: Martin Friebe [EMAIL PROTECTED] Sent: Monday, July 28, 2008 10:49 AM

[Lazarus] bracket highlights color / issue 1621

2008-07-24 Thread Martin Friebe
Please see http://bugs.freepascal.org/view.php?id=1621 Now, on a second though, maybe the defaults should be changed to include a background color? I tried around a bit, Yellow is probably nice for the default-color-scheme. However my taste (or rather missing tase for matching colors) is likely

[Lazarus] Lazarus options

2008-07-22 Thread Martin Friebe
Hi, just trying to keep my intentions in sync with the lazarus teams expectations. So a couple of questions to follow up the remarks in http://bugs.freepascal.org/view.php?id=9652 - I was planning to add an option to switch on/off the highlight all feature in incremental search. Should I? or

[Lazarus] synedit, and moving the cursor during automated operations

2008-07-21 Thread Martin Friebe
See also: http://bugs.freepascal.org/view.php?id=11716 http://bugs.freepascal.org/view.php?id=11474 Sometimes Synedit moves the cursor around to perform replace, search or other operations, and in the end returns it to the original location, (or a new location that may have been visible

[Lazarus] Synedits TokenAccu, uing move()

2008-07-20 Thread Martin Friebe
In Synedit's PaintLines is a functioin called AddHighlightToken. At one point it copies the current token to the end of the TokenAccu. At this point a remark can be found: // Don't use AppendStr because it's more expensive. Instead of using AppendStr, it implements a plain for i := 0 to ...

[Lazarus] Incompatible types for OnChange?

2008-07-18 Thread Martin Friebe
I noticed something, which I can't explain. Here is the question in ide/editoroptions is procedure: procedure GeneralCheckBoxOnChange(Sender: TObject; Index: integer); This is assigned (via the Resources of the form) to the TCheckBoxes on the editor-option's color page. (TextBoldCheckBox).

Re: [Lazarus] ctrl mouse link in compiler directives or comments (which color)?

2008-07-15 Thread Martin Friebe
Mattias Gärtner wrote: On the other Hand if ever an optimizer should bundle other words (like identifiers with the separating dots) into one word, then the current method would fail as well. I *thought* the new marker concept would handle this. Marker bounds should be independent of

[Lazarus] Column-Selection-Mode and tabs (selecting half a tab)

2008-07-08 Thread Martin Friebe
There is an oddity, and I am trying to find out the correct behaviour: Set your editor options to: Tabs to spaces: NO smart tabs: NO tabs indent block:NO show special chars: Yes alt-key sets column mode: yes have a text like [--- is *one* tab] abcdefghij 1234 mnopqrstuv Now hold

Re: [Lazarus] Synedit: Highlight All feature (patch) [Re: SynEdit question (IFDEF SYN_LAZARUS)]

2008-07-07 Thread Martin Friebe
Hi Mattias, Cool, thanks. Mattias Gaertner wrote: On Mon, 07 Jul 2008 00:40:21 +0100 Martin Friebe [EMAIL PROTECTED] wrote: Recreated the patch. The 3 *.pp files go into components/synedit/ Thanks. Applied. I am looking for any feedback, that will prevent me from

Re: [Lazarus] Synedit: Highlight All feature (patch) [Re: SynEdit question (IFDEF SYN_LAZARUS)]

2008-07-06 Thread Martin Friebe
: -Text -None I haven't found anything that is highlighted by text except it does the brackets, which none does currently not. So the question is, have I missed something, or is there some other intend? Thanks Martin Mattias Gaertner wrote: On Sun, 29 Jun 2008 13:14:46 +0100 Martin Friebe

Re: [Lazarus] Repainting nested components

2008-07-02 Thread Martin Friebe
Maybe the following may be of help. http://bugs.freepascal.org/view.php?id=11560 I just spotted in the below How to assure, that all nested components will be repainted after calling MyPanel.Paint, because actually all components are behind new I think you should call MyPanel.Invalidate,

[Lazarus] Synedit: Highlight All feature (patch) [Re: SynEdit question (IFDEF SYN_LAZARUS)]

2008-06-29 Thread Martin Friebe
scrolled) Best Regards Martin Martin Friebe wrote: Yes. And we need markers for live templates. For example some green blocks and some red blocks. The HighlightAll markers can be used for identifier references too. Not sure what you refer too. But it will probably work. Not necessarily

[Lazarus] graphic changes / mouse pointers on windows

2008-06-27 Thread Martin Friebe
I noted that the most recent version from SVN, has a new? set of Mouse pointers? And I guess they are *not* new by intention. Unfortunately I couldn't get a screenshoot, as the default windows scree-grabber, doesn't take pictures of the mouse... (Suggestions/Instructions welcome) a few

Re: [Lazarus] graphic changes / mouse pointers on windows

2008-06-27 Thread Martin Friebe
; will verify with the latest tonight) with fpc 2.3.1 on Vista = issues I'll update this tonight. I first wanted to confirm this change was not intended. But seeing it under XP all working, did answer that part. Best Regards Martin Paul Ishenin wrote: Martin Friebe wrote: I noted

[Lazarus] SynEdit question (IFDEF SYN_LAZARUS)

2008-06-26 Thread Martin Friebe
Hi I was just wondering, in Synedit, there are many Lazarus specific modifications. On top of this the original code (or what I believe to be the original code) is kept. They are distinguished by IFDEF SYNLAZ statements. The question is what is the reason to keep the old/original code? As far as

Re: [Lazarus] SynEdit question (IFDEF SYN_LAZARUS)

2008-06-26 Thread Martin Friebe
that are not SynEditHighlighter), into a new class SynEditTextMarkup. However PaintLines still would need changes. Best Regards Martin Mattias Gärtner wrote: Zitat von Martin Friebe [EMAIL PROTECTED]: Hi I was just wondering, in Synedit, there are many Lazarus specific modifications. On top

Re: [Lazarus] SynEdit question (IFDEF SYN_LAZARUS)

2008-06-26 Thread Martin Friebe
) and the markup applied. = so any other (non Language (eg non-pascal, non-html,...)) Markup, could be done in there. I'll post more, once I converted my current proto-type, to support this. BestRegards Martin Mattias Gärtner wrote: Zitat von Martin Friebe [EMAIL PROTECTED]: Makes sense

<    1   2