Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Bug#435552: Doesn't detect debcontrol files in non-debian/..

 
   Soft32 Home -> Linux -> Bugs Dist RSS
Next:  Bug#431170: The way to keep entity is documented ..  
Author Message
Loïc

External


Since: Nov 18, 2006
Posts: 52



(Msg. 1) Posted: Wed Aug 01, 2007 10:47 am
Post subject: Bug#435552: Doesn't detect debcontrol files in non-debian/ dirs
Archived from groups: linux>debian>bugs>dist (more info?)

Package: vim-runtime
Version: 1:7.1-022+1
Severity: minor
Tags: patch

Hi,

"vi control" on a debcontrol file wont turn on syntax highlighting
(contrarily to a debchangelog for example); I think filetype.vim
expects the real path to contain debian/control to set the ft to
debcontrol. Even doing a "ln -s . debian; vi debian/control" wont turn
on syntax highlighting.

It seems this is already taken care of for debchangelog by checking
actual file contents instead of pathname, so I propose doing the same
by adding this to filetype.vim:

au BufNewFile,BufRead control
\ if getline(1) =~ '^Source:'
\| setf debcontrol
\| endif

You might want to remove the rule matching the full path if you add
this snippet:

" Debian Control
au BufNewFile,BufRead */debian/control setf debcontrol

Thanks!

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-Cool
Shell: /bin/sh linked to /bin/dash

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii vim-full 1:7.1-022+1 Vi IMproved - enhanced vi editor -
ii vim-tiny 1:7.1-022+1 Vi IMproved - enhanced vi editor -

-- no debconf information

--
Loïc Minier
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Bug#435563: ktorrent downloads all files of a torrent even.. - Package: ktorrent Version: 2.2.0.dfsg.1-1 Severity: normal --- Please enter the report below this line. --- In this..

Bug#435553: Add search on package names - Package: reportbug-ng Version: 0.2007.07.19 Severity: wishlist --- Please enter the report below this line. --- I..

Bug#431170: The way to keep entity is documented in debian.. - Hi, It was a bit ambiguous but debiandoc-sgml-doc has appendix which goes in details how to keep entity. Osamu -- ...

Bug#435554: pidgin: Info text in About dialog scrolls down - Package: pidgin Version: 2.1.0-1 Severity: minor -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 When opening the About...

Bug#417674: new versions available - Dear Baishampayan, Please do consider packaging the latest version. Thanks. Kumar -- Kumar Appaiah, 458, Jamuna..

Bug#435556: p7zip-full: 7za should support -sfx - Package: p7zip-full Version: 4.47~dfsg.1-1 Severity: normal On Fedora, the p7zip package only includes the 7za binary....
       Soft32 Home -> Linux -> Bugs Dist All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]