Dominique Pellé | 1 Apr 2011 07:12
Picon

Re: vim v7.3.125 crashes when running a macro with a count in the thousands

Mun wrote:

> Hi,
>
> My OS: Red Hat Enterprise Linux 5.6
> My configure command:
>   configure --with-features=huge --enable-perlinterp --enable-pythoninterp --enable-gui
>
> I must apologize that I don't have too much to go on with this issue,
> but I'll provide what I have and I will try to get more data if requested.
>
> I had a simple macro that would take a line and reformat it by adding
> strings to the beginning and ending of the line.  Nothing tricky or
> complex.
>
> The file I was operating on had roughly 11,000 lines.  If I executed the
> macro with a count of about 2,000 vim crashes on me.
>
> When I use the following vim command:
> % vim --noplugin <filename>
>
> I get the following lines outut to the terminal when vim crashes:
>
> ------------------------------ Delimiter BEGIN --------------------------------
>
> BadRequest (invalid request code or no such operation)
> Vim: Got X error
> Vim: preserving files...
> Vim: Finished.
> 44;0MBadRequest (invalid request code or no such operation)
(Continue reading)

Mun | 1 Apr 2011 07:28
Picon

Re: vim v7.3.125 crashes when running a macro with a count in the thousands

Hi Dominique,

On Thu, Mar 31, 2011 at 10:12 PM PDT, Dominique Pellé wrote:
DP> Mun wrote:
DP> 
DP> > Hi,
DP> >
DP> > My OS: Red Hat Enterprise Linux 5.6
DP> > My configure command:
DP> >   configure --with-features=huge --enable-perlinterp --enable-pythoninterp --enable-gui
DP> >
DP> > I must apologize that I don't have too much to go on with this issue,
DP> > but I'll provide what I have and I will try to get more data if requested.
DP> >
DP> > I had a simple macro that would take a line and reformat it by adding
DP> > strings to the beginning and ending of the line.  Nothing tricky or
DP> > complex.
DP> >
DP> > The file I was operating on had roughly 11,000 lines.  If I executed the
DP> > macro with a count of about 2,000 vim crashes on me.
DP> >
DP> > When I use the following vim command:
DP> > % vim --noplugin <filename>
DP> >
DP> > I get the following lines outut to the terminal when vim crashes:
DP> >
DP> > ------------------------------ Delimiter BEGIN --------------------------------
DP> >
DP> > BadRequest (invalid request code or no such operation)
DP> > Vim: Got X error
(Continue reading)

Bram Moolenaar | 1 Apr 2011 13:06
Picon

Patch 7.3.147


Patch 7.3.147 (after 7.3.143)
Problem:    Can't build on HP-UX.
Solution:   Remove an unnecessary backslash. (John Marriott)
Files:	    src/Makefile

*** ../vim-7.3.146/src/Makefile	2011-03-22 18:10:34.000000000 +0100
--- src/Makefile	2011-04-01 13:00:58.000000000 +0200
***************
*** 1565,1571 ****

  OBJ = $(OBJ_COMMON) \
  	objects/main.o \
! 	objects/memfile.o \

  MEMFILE_TEST_OBJ = $(OBJ_COMMON) \
          objects/memfile_test.o
--- 1565,1571 ----

  OBJ = $(OBJ_COMMON) \
  	objects/main.o \
! 	objects/memfile.o

  MEMFILE_TEST_OBJ = $(OBJ_COMMON) \
          objects/memfile_test.o
*** ../vim-7.3.146/src/version.c	2011-03-27 16:03:09.000000000 +0200
--- src/version.c	2011-04-01 13:05:18.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
(Continue reading)

Bram Moolenaar | 1 Apr 2011 13:06
Picon

Re: patch 7.3.143 compile failure


John Marriott wrote:

[HTML removed]

> After applying this patch vim fails
> to compile under HP-UX, with this message:
[..]
> Make: Don't know how to make
> MEMFILE_TEST_OBJ.  Stop.

> The attached patch makes it all better.

Ah yes, old make can't handle these backslashes.  Thanks.

