displaying function name
Offer Kaye
offer.kaye at gmail.com
Mon Aug 30 09:47:56 CEST 2004
On Mon, 30 Aug 2004 17:07:47 +1000, Michael Smith wrote:
> #F11
> #Open the file named at the cursor
> define open_file_at_cursor
> {
> start=search("^",$cursor,"regex","backward")
> end=search(": ",$cursor)
> eol=search("$",$cursor,"regex")
> filename=get_range(start,end)
> detail=get_range(end,eol)
> details=split(detail,"\w","regex")
> for(item in details)
> {
> final = final "_" item
> }
> command="open-mark " filename " \"" final "\""
> t_print(command "\n")
> shell_command(command,"")
> }
>
Hi,
Does this work? I get an error message when I try to use it:
"Error executing macro: variable not set: final"
Also, how is this different from the File->Open Selected menu item
(hot key: ^y)?
Thanks,
--
Offer Kaye
More information about the Discuss
mailing list