\input texinfo @c -*-texinfo-*-

@setfilename macros_in_pass0_macros.info

@node Top
@top macro in index commands

@macro cp
cp
@end macro
@macro fn 
fn
@end macro
@macro syncodeindex_command 
@syncodeindex
@end macro

@syncodeindex @cp{} @fn{}
@syncodeindex_command{} cp fn

@macro en 
en
@end macro
@macro documentlanguage_command 
@documentlanguage
@end macro

documentlanguage @documentlanguage  @en{}   

documentlanguage on its line
@documentlanguage_command{}  en  
line following documentlanguage

@macro truc 
truc
@end macro

definedx truc
@defindex @truc{}
after

@macro trucindex_command 
@trucindex
@end macro

@trucindex_command{} index truc

@macro codeidx 
codeidx
@end macro

@defcodeindex @codeidx{}

@macro defcodeindex_entry 
a @var{index entry} t@'e @^{@dotless{i}}
@end macro

@codeidxindex @defcodeindex_entry{}

@cindex cindex entry

@syncodeindex ky pg

@kindex @truc{} kindex
@pindex pindex @codeidx{}

@synindex truc cp

@defindex abc
@defindex defg

@synindex abc defg
@synindex defg ky

@defgindex defg index entry

@abcindex abc index entry

pg
@printindex pg

ky
@printindex ky

truc
@printindex truc

value truc
@printindex @truc{}

cp
@printindex cp

value cp
@printindex @cp{}

defg
@printindex defg

abc
@printindex abc

fn
@printindex fn

@bye
