Xavier de Gaye wrote: > During the "compile-debug-edit" development cycle, the signs placed in > the Vim buffers by the IDE with the netbeans protocol can have their > line numbers changed when the buffers are edited (a Vim sign sticks with > the line it has been set upon, and moves with it). > > It would be nice to allow the IDE to query Vim for these updated line > numbers, so that when the IDE restarts gdb after a new make and the IDE > is capable of restoring the breakpoints set on a previous session, the > breakpoints and their corresponding signs can be automatically set by > the IDE to their new position. > > The netbeans function documentation can be: > > ======================================================================= > 10.4 Functions and Replies *nb-functions* > > getAnno serNum Return the line number of the annotation in the buffer > Arguments: > serNum serial number of this placed annotation > The reply is: > lnum = line number of the annotation > ======================================================================= > > > The implementation can be based on the existing sign_list_placed() > function in buffer.c. I can propose a patch if this request for change > is acceptable.
It makes sense. The only alternative is to listen to "insert" and "delete" messages to keep track of the position, which probably requires keeping a copy of the text. -- If Microsoft would build a car... ... the oil, water temperature, and alternator warning lights would all be replaced by a single "General Protection Fault" warning light. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///