[Lazarus] Autocomplete with procedure varibles

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 23 23:05:27 CEST 2012


On Mon, 23 Apr 2012 22:20:18 +0200
Bernd <prof7bit at googlemail.com> wrote:

> I have something like this:
> 
> var
>   some_external_func: function(foo: bar): baz; cdecl;
>   some_external_proc: procedure(bla: blub); cdecl;
> 
> and later I will assign them with pointers received with
> GetProcAddress() from a dynamically loaded library. There are a lot of
> these functions and I need to call most of them a lot of times all
> over my code. It all works perfectly well with only one little
> annoyance: Whenever I invoke the code completion when writing a
> function call it will complete like a "normal" variable:
> 
> some_external_func :=
> 
> I have to backspace and remove the := manually so I can proceed with
> the opening bracket. From this moment on everything is ok again, with
> Ctrl+Schift+Space I will have a calltip hint exactly like with normal
> functions. The problem is only the autocompletion.
> 
> Is this intentional? At least in my current case in 90% of all times
> when I start typing the name of a procedure variable I actually want
> to call it. (actually in my current project I don't even assign them
> all individually with := anymore either, I have factored this one
> assignment out to a place where I don't have to touch it anymore, so
> its actually 99.9%)
> 
> Would it be possible to change the behavior of autocomplete for
> procedure variables (maybe even make it a config option with) or would
> this be considered as a wontfix because other uses happen more often
> than my special case here?

Please create a feature request in the bug tracker.

Mattias




More information about the Lazarus mailing list