This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
"bookmark-next" in a macro will leave the cursor at its current position. It seems this happens only during macro execution, as soon as the macro finishes cursor il correctly positioned to the bookmarked line. Example macro: caret-begin-line caret-down bookmark-toggle caret-down caret-down caret-down caret-down caret-down bookmark-next bookmark-toggle "Now I'm here" Example text: ----------------- TEXT START --------------------------- Place cursor HERE (anywere on this line) and run macro. Macro will create a bookmark HERE, then move cursor down 5 lines .. .. .. .. cursor moved HERE. Now macro will invoke bookmark-next (thus returning to second line) then remove the bookmark invoking toggle-bookmark and by last print out "Now I'm here". Work as expected ? ----------------- TEXT END --------------------------- Expected text: ----------------- TEXT START --------------------------- Place cursor HERE (anywere on this line) and run macro. Now I'm hereMacro will create a bookmark HERE, then move cursor down 5 lines .. .. .. .. cursor moved HERE. Now macro will invoke bookmark-next (thus returning to second line) then remove the bookmark invoking toggle-bookmark and by last print out "Now I'm here". Work as expected ? ----------------- TEXT END --------------------------- What we get is: ----------------- TEXT START --------------------------- Place cursor HERE (anywere on this line) and run macro. Macro will create a bookmark HERE, then move cursor down 5 lines .. .. .. .. Now I'm herecursor moved HERE. Now macro will invoke bookmark-next (thus returning to second line) then remove the bookmark invoking toggle-bookmark and by last print out "Now I'm here". Work as expected ? ----------------- TEXT END ---------------------------
Reproducible in dev build 200301290100 on Linux.
Yes, it could be a race condition problem. I will look at this. Also I am changing the priority to default P3.
At this time only P1s and P2s are allowed to be integrated into newly created branch "release35". http://www.netbeans.org/servlets/ReadMsg?msgId=475395&listName=nbdev Changing target milestone to 4.0
Changing subcomponent to macros.
Is this still reproducible?
No, it does not work in my build, sorry.
Looks like there are more issues now. "bookmark-next" action is not registerred, so it can not be called...
Sorry, bookmark related actions are not supported in macros.