This is my SECOND time posting this message. I realize that I may have posted the first one as a response to the incorrect thread, and so I'm going to go ahead and post it as a new thread . . .

It appears like an F9 completion problem has been patched. See the message below and the attached patch (from Florian Petran).

===== (from Florian Petran)
Sorry for mailing you directly, but no matter how I try to post to
vim-latex-devel, none of my mails seem to make it through. A while
ago, someone brought up an issue with F9 ref completion not working
when there was whitespace before the input directive. Turns out it is
just a small error in a regex in outline.py, I noticed that when I was
looking for an error where F9 completion wouldn't work when the
filename was stated with the tex extension. I wrote a patch for that
file that fixes both errors, could you please forward it to the list?
It requires deactivating python via let g:Tex_UsePython=0, though, for
the changed python code to take effect.
=====

So try applying the attached patch, and then adding a

let g:Tex_UsePython=0

in your .vimrc.

--Ted

P.S.

I have not tried this patch. This problem doesn't bother me, and so I
don't have an opinion. I was just asked to post this.


ahmet nurlu wrote:
Hi,

I have been getting this recent error with a vim7.1.
It is not happening with vim6.4.
The problem is that \cite{} command doesn't search
through \begin{thebibliography} environment.(It is
strange that  when I type "\cite" , its color becomes
blue.)

My tex file(try.tex) is something like:
------------------------------------->
\documentclass{article}
\usepackage{color}
\usepackage{listings}
\begin{document}
try try try

\cite{}<++>

\begin{thebibliography}{99}
       \bibitem{goossens93} Michel Goossens, The Latex
Book
\end{thebibliography}
\end{document}
---------------------------------------------<

when the cursor positions itself into the \cite{},
pressing F9 brings no action.
This problem doesn't arise if I prepare a bib
file(trybib.bib) and put my bibliography index into
it. For example,
my_Directory/
       try.tex
       trybib.bib
------------------------------------------------->
\documentclass{article}
\usepackage{color}
\usepackage{listings}
\begin{document}
try try try

\cite{}<++>
\bibliographystyle{plain}
\bibliography{trybib}

\end{document}

I am using vim-latexsuite(debian/unstable). Any
suggestions?

Regards,
Ahmet

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel


--
Ted Pavlic <[EMAIL PROTECTED]>

diff -ru old/outline.py new/outline.py
--- old/outline.py      2008-08-27 17:55:51.000000000 +0200
+++ new/outline.py      2008-08-27 18:00:55.000000000 +0200
@@ -23,7 +23,7 @@
     contents = '\n'.join(open(fname).read().splitlines())
 
     # TODO what are all the ways in which a tex file can include another?
-    pat = re.compile(r'^\\(@?)(include|input){(.*?)}', re.M)
+    pat = re.compile(r'^\s*\\(@?)(include|input){(.*?)(.tex)?}', re.M)
     contents = re.sub(pat, lambda input: getFileContents(input, ext), contents)
 
     return ('%%==== FILENAME: %s' % fname) + '\n' + contents

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to