-- 
Hanson's Treatment of Time:
	There are never enough hours in a day, but always too
	many days before Saturday.

 /// Bram Moolenaar -- Bram <at> Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.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

(Continue reading)

Bram Moolenaar | 1 Apr 2011 13:06
Picon

Re: mush.vim syntax file


Rick Bird wrote:

> Not sure who this goes to anymore since sven guckes page no longer exists for 
> the syntax files..   Though the last time I updated mush.vim was in 2005, I 
> recently updated the syntax file with a current list of the 
> functions/commands/flags for the language and posted it to vim online.
> I guess whoever is responsible for incorporating this can put it
> within the next vim distribution.
> 
> http://www.vim.org/scripts/script.php?script_id=3530
> 
> If there is a more appropriate place I should be sending this message
> please let me know, thank you. :)

Please send updates for runtime files to me.  You can send a copy to the
Vim maillist, so that others can try it out.

--

-- 
DENNIS: Look,  strange women lying on their backs in ponds handing out
        swords ... that's no basis for a system of government.  Supreme
        executive power derives from a mandate from the masses, not from some
        farcical aquatic ceremony.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram <at> Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

(Continue reading)

Bram Moolenaar | 1 Apr 2011 14:45
Picon

Patch 7.3.148


Patch 7.3.148
Problem:    A syntax file with a huge number of items or clusters causes weird
	    behavior, a hang or a crash. (Yukihiro Nakadaira)
Solution:   Check running out of IDs. (partly by Ben Schmidt)
Files:	    src/syntax.c

*** ../vim-7.3.147/src/syntax.c	2011-01-22 00:58:15.000000000 +0100
--- src/syntax.c	2011-04-01 14:25:39.000000000 +0200
***************
*** 219,234 ****

  /*
   * Syntax group IDs have different types:
!  *     0 -  9999  normal syntax groups
!  * 10000 - 14999  ALLBUT indicator (current_syn_inc_tag added)
!  * 15000 - 19999  TOP indicator (current_syn_inc_tag added)
!  * 20000 - 24999  CONTAINED indicator (current_syn_inc_tag added)
!  * >= 25000	  cluster IDs (subtract SYNID_CLUSTER for the cluster ID)
!  */
! #define SYNID_ALLBUT	10000	    /* syntax group ID for contains=ALLBUT */
! #define SYNID_TOP	15000	    /* syntax group ID for contains=TOP */
! #define SYNID_CONTAINED	20000	    /* syntax group ID for contains=CONTAINED */
! #define SYNID_CLUSTER	25000	    /* first syntax group ID for clusters */

  /*
   * Annoying Hack(TM):  ":syn include" needs this pointer to pass to
--- 219,238 ----

  /*
(Continue reading)

Bram Moolenaar | 1 Apr 2011 15:34
Picon

Patch 7.3.149


Patch 7.3.149
Problem:    The cursor disappears after the processing of the 'setDot'
	    netbeans command when vim runs in a terminal.
Solution:   Show the cursor after a screen update. (Xavier de Gaye, 2011
Files:	    src/netbeans.c

*** ../vim-7.3.148/src/netbeans.c	2011-01-04 18:11:39.000000000 +0100
--- src/netbeans.c	2011-04-01 15:33:49.000000000 +0200
***************
*** 191,196 ****
--- 191,197 ----
      changed_window_setting();
      update_screen(CLEAR);
      setcursor();
+     cursor_on();
      out_flush();
  #ifdef FEAT_GUI
      if (gui.in_use)
***************
*** 2248,2253 ****
--- 2249,2255 ----
  	    update_topline();		/* scroll to show the line */
  	    update_screen(VALID);
  	    setcursor();
+ 	    cursor_on();
  	    out_flush();
  #ifdef FEAT_GUI
  	    if (gui.in_use)
***************
(Continue reading)

Bram Moolenaar | 1 Apr 2011 16:08
Picon

Patch 7.3.150


Patch 7.3.150
Problem:    readline() does not return the last line when the NL is missing.
	    (Hong Xu)
