displaying function name

Michael Smith michael.smith at thalesatm.com
Tue Aug 31 00:34:15 CEST 2004


On  Mon, 30 Aug 2004 10:47:56 +0300 Offer Kaye <offer.kaye at gmail.com>
wrote:

| 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,"")
| > }

Some functions in that macro file should be considered work in progress,
they serve as examples only. The functions which use tags and cvs work
ok.
-- 
Michael Smith           | 61 394 257 560
Software Product Manager| 61 416 062 898
THALES ATM Pty Ltd      |  S  37 49 53.4
Melbourne, Australia    |  E 144 59 48.3



More information about the Discuss mailing list