Hello everyone,

I've never filed a bug report to a mailing list before, so please
excuse this possibly poor report. I hope this issue has not been filed
before.


DESCRIPTION

Normally when being in the preamble of a LaTeX document and hitting F5,
a line "\usepackage{XXX}" is inserted. However I am shown the error
messages:

Error detected while processing function
Tex_FastEnvironmentInsert..Tex_package_from_line: line    9: E117:
Unknown function: Tex_pack_one

In the main part of a document everything is as expected, namely F5
inserts an environment.


SOURCE OF THE ERROR

The source of the error is, that I have set
let g:Tex_PackagesMenu = 0
in my ~/.vimrc file. When I leave this setting as it is, everything is
fine.

g:Tex_PackagesMenu = 0 prevents the script packages.vim from loading
due to the lines 9 to 13:

" avoid reinclusion.
if !g:Tex_PackagesMenu || exists('s:doneOnce')
        finish
endif
let s:doneOnce = 1


POSSIBLE FIX

I do not think that this behaviour is intended, so the easiest fix of
the problem would probably be to change the above lines to

" avoid reinclusion.
if exists('s:doneOnce')
        finish
endif
let s:doneOnce = 1


Best wishes
Christoph Lehmann


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to