[Geany] Issues with "Insert comment->function description"

Enrico Tröger enrico.troeger at xxxxx
Sat Dec 1 11:27:57 UTC 2007


On Wed, 28 Nov 2007 10:21:27 +0100, Harold Aling <h.aling at home.nl>
wrote:


Hi,

> 1) The scope is only functional when the file is freshly saved (else
> it's 'unknown')
Yes, this is a very strange bug, didn't find the cause yet.

> It would be cool if Geany would automatically refresh the scope info
> (and symbol list) every X seconds or upon change.
Well, the symbol list is updated everytime when the file is saved. To
update it more often, e.g. regularly just save the file more often.
The symbol list can only be updated when the file is saved(i.e.
actually written to disk) because the tagmanager only works on files
not on buffers. On the TODO there is already an item to get the
tagmanager also working on text buffers not only on files. As a
workaround, use the autosave plugin.

> 2) The scope is not based on the beginning of the function
> declaration, but after the declaration's {. Inserting a function
> description when you cursor is at %cursor%
> 
> function other_function() {
> // do stuff
> }
> 
> function my_function %cursor% {
> // do stuff
> }
> 
> ...will add a description to 'other_function()'.
Yes, the cursor must be within the { }. This is also documented and I
won't change it because it would be a lot of work for a very less
change. Just click within the { } before inserting a function comment.
 
> 3) The function description is added with '<?php' and '?>' tags, which
> corrupts the php file.
Fixed in SVN, sorry.

> 4) It would also be cool if the command would also detect the input
> variables and add them to the description
Yes it would be cool but it has to be implemented...not a high priority
for me.

Regards,
Enrico

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


More information about the Users mailing list