Solution:   When at the end of the file Also check for a previous line.
Files:	    src/eval.c

*** ../vim-7.3.149/src/eval.c	2011-03-27 16:03:09.000000000 +0200
--- src/eval.c	2011-04-01 16:06:04.000000000 +0200
***************
*** 14305,14313 ****
  	{
  	    if (buf[filtd] == '\n' || readlen <= 0)
  	    {
! 		/* Only when in binary mode add an empty list item when the
! 		 * last line ends in a '\n'. */
! 		if (!binary && readlen == 0 && filtd == 0)
  		    break;

  		/* Found end-of-line or end-of-file: add a text line to the
--- 14305,14313 ----
  	{
  	    if (buf[filtd] == '\n' || readlen <= 0)
  	    {
! 		/* In binary mode add an empty list item when the last
! 		 * non-empty line ends in a '\n'. */
! 		if (!binary && readlen == 0 && filtd == 0 && prev == NULL)
  		    break;

  		/* Found end-of-line or end-of-file: add a text line to the
(Continue reading)

Bram Moolenaar | 1 Apr 2011 16:28
Picon

Patch 7.3.151


Patch 7.3.151 (after 7.3.074)
Problem:    When "unnamedplus" is in 'clipboard' the selection is sometimes
	    also copied to the star register.
Solution:   Avoid copy to the star register when undesired. (James Vega)
Files:	    src/ops.c

*** ../vim-7.3.150/src/ops.c	2010-12-08 14:23:08.000000000 +0100
--- src/ops.c	2011-04-01 16:23:10.000000000 +0200
***************
*** 3148,3157 ****
  	    /* Copy the text from register 0 to the clipboard register. */
  	    copy_yank_reg(&(y_regs[PLUS_REGISTER]));

- 	/* No need to copy to * register upon 'unnamed' now - see below */
  	clip_own_selection(&clip_plus);
  	clip_gen_set_selection(&clip_plus);
! 	if (!clip_isautosel() && !did_star)
  	{
  	    copy_yank_reg(&(y_regs[STAR_REGISTER]));
  	    clip_own_selection(&clip_star);
--- 3148,3156 ----
  	    /* Copy the text from register 0 to the clipboard register. */
  	    copy_yank_reg(&(y_regs[PLUS_REGISTER]));

  	clip_own_selection(&clip_plus);
  	clip_gen_set_selection(&clip_plus);
! 	if (!clip_isautosel() && !did_star && curr == &(y_regs[PLUS_REGISTER]))
  	{
  	    copy_yank_reg(&(y_regs[STAR_REGISTER]));
(Continue reading)

Bram Moolenaar | 1 Apr 2011 19:15
Picon

Patch 7.3.152


Patch 7.3.152
Problem:    Xxd does not check for errors from library functions.
Solution:   Add error checks. (Florian Zumbiehl)
Files:	    src/xxd/xxd.c

*** ../vim-7.3.151/src/xxd/xxd.c	2010-08-15 21:57:25.000000000 +0200
--- src/xxd/xxd.c	2011-04-01 18:56:11.000000000 +0200
***************
*** 49,54 ****
--- 49,56 ----
   *	    option -b added: 01000101 binary output in normal format.
   * 16.05.00 Added VAXC changes by Stephen P. Wall
   * 16.05.00 Improved MMS file and merge for VMS by Zoltan Arpadffy
+  * 2011 March  Better error handling by Florian Zumbiehl.
+  * 2011 April  Formatting by Bram Moolenaar
   *
   * (c) 1990-1998 by Juergen Weigert (jnweiger <at> informatik.uni-erlangen.de)
   *
***************
*** 207,214 ****

  /* Let's collect some prototypes */
  /* CodeWarrior is really picky about missing prototypes */
! static void exit_with_usage __P((char *));
! static int huntype __P((FILE *, FILE *, FILE *, char *, int, int, long));
  static void xxdline __P((FILE *, char *, int));

  #define TRY_SEEK	/* attempt to use lseek, or skip forward by reading */
--- 209,216 ----
(Continue reading)


Gmane