Patch 7.2.386

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.386
Problem:Focus hack for KDE 3.1 causes problems for other window managers.
Solution:   Remove the hack. (forwarded by Joel Bradshaw)
Files:  src/gui_gtk.c


*** ../vim-7.2.385/src/gui_gtk.c2009-05-17 16:23:20.0 +0200
--- src/gui_gtk.c   2010-03-10 12:07:59.0 +0100
***
*** 2313,2331 
gtk_widget_destroy(dialog);
  }
  
- /* Terrible hack: When the text area still has focus when we remove the
-  * dialog, somehow gvim loses window focus.  This is with point to type
-  * in the KDE 3.1 window manager.  Warp the mouse pointer to outside the
-  * window and back to avoid that. */
- if (!gui.in_focus)
- {
-   int x, y;
- 
-   gdk_window_get_pointer(gui.drawarea-window, x, y, NULL);
-   gui_mch_setmouse(-100, -100);
-   gui_mch_setmouse(x, y);
- }
- 
  return response  0 ? response : 0;
  }
  
--- 2313,2318 
*** ../vim-7.2.385/src/version.c2010-03-02 18:15:47.0 +0100
--- src/version.c   2010-03-10 12:09:00.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 386,
  /**/

-- 
ARTHUR:  Well, I AM king...
DENNIS:  Oh king, eh, very nice.  An' how'd you get that, eh?  By exploitin'
 the workers -- by 'angin' on to outdated imperialist dogma which
 perpetuates the economic an' social differences in our society!  If
 there's ever going to be any progress--
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Patch 7.2.387

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.387
Problem:Ruby with MingW still doesn't build all versions.
Solution:   More #ifdefs for the  Ruby code. (Sergey Khorev)
Files:  src/if_ruby.c


*** ../vim-7.2.386/src/if_ruby.c2010-02-24 15:47:58.0 +0100
--- src/if_ruby.c   2010-03-10 12:40:30.0 +0100
***
*** 39,46 
  # define rb_cTrueClass(*dll_rb_cTrueClass)
  # if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
  /*
!  * On ver 1.8, all Ruby functions are exported with __declspce(dllimport)
!  * in ruby.h.  But it cause trouble for these variables, because it is
   * defined in this file.  When defined this RUBY_EXPORT it modified to
   * extern and be able to avoid this problem.
   */
--- 39,46 
  # define rb_cTrueClass(*dll_rb_cTrueClass)
  # if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
  /*
!  * On ver 1.8, all Ruby functions are exported with __declspec(dllimport)
!  * in ruby.h.  But it causes trouble for these variables, because it is
   * defined in this file.  When defined this RUBY_EXPORT it modified to
   * extern and be able to avoid this problem.
   */
***
*** 53,58 
--- 53,65 
  # undef _WIN32_WINNT
  #endif
  
+ #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 19
+ /* Ruby 1.9 defines a number of static functions which use rb_num2long and
+  * rb_int2big */
+ # define rb_num2long rb_num2long_stub
+ # define rb_int2big rb_int2big_stub
+ #endif
+ 
  #include ruby.h
  #if defined(RUBY_VERSION)  RUBY_VERSION = 19
  # include ruby/encoding.h
***
*** 159,165 
  #define rb_str_concat dll_rb_str_concat
  #define rb_str_newdll_rb_str_new
  #define rb_str_new2   dll_rb_str_new2
! #if defined(RUBY_VERSION)  RUBY_VERSION = 19
  # define rb_errinfo   dll_rb_errinfo
  #else
  # define ruby_errinfo (*dll_ruby_errinfo)
--- 166,179 
  #define rb_str_concat dll_rb_str_concat
  #define rb_str_newdll_rb_str_new
  #define rb_str_new2   dll_rb_str_new2
! #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
! # define rb_string_value_ptr  dll_rb_string_value_ptr
! # define rb_float_new dll_rb_float_new
! # define rb_ary_new   dll_rb_ary_new
! # define rb_ary_push  dll_rb_ary_push
! #endif
! #if defined(RUBY_VERSION)  RUBY_VERSION = 19 \
! || defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 19
  # define rb_errinfo   dll_rb_errinfo
  #else
  # define ruby_errinfo (*dll_ruby_errinfo)
***
*** 226,232 
  static VALUE (*dll_rb_str_concat) (VALUE, VALUE);
  static VALUE (*dll_rb_str_new) (const char*, long);
  static VALUE (*dll_rb_str_new2) (const char*);
! #if defined(RUBY_VERSION)  RUBY_VERSION = 19
  static VALUE (*dll_rb_errinfo) (void);
  #else
  static VALUE *dll_ruby_errinfo;
--- 240,247 
  static VALUE (*dll_rb_str_concat) (VALUE, VALUE);
  static VALUE (*dll_rb_str_new) (const char*, long);
  static VALUE (*dll_rb_str_new2) (const char*);
! #if defined(RUBY_VERSION)  RUBY_VERSION = 19 \
! || defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 19
  static VALUE (*dll_rb_errinfo) (void);
  #else
  static VALUE *dll_ruby_errinfo;
***
*** 235,240 
--- 250,264 
  static void (*dll_ruby_init_loadpath) (void);
  static void (*dll_NtInitialize) (int*, char***);
  #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
+ static char * (*dll_rb_string_value_ptr) (volatile VALUE*);
+ static VALUE (*dll_rb_float_new) (double);
+ static VALUE (*dll_rb_ary_new) (void);
+ static VALUE (*dll_rb_ary_push) (VALUE, VALUE);
+ #endif
+ #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 19
+ static VALUE (*dll_rb_int2big)(SIGNED_VALUE);
+ #endif
+ #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
  static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
  #endif
  
