Next: , Previous: , Up: Programming Tools   [Contents][Index]


5.24.3 Locating uses of a word

where       "name" –         gforth       “where”

Show all places where name is used (text-interpreted). You can then use ww, nw or bw to inspect specific occurences more closely.

ww       u –         gforth       “ww”

The next l or g shows the where result with index u

nw              gforth       “nw”

The next l or g shows the next where result; if the current one is the last one, after nw there is no current one. If there is no current one, after nw the first one is the current one.

bw              gforth       “bw”

The next l or g shows the previous where result; if the current one is the first one, after bw there is no current one. If there is no current one, after bw the last one is the current one.

gg              gforth       “gg”

The next ww, nw, bw, bb, nb, lb (but not locate, edit, l or g) puts it result in the editor (like g). Use gg gg to make this permanent rather than one-shot.

ll              gforth       “ll”

The next ww, nw, bw, bb, nb, lb (but not locate, edit, l or g) displays in the Forth system (like l). Use ll ll to make this permanent rather than one-shot.

whereg       "name" –         gforth       “whereg”

Like where, but puts the output in the editor. In Emacs, you can then use the compilation-mode commands (see Compilation Mode in GNU Emacs Manual) to inspect specific occurences more closely.


Next: , Previous: , Up: Programming Tools   [Contents][Index]