Patch 7.2a.009

2008-06-29 Fir de Conversatie Bram Moolenaar


Patch 7.2a.009
Problem:cygwin_conv_to_posix_path() does not specify buffer size.
Solution:   Use new Cygwin function: cygwin_conv_path(). (Corinna Vinschen)
Files:  src/main.c, src/os_unix.c


*** ../vim-7.2a.008/src/main.c  Wed Jun 25 00:33:06 2008
--- src/main.c  Sat Jun 28 17:07:03 2008
***
*** 20,26 
  
  #ifdef __CYGWIN__
  # ifndef WIN32
! #  include sys/cygwin.h /* for cygwin_conv_to_posix_path() */
  # endif
  # include limits.h
  #endif
--- 20,28 
  
  #ifdef __CYGWIN__
  # ifndef WIN32
! #  include cygwin/version.h
! #  include sys/cygwin.h /* for cygwin_conv_to_posix_path() and/or
!* cygwin_conv_path() */
  # endif
  # include limits.h
  #endif
***
*** 2213,2219 
--- 2215,2225 
{
char posix_path[PATH_MAX];
  
+ # if CYGWIN_VERSION_DLL_MAJOR = 1007
+   cygwin_conv_path(CCP_WIN_A_TO_POSIX, p, posix_path, PATH_MAX);
+ # else
cygwin_conv_to_posix_path(p, posix_path);
+ # endif
vim_free(p);
p = vim_strsave(posix_path);
if (p == NULL)
*** ../vim-7.2a.008/src/os_unix.c   Tue Jun 24 23:13:23 2008
--- src/os_unix.c   Sat Jun 28 17:08:30 2008
***
*** 58,64 
  
  #ifdef __CYGWIN__
  # ifndef WIN32
! #  include sys/cygwin.h /* for cygwin_conv_to_posix_path() */
  # endif
  #endif
  
--- 58,66 
  
  #ifdef __CYGWIN__
  # ifndef WIN32
! #  include cygwin/version.h
! #  include sys/cygwin.h /* for cygwin_conv_to_posix_path() and/or
!* for cygwin_conv_path() */
  # endif
  #endif
  
***
*** 2312,2318 
--- 2314,2324 
  /*
   * This helps for when /etc/hosts is a symlink to c:/something/hosts.
   */
+ # if CYGWIN_VERSION_DLL_MAJOR = 1007
+ cygwin_conv_path(CCP_WIN_A_TO_POSIX, fname, posix_fname, MAXPATHL);
+ # else
  cygwin_conv_to_posix_path(fname, posix_fname);
+ # endif
  fname = posix_fname;
  #endif
  
*** ../vim-7.2a.008/src/version.c   Sat Jun 28 16:09:31 2008
--- src/version.c   Sun Jun 29 13:56:55 2008
***
*** 678,679 
--- 678,681 
  {   /* Add new patch number below this line */
+ /**/
+ 9,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
112. You are amazed that anyone uses a phone without a modem on it...let
 alone hear actual voices.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: updated 'relativenumber' patch

2008-06-29 Fir de Conversatie Bram Moolenaar


Richard -

 On Fri, Jun 27, 2008 at 01:23, Markus Heidelberg
 [EMAIL PROTECTED] wrote:
 
  I have adapted my relativenumber patch to Vim 7.2a, initial version
  was from 21.02.2008. Unfortunately it didn't get into mainline yet.
 
 I did not test it against 7.2a, but the feature does have its uses.
 Bram, are you
 willing to accept this patch? Is there something you want to see from the
 community before you consider adding it?

I don't know.  I can see it's somewhat useful, but it's also a yet
another option thing.

- Bram

-- 
FIXME and XXX are two common keywords used to mark broken or incomplete code
not only since XXX as a sex reference would grab everbodys attention but
simply due to the fact that Vim would highlight these words.
-- Hendrik Scholz

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Vim Patches Project. [Was: updated 'relativenumber' patch]

2008-06-29 Fir de Conversatie Ag. D. Hatzimanikas

On Sun, Jun 29, at 03:19 Bram Moolenaar wrote:
 
 
 Richard -
 
  On Fri, Jun 27, 2008 at 01:23, Markus Heidelberg
  [EMAIL PROTECTED] wrote:
  
   I have adapted my relativenumber patch to Vim 7.2a, initial version
   was from 21.02.2008. Unfortunately it didn't get into mainline yet.
  
  I did not test it against 7.2a, but the feature does have its uses.
  Bram, are you
  willing to accept this patch? Is there something you want to see from the
  community before you consider adding it?
 
 I don't know.  I can see it's somewhat useful, but it's also a yet
 another option thing.


Besides that it looks like a useful option, (with this chance) I would
like to suggest a new project, with the simple purpose to gather or to link,
to all those patches from different sources for different purposes and
needs, that are not *yet* on the mainline or for some reasons they will
never be.

This will help:

- to redirect people when looking for a feature that is not yet
  available in the mainline
- to help Bram integrate a patch, when the patch is mature or there
  is a demand for it
- to be easy to contribute for a (possible) better implementation
  or for a simple fix
- to have a centralized place to all those patches, to help users
  extend their vim in various (sometimes unlimited) ways

I know at least (besides Markus Heidelberg's relativenumber patch):

[1] Vince Negri's Conseal patch
[2] Bill McCArthy's  Ben Schmidt's (some more math functions)
[3] Konstantin Korikov's langmapmb  (very useful in multibyte locales)
[4] vimGdb
[5] vimshell

... and I am sure there might be others.

As a host I would suggest code google [6], as it has svn access, an issue
tracker and a wiki. A link to this project from the official vim site, will
be appropriate (with the usual warnings), although not strictly
necessary. A link also from the vim wiki it seems natural.

Just an idea.

1. http://vince.negri.googlepages.com/
2. http://groups.google.com/group/vim_dev/browse_thread/thread/995aa20aac6b7bd4#
3. 
http://lostclus.linux.kiev.ua/Other_Works/Patches?action=AttachFiledo=gettarget=vim71-langmapmb-4.patch
   http://tech.groups.yahoo.com/group/vim-multibyte/message/2232?l=1
4. http://clewn.sourceforge.net/
5. http://www.wana.at/vimshell/
   http://www.wogri.at/pipermail/vimshell/2007-August/000648.html
6. http://code.google.com/hosting/

Regards,

Ag.

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: [patch] fixed typos in help files

2008-06-29 Fir de Conversatie Adri Verhoef

On Wed, Jun 25, 2008 at 20:26:59 +, Dominique Pelle wrote:
 *** version7.txt  24 Jun 2008 22:33:14 -  1.217
 --- version7.txt  25 Jun 2008 20:11:22 -
 ***
 *** 263,269 
   Ruby|ft-ruby-omni|
   SQL |ft-sql-omni|
   XML |ft-xml-omni|
 ! any language wih syntax highligting |ft-syntax-omni|
   
   You can add your own omni completion scripts.
   
 --- 263,269 
   Ruby|ft-ruby-omni|
   SQL |ft-sql-omni|
   XML |ft-xml-omni|
 ! any language with syntax highligting|ft-syntax-omni|

Also notice that it should be 'highlighting'.

Cheers,
Adri

--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: Syntax highlighting through comment hash for sh

2008-06-29 Fir de Conversatie Charles E. Campbell, Jr.

Pascal Christoph wrote:

Hello you guys-making-the-most-useful-tool-in-VR (of course I am not 
speaking only of myself),

proud to have found a little thing that, be fixed, would improve the 
improved vi even a nearly unsubstantial-tiny bit more:

If you use syntax highlighting, and programm shell scripts, then there 
is a tiny misinterpretation, an issue with the comment-sign  (hash) '#' :
  

v98 of syntax/sh.vim has had this since mid-March; it may have been 
inserted earlier.

Regards,
Chip Campbell


--~--~-~--~~~---~--~~
You received this message from the vim_dev maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---