Bug#444869: detect git-send-email messages as ft=mail

martin f krafft madduck at debian.org
Mon Oct 1 15:09:00 UTC 2007


Package: vim-runtime
Version: 1:7.1-056+2
Severity: wishlist
Tags: patch

It would be nice if this could be included in filetype.vim:

augroup filetypedetect
  # detect git-send-email messages
  au! BufRead,BufNewFile .msg.[0-9]*
        \ if getline(1) =~ '^From .\+ignored\.$' | setfiletype mail | endif
augroup END

Furthermore, such messages include lines in the body matched by

  syn region gitComment start=/^GIT: / end=/$/
  (or just a syn match)

I am not sure how to get syntax highlighting for that to work.
A solution might be to introduce a filetype git-mail, which copies
emulates 'mail' (if that's possible) and then extends it by a

  hi def link gitComment Comment

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

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

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim-gtk                      1:7.1-056+2 Vi IMproved - enhanced vi editor -
ii  vim-python                   1:7.1-056+2 Vi IMproved - enhanced vi editor -

-- no debconf information


-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20071001/43eda3d6/attachment.pgp 


More information about the pkg-vim-maintainers mailing list