***
*** 246,251 
--- 270,286 
  static VALUE (*dll_rb_sprintf) (const char*, ...);
  #endif
  
+ #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 19
+ static SIGNED_VALUE rb_num2long_stub(VALUE x)
+ {
+ return dll_rb_num2long(x);
+ }
+ static VALUE rb_int2big_stub(SIGNED_VALUE x)
+ {
+ return dll_rb_int2big(x);
+ }
+ #endif
+ 
  static HINSTANCE hinstRuby = 0; /* Instance of ruby.dll */
  
  /*
***
*** 301,317 
  {rb_str_concat, (RUBY_PROC*)dll_rb_str_concat},
  {rb_str_new, (RUBY_PROC*)dll_rb_str_new},
  {rb_str_new2, (RUBY_PROC*)dll_rb_str_new2},
! #if defined(RUBY_VERSION)  RUBY_VERSION = 19
  {rb_errinfo, (RUBY_PROC*)dll_rb_errinfo},
  #else
  {ruby_errinfo, (RUBY_PROC*)dll_ruby_errinfo},
  #endif
  {ruby_init, (RUBY_PROC*)dll_ruby_init},
  {ruby_init_loadpath, (RUBY_PROC*)dll_ruby_init_loadpath},
! {NtInitialize, (RUBY_PROC*)dll_NtInitialize},
  #if defined(DYNAMIC_RUBY_VER)  DYNAMIC_RUBY_VER = 18
  {rb_w32_snprintf, 

Patch 7.2.388 (extra)

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.388 (extra part of 7.2.387)
Problem:Ruby with MingW still doesn't build all versions.
Solution:   Different approach to build file. (Sergey Khorev)
Files:  src/Make_ming.mak


*** ../vim-7.2.387/src/Make_ming.mak2010-02-26 22:05:17.0 +0100
--- src/Make_ming.mak   2010-03-10 12:34:25.0 +0100
***
*** 212,234 
  RUBY_VER_LONG = 1.6
  endif
  
- ifeq ($(RUBY_VER), 16)
  ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i586-mswin32
! endif
! ifndef RUBY_INSTALL_NAME
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
! endif
  else
- ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i386-mswin32
  endif
  ifndef RUBY_INSTALL_NAME
  RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
  endif
  endif
  
! RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
  ifeq (no, $(DYNAMIC_RUBY))
  RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
  endif
--- 212,236 
  RUBY_VER_LONG = 1.6
  endif
  
  ifndef RUBY_PLATFORM
+ ifeq ($(RUBY_VER), 16)
  RUBY_PLATFORM = i586-mswin32
! else ifneq (X$(wildcard, $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32), X)
! RUBY_PLATFORM = i386-mingw32
  else
  RUBY_PLATFORM = i386-mswin32
  endif
+ endif
+ 
  ifndef RUBY_INSTALL_NAME
+ ifeq ($(RUBY_VER), 16)
+ RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
+ else
  RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
  endif
  endif
  
! RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) -I 
$(RUBY)/include/ruby-$(RUBY_VER_LONG) -I 
$(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
  ifeq (no, $(DYNAMIC_RUBY))
  RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
  endif
*** ../vim-7.2.387/src/version.c2010-03-10 12:46:38.0 +0100
--- src/version.c   2010-03-10 13:18:38.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 388,
  /**/

-- 
Q: Is selling software the same as selling hardware?
A: No, good hardware is sold new, good software has already been used by many.

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Patch 7.2.389

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.389
Problem:synIDattr() cannot return the font.
Solution:   Support the font argument. (Christian Brabandt)
Files:  runtime/doc/eval.txt, src/eval.c, src/syntax.c


*** ../vim-7.2.388/runtime/doc/eval.txt 2010-01-19 15:51:29.0 +0100
--- runtime/doc/eval.txt2010-03-10 12:52:12.0 +0100
***
*** 5370,5375 
--- 5388,5395 
the color, cterm: color number as a string,
term: empty string)
bgbackground color (as with fg)
+   font  font name (only available in the GUI)
+   |highlight-font|
spspecial color (as with fg) |highlight-guisp|
fg#   like fg, but for the GUI and the GUI is
running the name in #RRGGBB form
***
*** 5379,5384 
--- 5399,5405 
italic1 if italic
reverse   1 if reverse
inverse   1 if inverse (= reverse)
+   standout  1 if standout
underline 1 if underlined
undercurl 1 if undercurled
  
*** ../vim-7.2.388/src/eval.c   2010-02-24 15:47:58.0 +0100
--- src/eval.c  2010-03-10 12:54:27.0 +0100
***
*** 16627,16633 
p = highlight_has_attr(id, HL_BOLD, modec);
break;
  
!   case 'f':   /* fg[#] */
p = highlight_color(id, what, modec);
break;
  
--- 16627,16633 
p = highlight_has_attr(id, HL_BOLD, modec);
break;
  
!   case 'f':   /* fg[#] or font */
p = highlight_color(id, what, modec);
break;
  
*** ../vim-7.2.388/src/syntax.c 2010-03-02 17:50:30.0 +0100
--- src/syntax.c2010-03-10 13:05:39.0 +0100
***
*** 8326,8332 
  char_u *
  highlight_color(id, what, modec)
  int   id;
