Handbook
Glossary
edit-location ( file line -- )
Vocabulary
editors
Inputs
file
a pathname string
line
a positive integer
Outputs
None
Word description
Opens a source file at the specified line number containing using the current
editor-class
. Line numbers are indexed starting from 1. See
Editor integration
.
Definition
USING:
io.pathnames
kernel
;
IN:
editors
:
edit-location
( file line -- )
over
[
invalid-location
]
unless
[
absolute-path
]
dip
editor-command
[
run-and-wait-for-editor
]
when*
;