r924 - in /trunk/packages/vim: debian/changelog patches/debchangelog.vim.diff

jamessan at users.alioth.debian.org jamessan at users.alioth.debian.org
Tue Apr 10 13:04:36 UTC 2007


Author: jamessan
Date: Tue Apr 10 13:04:35 2007
New Revision: 924

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=924
Log:
* patches/debchangelog.vim.diff:
  + Call foldopen silently so Vim doesn't error if there are no folds.
    (Closes: #416184)
  + Allow users to let g:debchangelog_fold_disabled to disable automatic
    folding of debchangelogs.  'foldexpr' and 'foldtext' will still be set
    but 'foldmethod' will not be changed to 'expr'.


Modified:
    trunk/packages/vim/debian/changelog
    trunk/packages/vim/patches/debchangelog.vim.diff

Modified: trunk/packages/vim/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/changelog?rev=924&op=diff
==============================================================================
--- trunk/packages/vim/debian/changelog (original)
+++ trunk/packages/vim/debian/changelog Tue Apr 10 13:04:35 2007
@@ -1,8 +1,13 @@
 vim (1:7.0-219+2) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
-
- -- James Vega <jamessan at debian.org>  Wed, 21 Mar 2007 07:15:36 -0400
+  * patches/debchangelog.vim.diff:
+    + Call foldopen silently so Vim doesn't error if there are no folds.
+      (Closes: #416184)
+    + Allow users to let g:debchangelog_fold_disabled to disable automatic
+      folding of debchangelogs.  'foldexpr' and 'foldtext' will still be set
+      but 'foldmethod' will not be changed to 'expr'.
+
+ -- James Vega <jamessan at debian.org>  Tue, 10 Apr 2007 08:55:29 -0400
 
 vim (1:7.0-219+1) unstable; urgency=low
 

Modified: trunk/packages/vim/patches/debchangelog.vim.diff
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/debchangelog.vim.diff?rev=924&op=diff
==============================================================================
--- trunk/packages/vim/patches/debchangelog.vim.diff (original)
+++ trunk/packages/vim/patches/debchangelog.vim.diff Tue Apr 10 13:04:35 2007
@@ -2,12 +2,12 @@
 ===================================================================
 --- vim/runtime/ftplugin/debchangelog.vim.orig
 +++ vim/runtime/ftplugin/debchangelog.vim
-@@ -2,14 +2,14 @@
+@@ -2,24 +2,26 @@
  " Language:	Debian Changelog
  " Maintainer:	Michael Piefel <piefel at informatik.hu-berlin.de>
  "		Stefano Zacchiroli <zack at debian.org>
 -" Last Change:	$LastChangedDate: 2006-04-28 12:15:12 -0400 (ven, 28 apr 2006) $
-+" Last Change:	$LastChangedDate: 2006-05-23 09:19:19 -0400 (Tue, 23 May 2006) $
++" Last Change:	$LastChangedDate: 2007-04-10 08:54:47 -0400 (Tue, 10 Apr 2007) $
  " License:	GNU GPL, version 2.0 or later
  " URL:		http://svn.debian.org/wsvn/pkg-vim/trunk/runtime/ftplugin/debchangelog.vim?op=file&rev=0&sc=0
  
@@ -18,8 +18,22 @@
 +let b:did_ftplugin=1
  
  " {{{1 Local settings (do on every load)
- setlocal foldmethod=expr
-@@ -227,21 +227,22 @@
+-setlocal foldmethod=expr
++if !exists("g:debchangelog_fold_disable")
++  setlocal foldmethod=expr
++endif
+ setlocal foldexpr=GetDebChangelogFold(v:lnum)
+ setlocal foldtext=DebChangelogFoldText()
+ 
+ " Debian changelogs are not supposed to have any other text width,
+ " so the user cannot override this setting
+ setlocal tw=78
+-setlocal comments=f:* 
++setlocal comments=f:*
+ 
+ " Clean unloading
+ let b:undo_ftplugin = "setlocal tw< comments< foldmethod< foldexpr< foldtext<"
+@@ -227,21 +229,22 @@
  " }}}
  " {{{1 folding
  
@@ -52,11 +66,11 @@
    endif
    return foldtext()
  endfunction
-@@ -260,6 +261,8 @@
+@@ -260,6 +263,8 @@
    return '='
  endfunction
  
-+foldopen!   " unfold the entry the cursor is on (usually the first one)
++silent! foldopen!   " unfold the entry the cursor is on (usually the first one)
 +
  " }}}
  




More information about the pkg-vim-maintainers mailing list