r871 - in /trunk/packages/vim-latexsuite/debian: changelog patches/00list patches/disabledby.dpatch vim-registry/vim-latexsuite.yaml

zack at users.alioth.debian.org zack at users.alioth.debian.org
Sun Jan 28 18:30:34 UTC 2007


Author: zack
Date: Sun Jan 28 19:30:33 2007
New Revision: 871

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=871
Log:
added support for disabling the latex-suite as a whole
added the matching disabledby field in the registry entry

Added:
    trunk/packages/vim-latexsuite/debian/patches/disabledby.dpatch
Modified:
    trunk/packages/vim-latexsuite/debian/changelog
    trunk/packages/vim-latexsuite/debian/patches/00list
    trunk/packages/vim-latexsuite/debian/vim-registry/vim-latexsuite.yaml

Modified: trunk/packages/vim-latexsuite/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-latexsuite/debian/changelog?rev=871&op=diff
==============================================================================
--- trunk/packages/vim-latexsuite/debian/changelog (original)
+++ trunk/packages/vim-latexsuite/debian/changelog Sun Jan 28 19:30:33 2007
@@ -3,8 +3,14 @@
   * debian/patches/
     - renamed patches removing heading numeric prefix: it is not needed, the
       order is set by 00list
-
- -- Stefano Zacchiroli <zack at debian.org>  Sun, 28 Jan 2007 19:09:08 +0100
+    - added disabledby.dpatch which enables disabling the whole latex-suite by
+      defining the global did_latexSuite_disabled variable; changed 00list
+      accordingly to apply the new patch
+  * debian/vim-registry/vim-latexsuite.yaml
+    - added the 'disabledby:' field which enables automatic disabling on the
+      latex-suite via vim-addons
+
+ -- Stefano Zacchiroli <zack at debian.org>  Sun, 28 Jan 2007 19:25:13 +0100
 
 vim-latexsuite (20060325-2) unstable; urgency=low
 

Modified: trunk/packages/vim-latexsuite/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-latexsuite/debian/patches/00list?rev=871&op=diff
==============================================================================
--- trunk/packages/vim-latexsuite/debian/patches/00list (original)
+++ trunk/packages/vim-latexsuite/debian/patches/00list Sun Jan 28 19:30:33 2007
@@ -2,3 +2,4 @@
 changelog
 insertitem
 fname_outline
+disabledby

