home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
FREEMACS
/
ETAGS.ZIP
/
ETAGS.MIN
< prev
next >
Wrap
Internet Message Format
|
1990-02-20
|
3KB
From KOHONEN@finfun.bitnet Sun Nov 27 23:51:00 1988
Date: Tue, 22 Nov 88 17:41 O
From: Teuvo Kohonen <KOHONEN@finfun.bitnet>
Subject: RE: Freemacs 1.5c
To: nelson@sun.soe.clarkson.edu
X-Vms-To: edu%"nelson@sun.soe.clarkson.edu"
The etags.c which comes with GNU Emacs works fine with Turbo C, with minor
modifications:
146,147c146,147
< *white = " \f\t\n", /* white chars */
< *endtk = " \t\n\"'#()[]{}=-+%*/&|^~!<>;,.:?",
---
> *white = " \f\t\n\r", /* white chars */
> *endtk = " \t\n\r\"'#()[]{}=-+%*/&|^~!<>;,.:?",
386a387,389
> #ifdef __MSDOS__
> if ((inf=fopen(file,"rb")) == NULL)
> #else
387a391
> #endif
Name:Ufilename
Tag finding functions.
[*]user[*]
Name:K.C-x 4 .
[*]U:find-tag-other-window[*]
Name:U:find-tag-other-window
[*]
#(F:split-window-vertically)
#(U:find-tag,arg1)[*]
Name:K.M-.
[*]U:find-tag[*]
Name:U:find-tag
Attempts to locate definition for a tag containing arg2.
Default for tag name substring is the word around point.
With a numerical argument (arg1), finds next alternative definition for
the tag last specified.
[*]
#(==,arg1,,(
#(==,arg2,,(
#(ds,value,#(Ucurrent-word))
#(Fread-filename,Find tag: ,(#(Ufind-tag-do,##(value),1)),n)
),(
#(Ufind-tag-do,arg2,1)
))
),(
#(Ufind-tag-do,##(tag-last-tag),##(tag-last-line))
))
[*]
Name:Ucurrent-word
The mb is for the cases when is point in whitespace before the first word
of buffer.
[*]
#(pm,2)
#(sm,1)
#(sp,>-{)
#(sm,0,#(mb,[,,+))
#(sp,+})
##(rm,0)
#(sp,1)
#(pm)
[*]
Name:Ufetch-tag
Searches for tag arg1 in tag table, which is assumed to be current buffer,
beginning at current line.
Sets ##(tag-beginning) to the beginning of line and ##(tag-line) to its
line number.
Returns arg2 if tag was found, arg3 otherwise.
[*]
#(pm,2)
#(lp,^.*arg1.*##(bc,127,d,a),,r)
#(l?,.,],,0,(
#(sp,0)
#(lp,(,))
#(l?,.,$,1,,(#(ds,tag-line,##(rm,1))))
#(sp,<)
#(ds,tag-beginning,##(rm,^))
#(ds,tag-last-tag,arg1)
#(ds,tag-last-line,##(++,1,#(lv,cl)))
arg2
),(
arg3
#(Fmessage,No tag entries containing arg1)
))
#(pm)
[*]
Name:Ufile-of-tag
Returns name of the file whose tags point is within.
[*]
#(pm,1)
#(lp,#(bc,12,d,a))
#(l?,.,[,,0,(
#(sp,0$>)
#(lp,(,))
#(l?,^,$,0,,(##(rm,0)))
))
#(pm)
[*]
Name:Ufind-tag-do
[*]
#(ds,tag-old-buffer,##(ba,-1))
#(ds,value,tags.)
#(Ffind-buffer,##(value),,,(
#(Ffind-unused-buffer,##(value))
#(==,##(ff,##(value)),,(
#(Fbuffer-set-fn,##(value))
),(
#(Fvisit-do)
))
))
#(Fbury-buffer)
#(sv,cl,arg2)
#(Ufetch-tag,(arg1),(
#(Ffind-file-do,#(Ufile-of-tag))
#(SELF-do,##(tag-line),5)
),(
#(ba,##(tag-old-buffer))
))
[*]
Name:Ufind-tag-do-do
[*]
#(pm,2)
#(sv,cl,##(++,arg1,arg2))
#(sm,1)
#(sv,cl,##(--,arg1,arg2))
#(lp,#(Fregexp-quote,(##(tag-beginning))),,r)
#(l?,.,1,0,,(
#(sp,0^)
),(
#(mb,[,(
#(SELF,arg1,##(**,arg2,3))
),(
#(sp,])
#(mb,1,(
#(SELF,arg1,##(**,arg2,3))
),(
#(Fmessage,Definition ##(tag-beginning) not found)
))
))
))
#(pm)
[*]