Re: Patch 7.2.031

2008-11-09 Fir de Conversatie Bram Moolenaar


Dominique Pelle wrote:

> 2008/11/9 Bram Moolenaar <[EMAIL PROTECTED]>:
> 
> > Patch 7.2.031
> > Problem:Information in the viminfo file about previously edited files is
> >not available to the user.  There is no way to get a complete 
> > list
> >of files edited in previous Vim sessions.
> 
> 
> Patch 7.2.031 breaks build when compiling with -DEXITFREE:
> 
> eval.c: In function 'eval_clear':
> eval.c:849: error: 'struct vimvar' has no member named 'vv_string'
> eval.c:850: error: 'struct vimvar' has no member named 'vv_string'
> 
> Attached patch fixes it.

Thanks.  But a better solution is to change vv_string to vv_str.

-- 
Don't be humble ... you're not that great.
  -- Golda Meir

 /// 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: Patch 7.2.031

2008-11-09 Fir de Conversatie Dominique Pelle
2008/11/9 Bram Moolenaar <[EMAIL PROTECTED]>:

> Patch 7.2.031
> Problem:Information in the viminfo file about previously edited files is
>not available to the user.  There is no way to get a complete list
>of files edited in previous Vim sessions.


Patch 7.2.031 breaks build when compiling with -DEXITFREE:

eval.c: In function 'eval_clear':
eval.c:849: error: 'struct vimvar' has no member named 'vv_string'
eval.c:850: error: 'struct vimvar' has no member named 'vv_string'

Attached patch fixes it.

Regards
-- Dominique

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

Index: eval.c
===
RCS file: /cvsroot/vim/vim7/src/eval.c,v
retrieving revision 1.268
diff -c -r1.268 eval.c
*** eval.c	9 Nov 2008 12:46:09 -	1.268
--- eval.c	9 Nov 2008 14:29:35 -
***
*** 846,853 
  	p = &vimvars[i];
  	if (p->vv_di.di_tv.v_type == VAR_STRING)
  	{
! 	vim_free(p->vv_string);
! 	p->vv_string = NULL;
  	}
  	else if (p->vv_di.di_tv.v_type == VAR_LIST)
  	{
--- 846,853 
  	p = &vimvars[i];
  	if (p->vv_di.di_tv.v_type == VAR_STRING)
  	{
! 	vim_free(p->vv_di.di_tv.vval.v_string);
! 	p->vv_di.di_tv.vval.v_string = NULL;
  	}
  	else if (p->vv_di.di_tv.v_type == VAR_LIST)
  	{


Patch 7.2.031

2008-11-09 Fir de Conversatie Bram Moolenaar


Patch 7.2.031
Problem:Information in the viminfo file about previously edited files is
not available to the user.  There is no way to get a complete list
of files edited in previous Vim sessions.
Solution:   Add v:oldfiles and fill it with the list of old file names when
first reading the viminfo file.  Add the ":oldfiles" command,
":browse oldfiles" and the "#<123" special file name.  Increase
the default value for 'viminfo' from '20 to '100.
Files:  runtime/doc/cmdline.txt, runtime/doc/eval.txt,
runtime/doc/starting.txt, runtime/doc/usr_21.txt, src/eval.c,
src/ex_cmds.c, src/ex_cmds.h, src/ex_docmd.c, src/feature.h,
src/fileio.c, src/main.c, src/mark.c, src/misc1.c,
src/proto/eval.pro, src/proto/ex_cmds.pro, src/proto/mark.pro,
src/option.c, src/structs.h, src/vim.h


*** ../vim-7.2.030/runtime/doc/cmdline.txt  Sat Aug  9 19:36:46 2008
--- runtime/doc/cmdline.txt Thu Sep 18 22:55:27 2008
***
*** 1,4 
! *cmdline.txt*   For Vim version 7.2.  Last change: 2008 Jul 29
  
  
  VIM REFERENCE MANUALby Bram Moolenaar
--- 1,4 
! *cmdline.txt*   For Vim version 7.2.  Last change: 2008 Sep 18
  
  
  VIM REFERENCE MANUALby Bram Moolenaar
***
*** 157,162 
--- 157,167 
(doesn't work at the expression prompt; some
things such as changing the buffer or current
window are not allowed to avoid side effects)
+   When the result is a |List| the items are used
+   as lines.  They can have line breaks inside
+   too.
+   When the result is a Float it's automatically
+   converted to a String.
See |registers| about registers.  {not in Vi}
Implementation detail: When using the |expression| register
and invoking setcmdpos(), this sets the position before
***
*** 730,748 
  In Ex commands, at places where a file name can be used, the following
  characters have a special meaning.  These can also be used in the expression
  function expand() |expand()|.
!   %   is replaced with the current file name  *:_%*
!   #   is replaced with the alternate file name*:_#*
#n  (where n is a number) is replaced with the file name of
!   buffer n.  "#0" is the same as "#"
!   ##  is replaced with all names in the argument list *:_##*
concatenated, separated by spaces.  Each space in a name
is preceded with a backslash.
! Note that these give the file name as it was typed.  If an absolute path is
! needed (when using the file name from a different directory), you need to add
! ":p".  See |filename-modifiers|.
  Note that backslashes are inserted before spaces, so that the command will
  correctly interpret the file name.  But this doesn't happen for shell
! commands.  For those you probably have to use quotes: >
:!ls "%"
:r !spell "%"
  
--- 735,763 
  In Ex commands, at places where a file name can be used, the following
  characters have a special meaning.  These can also be used in the expression
  function expand() |expand()|.
!   %   Is replaced with the current file name.   *:_%* *c_%*
!   #   Is replaced with the alternate file name. *:_#* *c_#*
#n  (where n is a number) is replaced with the file name of
!   buffer n.  "#0" is the same as "#".
!   ##  Is replaced with all names in the argument list   *:_##* *c_##*
concatenated, separated by spaces.  Each space in a name
is preceded with a backslash.
!   # 0) is replaced with old*:_#<* *c_#<*
!   file name n.  See |:oldfiles| or |v:oldfiles| to get the
!   number. *E809*
!   {only when compiled with the +eval and +viminfo features}
! 
! Note that these, except "#
:!ls "%"
:r !spell "%"
  
*** ../vim-7.2.030/runtime/doc/eval.txt Sat Aug  9 19:36:47 2008
--- runtime/doc/eval.txtSun Nov  2 14:25:38 2008
***
*** 1,4 
! *eval.txt*For Vim version 7.2.  Last change: 2008 Aug 09
  
  
  VIM REFERENCE MANUALby Bram Moolenaar
--- 1,4 
! *eval.txt*For Vim version 7.2.  Last change: 2008 Nov 02
  
  
  VIM REFERENCE MANUALby Bram Moolenaar
***
*** 1484,1