Added: trunk/packages/vim-latexsuite/debian/patches/disabledby.dpatch
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-latexsuite/debian/patches/disabledby.dpatch?rev=871&op=file
==============================================================================
--- trunk/packages/vim-latexsuite/debian/patches/disabledby.dpatch (added)
+++ trunk/packages/vim-latexsuite/debian/patches/disabledby.dpatch Sun Jan 28 19:30:33 2007
@@ -1,0 +1,134 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## disabledby.dpatch by Stefano Zacchiroli <zack at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: support disabling the whole latex-suite by defining the
+## DP: 'did_latexSuite_disabled' global variable
+
+ at DPATCH@
+diff -urNad vim-latexsuite~/compiler/tex.vim vim-latexsuite/compiler/tex.vim
+--- vim-latexsuite~/compiler/tex.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/compiler/tex.vim	2007-01-28 19:14:26.000000000 +0100
+@@ -60,6 +60,10 @@
+ "   1. menu items for dynamically selecting a ignore warning level.
+ " }}}
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " avoid reinclusion for the same buffer. keep it buffer local so it can be
+ " externally reset in case of emergency re-sourcing.
+ if exists('b:doneTexCompiler') && !exists('b:forceRedoTexCompiler')
+diff -urNad vim-latexsuite~/ftplugin/bib_latexSuite.vim vim-latexsuite/ftplugin/bib_latexSuite.vim
+--- vim-latexsuite~/ftplugin/bib_latexSuite.vim	2006-03-21 06:50:35.000000000 +0100
++++ vim-latexsuite/ftplugin/bib_latexSuite.vim	2007-01-28 19:16:57.000000000 +0100
+@@ -8,6 +8,10 @@
+ "
+ " CVS: $Id: bib_latexSuite.vim 997 2006-03-20 09:45:45Z srinathava $
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " source main.vim because we need a few functions from it.
+ runtime ftplugin/latex-suite/main.vim
+ " Disable smart-quotes because we need to enter real quotes in bib files.
+diff -urNad vim-latexsuite~/ftplugin/tex_latexSuite.vim vim-latexsuite/ftplugin/tex_latexSuite.vim
+--- vim-latexsuite~/ftplugin/tex_latexSuite.vim	2006-03-21 06:50:35.000000000 +0100
++++ vim-latexsuite/ftplugin/tex_latexSuite.vim	2007-01-28 19:16:51.000000000 +0100
+@@ -3,6 +3,10 @@
+ "	Maintainer: Srinath Avadhanula
+ "		 Email: srinath at fastmail.fm
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ if !exists('s:initLatexSuite')
+ 	let s:initLatexSuite = 1
+ 	exec 'so '.expand('<sfile>:p:h').'/latex-suite/main.vim'
+diff -urNad vim-latexsuite~/indent/tex.vim vim-latexsuite/indent/tex.vim
+--- vim-latexsuite~/indent/tex.vim	2006-03-21 06:50:23.000000000 +0100
++++ vim-latexsuite/indent/tex.vim	2007-01-28 19:18:03.000000000 +0100
+@@ -43,6 +43,10 @@
+ "
+ " }}} 
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " Delete the next line to avoid the special indention of items
+ if !exists("g:tex_indent_items")
+   let g:tex_indent_items = 1
+diff -urNad vim-latexsuite~/plugin/SyntaxFolds.vim vim-latexsuite/plugin/SyntaxFolds.vim
+--- vim-latexsuite~/plugin/SyntaxFolds.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/plugin/SyntaxFolds.vim	2007-01-28 19:17:45.000000000 +0100
+@@ -87,6 +87,10 @@
+ " call defines the region which is deepest in the folding. See MakeTexFolds()
+ " for an idea of how this works for latex files.
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " Function: AddSyntaxFoldItem (start, end, startoff, endoff [, skipStart, skipEnd]) {{{
+ function! AddSyntaxFoldItem(start, end, startoff, endoff, ...)
+ 	if a:0 > 0
+diff -urNad vim-latexsuite~/plugin/filebrowser.vim vim-latexsuite/plugin/filebrowser.vim
+--- vim-latexsuite~/plugin/filebrowser.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/plugin/filebrowser.vim	2007-01-28 19:17:26.000000000 +0100
+@@ -13,6 +13,10 @@
+ " 		(Both these regexps are '' by default which means no filtering is
+ " 		done).
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " line continuation used here.
+ let s:save_cpo = &cpo
+ set cpo&vim
+diff -urNad vim-latexsuite~/plugin/imaps.vim vim-latexsuite/plugin/imaps.vim
+--- vim-latexsuite~/plugin/imaps.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/plugin/imaps.vim	2007-01-28 19:17:49.000000000 +0100
+@@ -95,6 +95,10 @@
+ "--------------------------------------%<--------------------------------------
+ " }}}
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " line continuation used here.
+ let s:save_cpo = &cpo
+ set cpo&vim
+diff -urNad vim-latexsuite~/plugin/libList.vim vim-latexsuite/plugin/libList.vim
+--- vim-latexsuite~/plugin/libList.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/plugin/libList.vim	2007-01-28 19:17:28.000000000 +0100
+@@ -61,6 +61,10 @@
+ " in version 0.1
+ " - First version
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " Has this already been loaded ?
+ if exists("loaded_libList")
+        finish
+diff -urNad vim-latexsuite~/plugin/remoteOpen.vim vim-latexsuite/plugin/remoteOpen.vim
+--- vim-latexsuite~/plugin/remoteOpen.vim	2006-03-21 06:50:36.000000000 +0100
++++ vim-latexsuite/plugin/remoteOpen.vim	2007-01-28 19:17:36.000000000 +0100
+@@ -29,6 +29,10 @@
+ " Ofcourse, this requires vim with +clientserver. If not, then RemoteOpen just
+ " opens in the present session.
+ 
++if exists('did_latexSuite_disabled')
++  finish
++endif
++
+ " Enclose <args> in single quotes so it can be passed as a function argument.
+ com -nargs=1 RemoteOpen :call RemoteOpen('<args>')
+ com -nargs=? RemoteInsert :call RemoteInsert('<args>')

Modified: trunk/packages/vim-latexsuite/debian/vim-registry/vim-latexsuite.yaml
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-latexsuite/debian/vim-registry/vim-latexsuite.yaml?rev=871&op=diff
==============================================================================
--- trunk/packages/vim-latexsuite/debian/vim-registry/vim-latexsuite.yaml (original)
+++ trunk/packages/vim-latexsuite/debian/vim-registry/vim-latexsuite.yaml Sun Jan 28 19:30:33 2007
@@ -1,5 +1,6 @@
 addon: latex-suite
 description: "comprehensive set of tools to view, edit, and compile LaTeX documents"
+disabledby: "let did_latexSuite_disabled = 1"
 files:
   - compiler/tex.vim
   - doc/imaps.txt.gz




More information about the pkg-vim-maintainers mailing list