[Geany-devel] Plugin for haxe-completion

Enrico Tröger enrico.troeger at xxxxx
Sun Jul 5 16:58:22 UTC 2009

On Sun, 5 Jul 2009 18:28:26 +0200, Andreas wrote:

>On Sun, 5 Jul 2009 16:56:58 +0200
>Enrico Tröger <enrico.troeger at uvena.de> wrote:
>> I just had a look at the code and we are currently using only index 0
>> in Geany, so you could use index 1. 
>Ah, so these are autocompletion lists? I thought you were using user
>lists ... Sorry, but this is a bit confusing. In Scintilla docs it
>says: Index must be greater than 0 as this is how Scintilla tells the
>difference between an autocompletion list and a user list.

Shame on me!
We are using the autocompletion list in Geany *and* we are using a
userlist with index 1. So you need to use index 2 or above.
Sorry for the confusion, I had a look at the code and still failed.
/me hides.

>> Well, if you use your own userlist (index > 0 as mentioned above) you
>> can use whatever separator you want and set it SCI_AUTOCSETSEPARATOR
>> for the used userlist index.
>Uhm, confusing again.
>There is no index-parameter for SCI_AUTOCSETSEPARATOR and I'd rather
>thought that this is a setting for all lists (haven't tried, though).

You caught me again. Better don't count much on my words, seems I don't
really know what I'm talking about.
I was really sure SCI_AUTOCSETSEPARATOR can be set for each list but
you are right, it is set for all lists. So, you are stuck to '\n'.

>> But then you must also maintain the SCN_AUTOCSELECTION and
>> SCN_AUTOCCANCELLED notifications to stop Geany handling them if your
>> plugin shows the autocompletion list. Otherwise there could be weird
>> side effects when Geany receives these notifications from Scintilla
>> which are triggered by your plugin.
>I haven't thought about this, but the plugin works pretty good as is.
>Probably Geany does exactly what I want here :-)
>The only thing which is not so good is the standard Geany
>autocompletion appearing while my list is shown, as I said.

I hesitate to comment on this, I will probably fail again :).
Maybe SCI_AUTOCCANCEL helps you if called before or after your list is
shown but really not sure without knowing your code.

>> So, I'd say you better use an userlist even though you need a bit
>> more code handling the event when the user chose an item from the
>> list. For an example how to do that, see the actest plugin I wrote
>> some time ago
>> (http://lists.uvena.de/pipermail/geany/2009-June/004655.html, the
>> code is attached to the mail on the link).
>OK. I'll have a look at it.
>But not today. Enough Scintilling for now :-)

Same here, my comments confuse you more than they help, sorry :(.


Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20090705/f6b3d23d/attachment.pgp>

More information about the Devel mailing list