Re: [Vim-latex-devel] how is texrc processed ?
Brought to you by:
srinathava,
tmaas
From: Alan S. <ala...@po...> - 2003-04-03 12:39:02
|
* Benji Fisher (be...@me...) wrote: > Alan Schmitt wrote: > >Hi, > > > >I'm playing with some options of the local copy of my texrc (the one in > >ftplugin/tex), and some things do not work. For instance, I used to have > >in my .vimrc the following: > >let g:Tex_IgnoredWarnings =3D > > \'Underfull=A1'. > > \'Overfull=A1'. > > \'specifier changed to=A1'. > > \'You have requested=A1'. > > \'Missing number, treated as zero.=A1'. > > \'There were undefined references=A1'. > > \'Citation %.%# undefined=A1'. > > \'LaTeX Font Warning=A1' > > > >It worked as planned. I discovered I could put it in the texrc as: > >TexLet g:Tex_IgnoredWarnings =3D > > \'Underfull=A1'. > > \'Overfull=A1'. > > \'specifier changed to=A1'. > > \'You have requested=A1'. > > \'Missing number, treated as zero.=A1'. > > \'There were undefined references=A1'. > > \'Citation %.%# undefined=A1'. > > \'LaTeX Font Warning=A1' > > > >But it does not work (ie I still get "LaTeX Font" warnings). It's as if > >some other texrc was overriding this one. > > > >What am I doing wrong here ? >=20 > I am not sure what is going on, but I can tell you what :TexLet does= .=20 > (This command is defined in texrc .) It checks whether the variable is= =20 > already defined. If it is, :TexLet does nothing; if the variable is not= =20 > already defined, :TexLet acts like :let . In other words, the first use = of=20 > :TexLet wins, whereas the last use of :let wins. >=20 > What should happen is that the user texrc is read before the default= =20 > texrc, so that the user's :TexLet is effective. Of course, your vimrc fi= le=20 > gets read long before either texrc. You can check that the texrc files a= re=20 > read in the right order by using >=20 > :scriptnames >=20 > I hope that points you in the right direction. Thanks. It seems that scripts are read in the correct order. Moreover, when I do an 'echo' of this variable, I get what I expect. I guess I need to investigate more ;-) Alan --=20 The hacker: someone who figured things out and made something cool happen. |