Topic: For VDM programmers: Label-Jumper (1 of 2), Read 17 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Wednesday, March 24, 2004 03:32 PM


To help VEDIT macro programmers navigating in a bigger macro
containing labels (:LABEL:) I developed a helper macro.

It assigns the following two keys:

F12 - if on a line with a

Call("label") :
Goto label : try to jump to that label in current file
Call(r, "label") :

Call_File(r, "file") : open file
Call_File(r, "file", "label") : open file and jump to label
Chain_File(r, "file") : open file

F11 - jump back, if possible (via stack)

The current version can be loaded from here:
http://ziemski.privat.t-online.de/vedit/macros/labeljmp.vdm


Christian

 


Topic: For VDM programmers: Label-Jumper (2 of 2), Read 17 times
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Thursday, March 25, 2004 06:52 AM


I added a new feature:

Shft-F12 - jump back via list with calls to current label

The macro tries to find all Calls and Gotos pointing to the label at current cursor position (or above).

That list is presented in an additional window and you can choose an entry.
-- [Cursor right] shows the appropriate part of the macro
-- [Cursor left] jumps back to the position before [Cursor right]
-- [ENTER] jumps to the appr. part of the macro and closes the list


http://ziemski.privat.t-online.de/vedit/macros/labeljmp.vdm

Christian