! char_u*what;  /* fg, bg, sp, fg#, bg# or sp# */
  int   modec;  /* 'g' for GUI, 'c' for cterm, 't' for term */
  {
  static char_u name[20];
--- 8326,8332 
  char_u *
  highlight_color(id, what, modec)
  int   id;
! char_u*what;  /* font, fg, bg, sp, fg#, bg# or sp# */
  int   modec;  /* 'g' for GUI, 'c' for cterm, 't' for term */
  {
  static char_u name[20];
***
*** 8334,8353 
  int   fg = FALSE;
  # ifdef FEAT_GUI
  int   sp = FALSE;
  # endif
  
  if (id = 0 || id  highlight_ga.ga_len)
return NULL;
  
! if (TOLOWER_ASC(what[0]) == 'f')
fg = TRUE;
  # ifdef FEAT_GUI
! else if (TOLOWER_ASC(what[0]) == 's')
sp = TRUE;
  if (modec == 'g')
  {
/* return #RRGGBB form (only possible when GUI is running) */
!   if (gui.in_use  what[1]  what[2] == '#')
{
guicolor_T  color;
long_u  rgb;
--- 8334,8363 
  int   fg = FALSE;
  # ifdef FEAT_GUI
  int   sp = FALSE;
+ int   font = FALSE;
  # endif
  
  if (id = 0 || id  highlight_ga.ga_len)
return NULL;
  
! if (TOLOWER_ASC(what[0]) == 'f'  TOLOWER_ASC(what[1]) == 'g')
fg = TRUE;
  # ifdef FEAT_GUI
! else if (TOLOWER_ASC(what[0]) == 'f'  TOLOWER_ASC(what[1]) == 'o'
!   TOLOWER_ASC(what[2]) == 'n'  TOLOWER_ASC(what[3]) == 't')
!   font = TRUE;
! else if (TOLOWER_ASC(what[0]) == 's'  TOLOWER_ASC(what[1]) == 'p')
sp = TRUE;
+ else if (!(TOLOWER_ASC(what[0]) == 'b'  TOLOWER_ASC(what[1]) == 'g'))
+   return NULL;
  if (modec == 'g')
  {
+   /* return font name */
+   if (font)
+   return HL_TABLE()[id - 1].sg_font_name;
+ 
/* return #RRGGBB form (only possible when GUI is running) */
!   if (gui.in_use  what[2] == '#')
{
guicolor_T  color;
long_u  rgb;
***
*** 8374,8379 
--- 8384,8391 
return (HL_TABLE()[id - 1].sg_gui_sp_name);
return (HL_TABLE()[id - 1].sg_gui_bg_name);
  }
+ if (font || sp)
+   return NULL;
  # endif
  if (modec == 'c')
  {
*** ../vim-7.2.388/src/version.c2010-03-10 13:19:28.0 +0100
--- src/version.c   2010-03-10 13:33:25.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 389,
  /**/

-- 
WOMAN:   Dennis, there's some lovely filth down here.  Oh -- how d'you do?
ARTHUR:  How do you do, good lady.  I am Arthur, King of the Britons.
 Who's castle is that?
WOMAN:   King of the who?
  The 

qmake with vim like (keymap) interface

2010-03-10 Fir de Conversatie mobi phil
Bit off topic, but I was wondering if anybody thought to do some
experiments to add some vim like interface for qemacs.

Vim is fast, but it seems that qemacs is much faster due to the better
in memory model of the files.

http://bellard.org/qemacs


rgrds,
mobi phil

being mobile, but including technology
http://mobiphil.com

-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Patch 7.2.390

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.390
Problem:In some situations the popup menu can be displayed wrong.
Solution:   Remove the popup menu if the cursor moved. (Lech Lorens)
Files:  src/edit.c


*** ../vim-7.2.389/src/edit.c   2010-01-19 14:59:14.0 +0100
--- src/edit.c  2010-03-10 14:09:56.0 +0100
***
*** 4684,4689 
--- 4684,4690 
  int   startcol = 0;   /* column where searched text 
starts */
  colnr_T   curs_col;   /* cursor column */
  int   n;
+ int   save_w_wrow;
  
  compl_direction = ins_compl_key2dir(c);
  if (!compl_started)
***
*** 5067,5072 
--- 5068,5074 
  /*
   * Find next match (and following matches).
   */
+ save_w_wrow = curwin-w_wrow;
  n = ins_compl_next(TRUE, ins_compl_key2count(c), ins_compl_use_match(c));
  
  /* may undisplay the popup menu */
***
*** 5220,5225 
--- 5222,5233 
/* RedrawingDisabled may be set when invoked through complete(). */
n = RedrawingDisabled;
RedrawingDisabled = 0;
+ 
+   /* If the cursor moved we need to remove the pum first. */
+   setcursor();
+   if (save_w_wrow != curwin-w_wrow)
+   ins_compl_del_pum();
+ 
ins_compl_show_pum();
setcursor();
RedrawingDisabled = n;
*** ../vim-7.2.389/src/version.c2010-03-10 13:43:22.0 +0100
--- src/version.c   2010-03-10 14:13:55.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 390,
  /**/

-- 
`When any government, or any church for that matter, undertakes to say to
 its subjects, This you may not read, this you must not see, this you are
 forbidden to know, the end result is tyranny and oppression no matter how
 holy the motives' -- Robert A Heinlein, If this goes on --

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Patch 7.2.391

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.391
Problem:Internal alloc(0) error when doing CTRL-V $ c. (Martti Kuparinen)
Solution:   Fix computations in getvcol(). (partly by Lech Lorens)
Files:  src/charset.c, src/memline.c


*** ../vim-7.2.390/src/charset.c2009-11-03 16:03:59.0 +0100
--- src/charset.c   2010-03-10 14:38:14.0 +0100
***
*** 1255,1261 
  
  vcol = 0;
  ptr = ml_get_buf(wp-w_buffer, pos-lnum, FALSE);
! posptr = ptr + pos-col;
  
  /*
   * This function is used very often, do some speed optimizations.
--- 1255,1264 
  
  vcol = 0;
  ptr = ml_get_buf(wp-w_buffer, pos-lnum, FALSE);
! if (pos-col == MAXCOL)
!   posptr = NULL;  /* continue until the NUL */
! else
!   posptr = ptr + pos-col;
  
  /*
   * This function is used very often, do some speed optimizations.
***
*** 1313,1319 
incr = CHARSIZE(c);
}
  
!   if (ptr = posptr)  /* character at pos-col */
break;
  
vcol += incr;
--- 1316,1322 
incr = CHARSIZE(c);
}
  
!   if (posptr != NULL  ptr = posptr) /* character at pos-col */
break;
  
vcol += incr;
***
*** 1334,1340 
break;
}
  
!   if (ptr = posptr)  /* character at pos-col */
break;
  
vcol += incr;
--- 1337,1343 
break;
}
  
!   if (posptr != NULL  ptr = posptr) /* character at pos-col */
break;
  
vcol += incr;
*** ../vim-7.2.390/src/memline.c2010-02-11 18:54:38.0 +0100
--- src/memline.c   2010-03-10 14:38:25.0 +0100
***
*** 2113,2124 
  if (buf-b_ml.ml_mfp == NULL) /* there are no lines */
return (char_u *);
  
! /*
!  * See if it is the same line as requested last time.
!  * Otherwise may need to flush last used line.
!  * Don't use the last used line when 'swapfile' is reset, need to load all
!  * blocks.
!  */
  if (buf-b_ml.ml_line_lnum != lnum || mf_dont_release)
  {
ml_flush_line(buf);
--- 2113,2124 
  if (buf-b_ml.ml_mfp == NULL) /* there are no lines */
return (char_u *);
  
! /*
!  * See if it is the same line as requested last time.
!  * Otherwise may need to flush last used line.
!  * Don't use the last used line when 'swapfile' is reset, need to load all
!  * blocks.
!  */
  if (buf-b_ml.ml_line_lnum != lnum || mf_dont_release)
  {
ml_flush_line(buf);
*** ../vim-7.2.390/src/version.c2010-03-10 14:15:28.0 +0100
--- src/version.c   2010-03-10 14:31:02.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 391,
  /**/

-- 
WOMAN:   King of the who?
ARTHUR:  The Britons.
WOMAN:   Who are the Britons?
ARTHUR:  Well, we all are. we're all Britons and I am your king.
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Patch 7.2.392

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.392
Problem:Netbeans hangs reading from a socket at the maximum block size.
Solution:   Use select() or poll(). (Xavier de Gaye)
Files:  src/vim.h, src/os_unixx.h, src/if_xcmdsrv.c, src/netbeans.c


*** ../vim-7.2.391/src/vim.h2010-03-02 15:55:51.0 +0100
--- src/vim.h   2010-03-10 15:14:03.0 +0100
***
*** 477,482 
--- 477,499 
  # include stdarg.h
  #endif
  
+ # if defined(HAVE_SYS_SELECT_H)  \
+   (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME))
+ #  include sys/select.h
+ # endif
+ 
+ # ifndef HAVE_SELECT
+ #  ifdef HAVE_SYS_POLL_H
+ #   include sys/poll.h
+ #   define HAVE_POLL
+ #  else
+ #   ifdef HAVE_POLL_H
+ #include poll.h
+ #define HAVE_POLL
+ #   endif
+ #  endif
+ # endif
+ 
  /*  end of the header file puzzle === */
  
  /*
*** ../vim-7.2.391/src/os_unixx.h   2006-03-25 22:48:00.0 +0100
--- src/os_unixx.h  2010-03-10 15:14:49.0 +0100
***
*** 28,38 
  #  include sys/wait.h
  # endif
  
- # if defined(HAVE_SYS_SELECT_H)  \
-   (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME))
- #  include sys/select.h
- # endif
- 
  # ifndef WEXITSTATUS
  #  ifdef HAVE_UNION_WAIT
  #   define WEXITSTATUS(stat_val) ((stat_val).w_T.w_Retcode)
--- 28,33 
***
*** 65,80 
  # include string.h
  #endif
  
- #ifndef HAVE_SELECT
- # ifdef HAVE_SYS_POLL_H
- #  include sys/poll.h
- # else
- #  ifdef HAVE_POLL_H
- #   include poll.h
- #  endif
- # endif
- #endif
- 
  #ifdef HAVE_SYS_STREAM_H
  # include sys/stream.h
  #endif
--- 60,65 
*** ../vim-7.2.391/src/if_xcmdsrv.c 2009-05-16 17:29:37.0 +0200
--- src/if_xcmdsrv.c2010-03-10 15:14:09.0 +0100
***
*** 21,41 
  #  include X11/Xatom.h
  # endif
  
- # if defined(HAVE_SYS_SELECT_H)  \
-   (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME))
- #  include sys/select.h
- # endif
- 
- # ifndef HAVE_SELECT
- #  ifdef HAVE_SYS_POLL_H
- #   include sys/poll.h
- #  else
- #   ifdef HAVE_POLL_H
- #include poll.h
- #   endif
- #  endif
- # endif
- 
  /*
   * This file provides procedures that implement the command server
   * functionality of Vim when in contact with an X11 server.
--- 21,26 
*** ../vim-7.2.391/src/netbeans.c   2010-01-19 15:12:33.0 +0100
--- src/netbeans.c  2010-03-10 15:21:37.0 +0100
***
*** 736,741 
--- 736,749 
  #ifndef FEAT_GUI_GTK
  static intlevel = 0;
  #endif
+ #ifdef HAVE_SELECT
+ struct timevaltval;
+ fd_setrfds;
+ #else
+ # ifdef HAVE_POLL
+ struct pollfd fds;
+ # endif
+ #endif
  
  if (sd  0)
  {
***
*** 755,763 
return; /* out of memory! */
  }
  
! /* Keep on reading for as long as there is something to read. */
  for (;;)
  {
len = sock_read(sd, buf, MAXMSGSIZE);
if (len = 0)
break;  /* error or nothing more to read */
--- 763,788 
return; /* out of memory! */
  }
  
! /* Keep on reading for as long as there is something to read.
!  * Use select() or poll() to avoid blocking on a message that is exactly
!  * MAXMSGSIZE long. */
  for (;;)
  {
+ #ifdef HAVE_SELECT
+   FD_ZERO(rfds);
+ FD_SET(sd, rfds);
+ tval.tv_sec = 0;
+ tval.tv_usec = 0;
+ if (select(sd + 1, rfds, NULL, NULL, tval) = 0)
+ break;
+ #else
+ # ifdef HAVE_POLL
+   fds.fd = sd;
+   fds.events = POLLIN;
+ if (poll(fds, 1, 0) = 0)
+ break;
+ # endif
+ #endif
len = sock_read(sd, buf, MAXMSGSIZE);
if (len = 0)
break;  /* error or nothing more to read */
*** ../vim-7.2.391/src/version.c2010-03-10 14:46:21.0 +0100
--- src/version.c   2010-03-10 16:10:48.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 392,
  /**/

-- 
WOMAN:   I didn't know we had a king. I thought we were an autonomous
 collective.
DENNIS:  You're fooling yourself.  We're living in a dictatorship.  A
 self-perpetuating autocracy in which the working classes--
WOMAN:   Oh there you go, bringing class into it again.
DENNIS:  That's what it's all about if only people would--
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit 

Patch 7.2.393

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.393
Problem:Mac: Can't build with different Xcode developer tools directory.
Solution:   make Developer directory name configurable. (Rainer Muller)
Files:  src/configure.in, src/auto/configure


*** ../vim-7.2.392/src/configure.in 2010-02-24 14:46:58.0 +0100
--- src/configure.in2010-03-10 16:16:48.0 +0100
***
*** 116,121 
--- 116,137 
MACARCH=$withval; AC_MSG_RESULT($MACARCH),
MACARCH=current; AC_MSG_RESULT(defaulting to $MACARCH))
  
+   AC_MSG_CHECKING(--with-developer-dir argument)
+   AC_ARG_WITH(developer-dir, [  --with-developer-dir=PATHuse PATH as 
location for Xcode developer tools],
+   DEVELOPER_DIR=$withval; AC_MSG_RESULT($DEVELOPER_DIR),
+ DEVELOPER_DIR=; AC_MSG_RESULT(not present))
+   
+   if test x$DEVELOPER_DIR = x; then
+ AC_PATH_PROG(XCODE_SELECT, xcode-select)
+ if test x$XCODE_SELECT != x; then
+   AC_MSG_CHECKING(for developer dir using xcode-select)
+   DEVELOPER_DIR=`$XCODE_SELECT -print-path`
+   AC_MSG_RESULT([$DEVELOPER_DIR])
+ else
+   DEVELOPER_DIR=/Developer
+ fi
+   fi
+ 
if test x$MACARCH = xboth; then
  AC_MSG_CHECKING(for 10.4 universal SDK)
  dnl There is a terrible inconsistency (but we appear to get away with it):
***
*** 127,133 
  save_cppflags=$CPPFLAGS
  save_cflags=$CFLAGS
  save_ldflags=$LDFLAGS
! CFLAGS=$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-arch ppc
  AC_TRY_LINK([ ], [ ],
AC_MSG_RESULT(found, will make universal binary),
  
--- 143,149 
  save_cppflags=$CPPFLAGS
  save_cflags=$CFLAGS
  save_ldflags=$LDFLAGS
! CFLAGS=$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 
-arch ppc
  AC_TRY_LINK([ ], [ ],
AC_MSG_RESULT(found, will make universal binary),
  
***
*** 157,165 
  dnl TODO: use -arch i386 on Intel machines
  CPPFLAGS=$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp
  if test x$MACARCH = xboth; then
!   CPPFLAGS=$CPPFLAGS 
-I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon
  else
!   CPPFLAGS=$CPPFLAGS -I/Developer/Headers/FlatCarbon
  fi
  
  dnl If Carbon is found, assume we don't want X11
--- 173,181 
  dnl TODO: use -arch i386 on Intel machines
  CPPFLAGS=$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp
  if test x$MACARCH = xboth; then
!   CPPFLAGS=$CPPFLAGS 
-I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon
  else
!   CPPFLAGS=$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon
  fi
  
  dnl If Carbon is found, assume we don't want X11
***
*** 3233,3239 
fi
  fi
  if test x$MACARCH = xboth; then
!   LDFLAGS=$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-arch ppc
  fi
  
  dnl gcc 3.1 changed the meaning of -MM.  The only solution appears to be to
--- 3249,3255 
fi
  fi
  if test x$MACARCH = xboth; then
!   LDFLAGS=$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 
-arch ppc
  fi
  
  dnl gcc 3.1 changed the meaning of -MM.  The only solution appears to be to
*** ../vim-7.2.392/src/auto/configure   2010-02-24 14:46:58.0 +0100
--- src/auto/configure  2010-03-10 16:19:47.0 +0100
***
*** 718,723 
--- 718,724 
  VIMNAME
  OS_EXTRA_OBJ
  OS_EXTRA_SRC
+ XCODE_SELECT
  CPP_MM
  STRIP
  AWK
***
*** 774,779 
--- 775,781 
  enable_option_checking
  enable_darwin
  with_mac_arch
+ with_developer_dir
  with_local_dir
  with_vim_name
  with_ex_name
***
*** 1492,1497 
--- 1494,1500 
--with-PACKAGE[=ARG]use PACKAGE [ARG=yes]
--without-PACKAGE   do not use PACKAGE (same as --with-PACKAGE=no)
--with-mac-arch=ARCHcurrent, intel, ppc or both
+   --with-developer-dir=PATHuse PATH as location for Xcode developer tools
--with-local-dir=PATH   search PATH instead of /usr/local for local 
libraries.
--without-local-dir do not search /usr/local for local libraries.
--with-vim-name=NAMEwhat to call the Vim executable
***
*** 3833,3845 
  fi
  
  
if test x$MACARCH = xboth; then
  { $as_echo $as_me:$LINENO: checking for 10.4 universal SDK 5
  $as_echo_n checking for 10.4 universal SDK...  6; }
  save_cppflags=$CPPFLAGS
  save_cflags=$CFLAGS
  save_ldflags=$LDFLAGS
! CFLAGS=$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 
-arch ppc
  cat conftest.$ac_ext _ACEOF
  /* confdefs.h.  */
  _ACEOF
--- 3836,3913 
  fi
  
  
+   { $as_echo $as_me:$LINENO: checking --with-developer-dir argument 5
+ $as_echo_n checking --with-developer-dir argument...  6; }
+ 
+ # Check whether --with-developer-dir was given.
+ if test ${with_developer_dir+set} = set; then
+   withval=$with_developer_dir; DEVELOPER_DIR=$withval; { $as_echo 
$as_me:$LINENO: result: $DEVELOPER_DIR 5
+ $as_echo 

Patch 7.2.394

2010-03-10 Fir de Conversatie Bram Moolenaar

Patch 7.2.394
Problem:.lzma and .xz files are not supported.
Solution:   Recognize .lzma and .xz files so that they can be edited.
Files:  runtime/plugin/gzip.vim


*** ../vim-7.2.393/runtime/plugin/gzip.vim  2005-07-27 23:12:49.0 
+0200
--- runtime/plugin/gzip.vim 2010-03-10 17:07:22.0 +0100
***
*** 1,6 
   Vim plugin for editing compressed files.
   Maintainer: Bram Moolenaar b...@vim.org
!  Last Change: 2005 Jul 26
  
   Exit quickly when:
   - this plugin was already loaded
--- 1,6 
   Vim plugin for editing compressed files.
   Maintainer: Bram Moolenaar b...@vim.org
!  Last Change: 2010 Mar 10
  
   Exit quickly when:
   - this plugin was already loaded
***
*** 20,36 

 Set binary mode before reading the file.
 Use gzip -d, gunzip isn't always available.
!   autocmd BufReadPre,FileReadPre  *.gz,*.bz2,*.Z setlocal bin
autocmd BufReadPost,FileReadPost*.gz  call gzip#read(gzip -dn)
autocmd BufReadPost,FileReadPost*.bz2 call gzip#read(bzip2 -d)
autocmd BufReadPost,FileReadPost*.Z   call gzip#read(uncompress)
autocmd BufWritePost,FileWritePost  *.gz  call gzip#write(gzip)
autocmd BufWritePost,FileWritePost  *.bz2 call gzip#write(bzip2)
autocmd BufWritePost,FileWritePost  *.Z   call gzip#write(compress -f)
autocmd FileAppendPre   *.gz  call gzip#appre(gzip 
-dn)
autocmd FileAppendPre   *.bz2 call gzip#appre(bzip2 
-d)
autocmd FileAppendPre   *.Z   call 
gzip#appre(uncompress)
autocmd FileAppendPost  *.gz  call gzip#write(gzip)
autocmd FileAppendPost  *.bz2 call gzip#write(bzip2)
autocmd FileAppendPost  *.Z   call gzip#write(compress -f)
  augroup END
--- 20,44 

 Set binary mode before reading the file.
 Use gzip -d, gunzip isn't always available.
!   autocmd BufReadPre,FileReadPre  *.gz,*.bz2,*.Z,*.lzma,*.xz setlocal bin
autocmd BufReadPost,FileReadPost*.gz  call gzip#read(gzip -dn)
autocmd BufReadPost,FileReadPost*.bz2 call gzip#read(bzip2 -d)
autocmd BufReadPost,FileReadPost*.Z   call gzip#read(uncompress)
+   autocmd BufReadPost,FileReadPost*.lzma call gzip#read(lzma -d)
+   autocmd BufReadPost,FileReadPost*.xz  call gzip#read(xz -d)
autocmd BufWritePost,FileWritePost  *.gz  call gzip#write(gzip)
autocmd BufWritePost,FileWritePost  *.bz2 call gzip#write(bzip2)
autocmd BufWritePost,FileWritePost  *.Z   call gzip#write(compress -f)
+   autocmd BufWritePost,FileWritePost  *.lzma call gzip#write(lzma -z)
+   autocmd BufWritePost,FileWritePost  *.xz  call gzip#write(xz -z)
autocmd FileAppendPre   *.gz  call gzip#appre(gzip 
-dn)
autocmd FileAppendPre   *.bz2 call gzip#appre(bzip2 
-d)
autocmd FileAppendPre   *.Z   call 
gzip#appre(uncompress)
+   autocmd FileAppendPre   *.lzma call gzip#appre(lzma 
-d)
+   autocmd FileAppendPre   *.xz   call gzip#appre(xz -d)
autocmd FileAppendPost  *.gz  call gzip#write(gzip)
autocmd FileAppendPost  *.bz2 call gzip#write(bzip2)
autocmd FileAppendPost  *.Z   call gzip#write(compress -f)
+   autocmd FileAppendPost  *.lzma call gzip#write(lzma -z)
+   autocmd FileAppendPost  *.xz call gzip#write(xz -z)
  augroup END
*** ../vim-7.2.393/src/version.c2010-03-10 16:27:27.0 +0100
--- src/version.c   2010-03-10 17:12:43.0 +0100
***
*** 683,684 
--- 683,686 
  {   /* Add new patch number below this line */
+ /**/
+ 394,
  /**/

-- 
ARTHUR:  Be quiet!
DENNIS:  --but by a two-thirds majority in the case of more--
ARTHUR:  Be quiet!  I order you to be quiet!
WOMAN:   Order, eh -- who does he think he is?
ARTHUR:  I am your king!
  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- b...@moolenaar.net -- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


VIM-7.2.394 multibyte related problem?

2010-03-10 Fir de Conversatie SungHyun Nam

Hello,

With the attached files (vimrc and mb.txt), if I open the mb.txt
and just type A,
gvim -u vimrc -U NONE --noplugin mb.txt
A,

Now, I should saw (X = cursor):
,X
But, I saw
, X

It occurs on 3 different versions of gvim,
win32/cygwin-gtk2/linux-gtk2.  I included cygwin-gtk2 version info
below.

Thanks,
namsh

:ver
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 11 2010 08:56:42)
Included patches: 1-394
Compiled by na...@namsh
Normal version with GTK2 GUI.  Features included (+) or not (-):
-arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info 
+comments

+cryptv -cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic
-emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path +find_in_path
+float +folding -footer +fork() +gettext -hangul_input +iconv +insert_expand
+jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds 
+localmap

+menu +mksession +modify_fname +mouse +mouseshape -mouse_dec -mouse_gpm
-mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
+multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl 
+postscript

+printer -profile +python +quickfix +reltime -rightleft -ruby +scrollbind
+signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
+X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: $VIM/vimrc
 user vimrc file: $HOME/.vimrc
  user exrc file: $HOME/.exrc
  system gvimrc file: $VIM/gvimrc
user gvimrc file: $HOME/.gvimrc
system menu file: $VIMRUNTIME/menu.vim
  fall-back for $VIM: /opt/share/vim
Compilation: gcc-4 -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK 
-I/usr/include
/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/
usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 
  -O2 -m
arch=i686 -fno-strict-aliasing -pipe -D_FORTIFY_SOURCE=1 
-I/usr/include/pyth

on2.5
Linking: gcc-4   -L/usr/local/lib -o vim.exe   -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk
-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lXinerama -lXi 
-lXrandr -lXcur
sor -lXcomposite -lXdamage -lpangoft2-1.0 -lXext -lXfixes -lcairo 
-lpixman-1 -lg
litz -lpng12 -lxcb-render-util -lXrender -lxcb-render -lxcb -lXau 
-lpango-1.0 -l
fontconfig -lexpat -lfreetype -lz -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 
-lintl
-lXt -lX11 -lSM -lICE -lncurses -liconv -lintl 
-L/usr/lib/python2.5/config -l

python2.5 -lm

--
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
set tw=0 nowrap listchars+=extends:,precedes: sidescroll=1 fencs=utf-8
한글한 aaa,글한글 aa,한글한 
aa


Re: VIM-7.2.394 multibyte related problem?

2010-03-10 Fir de Conversatie winterTTr
On Thu, Mar 11, 2010 at 8:29 AM, SungHyun Nam gow...@gmail.com wrote:

 Hello,

 With the attached files (vimrc and mb.txt), if I open the mb.txt
 and just type A,
gvim -u vimrc -U NONE --noplugin mb.txt
A,

 Now, I should saw (X = cursor):
,X
 But, I saw
, X

 It occurs on 3 different versions of gvim,
 win32/cygwin-gtk2/linux-gtk2.  I included cygwin-gtk2 version info
 below.


Yes, i can reproduce some of this.
If i just press A, the position is one character after the right position.
like :  a X
But after i press , , it turns out to be right.
like :  a,X

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar  4 2010 13:37:29)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-385
Compiled by wangh...@ap
Big version with GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl
+cmdline_hist +cmdline_info +comments +cryptv +cscope +cursorshape
+dialog_con_gui +diff +digraphs -dnd -ebcdic +emacs_tags +eval
 +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding
-footer +gettext/dyn -hangul_input +iconv/dyn
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent
+listcmds +localmap +menu +mksession +modify_fname
+mouse +mouseshape +multi_byte_ime/dyn +multi_lang -mzscheme +netbeans_intg
+ole -osfiletype +path_extra +perl/dyn -postscript
+printer -profile +python/dyn +quickfix +reltime +rightleft -ruby
+scrollbind +signs +smartindent -sniff +startuptime +statusline
 -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl
-tgetent -termresponse +textobjects +title +toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup
-xfontset -xim -xterm_save -xpm_w32





 Thanks,
 namsh

 :ver
 VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 11 2010 08:56:42)
 Included patches: 1-394
 Compiled by na...@namsh
 Normal version with GTK2 GUI.  Features included (+) or not (-):
 -arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent
 +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
 +comments
 +cryptv -cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic
 -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
 +find_in_path
 +float +folding -footer +fork() +gettext -hangul_input +iconv
 +insert_expand
 +jumplist -keymap -langmap +libcall +linebreak +lispindent +listcmds
 +localmap
 +menu +mksession +modify_fname +mouse +mouseshape -mouse_dec -mouse_gpm
 -mouse_jsbterm -mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte
 +multi_lang -mzscheme +netbeans_intg -osfiletype +path_extra -perl
 +postscript
 +printer -profile +python +quickfix +reltime -rightleft -ruby +scrollbind
 +signs +smartindent -sniff +startuptime +statusline -sun_workshop +syntax
 +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
 +textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
 +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
 +X11 -xfontset +xim +xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: $VIM/vimrc
 user vimrc file: $HOME/.vimrc
  user exrc file: $HOME/.exrc
  system gvimrc file: $VIM/gvimrc
user gvimrc file: $HOME/.gvimrc
system menu file: $VIMRUNTIME/menu.vim
  fall-back for $VIM: /opt/share/vim
 Compilation: gcc-4 -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
 -I/usr/include
 /gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
 -I/usr/include/cairo
 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
 -I/usr/lib/glib-2.0/include -I/
 usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -O2
 -m
 arch=i686 -fno-strict-aliasing -pipe -D_FORTIFY_SOURCE=1
 -I/usr/include/pyth
 on2.5
 Linking: gcc-4   -L/usr/local/lib -o vim.exe   -lgtk-x11-2.0 -lgdk-x11-2.0
 -latk
 -1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lgio-2.0 -lXinerama -lXi -lXrandr
 -lXcur
 sor -lXcomposite -lXdamage -lpangoft2-1.0 -lXext -lXfixes -lcairo
 -lpixman-1 -lg
 litz -lpng12 -lxcb-render-util -lXrender -lxcb-render -lxcb -lXau
 -lpango-1.0 -l
 fontconfig -lexpat -lfreetype -lz -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
 -lintl
 -lXt -lX11 -lSM -lICE -lncurses -liconv -lintl -L/usr/lib/python2.5/config
 -l
 python2.5 -lm

 --
 You received this message from the vim_dev maillist.
 Do not top-post! Type your reply below the text you are replying to.
 For more information, visit http://www.vim.org/maillist.php


-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: VIM-7.2.394 multibyte related problem?

2010-03-10 Fir de Conversatie Dominique Pellé
SungHyun Nam wrote:

 Hello,

 With the attached files (vimrc and mb.txt), if I open the mb.txt
 and just type A,
    gvim -u vimrc -U NONE --noplugin mb.txt
    A,

 Now, I should saw (X = cursor):
    ,X
 But, I saw
    , X

 It occurs on 3 different versions of gvim,
 win32/cygwin-gtk2/linux-gtk2.  I included cygwin-gtk2 version info
 below.

 Thanks,
 namsh

 :ver
 VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 11 2010 08:56:42)
 Included patches: 1-394


I can reproduce it too with at least Vim-7.2.394 or Vim-7.2.245
in the gnome-terminal and in xterm, as well as with gVim GTK 2
on Linux. But I can only reproduce it with some values of 'colums'.
I can for example reproduce it with 50, 51, 77, 78, 79, 80, 81,
or 82 columns. But I can't reproduce it with for example 52, 75,
76, 83 or 84 columns.

So to be able to reproduce it, you may have to add
set columns=80 to the vimrc sample file:

$ cat vimrc
set columns=80 tw=0 nowrap listchars+=extends:,precedes:
sidescroll=1 fencs=utf-8

Additionally, if you also put set list in the vimrc, you can
see the cursor after $ (which marks the end of the line) when
pressing  A,  (I would expect the cursor to be on the position
of the $ character).

'enc' is set to utf-8.

Cheers
-- Dominique

-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: VIM-7.2.394 multibyte related problem?

2010-03-10 Fir de Conversatie Matt Wozniski
2010/3/10 Dominique Pellé dominique.pe...@gmail.com:
 SungHyun Nam wrote:

 Hello,

 With the attached files (vimrc and mb.txt), if I open the mb.txt
 and just type A,
    gvim -u vimrc -U NONE --noplugin mb.txt
    A,

 Now, I should saw (X = cursor):
    ,X
 But, I saw
    , X

 It occurs on 3 different versions of gvim,
 win32/cygwin-gtk2/linux-gtk2.  I included cygwin-gtk2 version info
 below.

 Thanks,
 namsh

 :ver
 VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Mar 11 2010 08:56:42)
 Included patches: 1-394


 I can reproduce it too with at least Vim-7.2.394 or Vim-7.2.245
 in the gnome-terminal and in xterm, as well as with gVim GTK 2
 on Linux. But I can only reproduce it with some values of 'colums'.
 I can for example reproduce it with 50, 51, 77, 78, 79, 80, 81,
 or 82 columns. But I can't reproduce it with for example 52, 75,
 76, 83 or 84 columns.

 So to be able to reproduce it, you may have to add
 set columns=80 to the vimrc sample file:

 $ cat vimrc
 set columns=80 tw=0 nowrap listchars+=extends:,precedes:
 sidescroll=1 fencs=utf-8

Aha, I can reproduce after dropping the number of columns to 80, in
all 3 environments that I had previously tested.  That was the missing
element.  Is this something related to a doublewide character being
scrolled offscreen by one cell?

~Matt

-- 
You received this message from the vim_dev maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php