Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82789 - Vim filetype processing for XML files not handled correctly due to problem in app-vim/gentoo-syntax.
Summary: Vim filetype processing for XML files not handled correctly due to problem in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-02-21 03:12 UTC by Jim Cole
Modified: 2005-02-21 08:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Cole 2005-02-21 03:12:53 UTC
There are syntax errors in vimfiles/ftdetect/gentoo.vim (gentoo-syntax-20041227) that derail correct handling of XML files. One result of this problem is that marks for jumping to the previous location in an XML file are not processed correctly when a file is reopened. Instead the cursor always jumps to the default position.

Reproducible: Always
Steps to Reproduce:
1. Open a generic XML file (with .xml extension).
2. Move to some location in the middle of the file.
3. Close the file.
4. Reopen the file.

Actual Results:  
The cursor was positioned at the top of the file.

Expected Results:  
The cursor should have been located at its previous position somewhere in the
middle of the file.

The problem appears to be in the handling of the guidexml filetype at the bottom
of the gentoo.vim file in the ftdetect directory. This code is lacking both a
final command separator and the closing 'endif'.

This problem did not occur until moving to gentoo-syntax-20041227.
Comment 1 Aaron Walker (RETIRED) gentoo-dev 2005-02-21 05:58:20 UTC
HEH! no wonder newmetadata.vim wouldn't work...

Fixed upstream.
Comment 2 Ciaran McCreesh 2005-02-21 08:25:52 UTC
Woah, how the heck did we miss that?

20050211-r1 includes the fix...