Problem with SelectBuf and VIM7

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with SelectBuf and VIM7

Dave Roberts
Hello,

I've been having occasional problems with SelectBuf lately (which was
from 2002 I think) using VIM7 so I updated to:
SelectBuf:  3.5.0
MultVals:  3.10.0
GenUtils: 1.18.3

And now it doesn't work at all under VIM7 (pulled sources from CVS a
couple days ago and compiled - Don't know which version because they all
say 7.0aa ALPHA)

It works fine under 6.3.74 but under the 'latest' VIM7 if I do (from the
plugin directory):

gvim -u NONE -U NONE
so multvals.vim
so genutils.vim
so selectbuf.vim
:SelectBuf<CR>

I get:

Error detected while processing function
<SNR>4_ListBufs..<SNR>4_GoToBrowserWindow..SaveWindowSettings2:
line    5:
E461: Illegal variable name: winSettings<SNR>4_


Anyone else using SelectBuf under VIM7?

VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 19, compiled Jun 20 2005 09:11:17)
MS-Windows 32 bit GUI version
Compiled by Dave@DAVE-HOME
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 +dialog_con_gui +diff +digraphs -dnd -ebcdic +emacs_tags
+eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +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 +multi_lang -mzscheme
+netbeans_intg -ole -osfiletype +path_extra -perl -postscript +printer
-profile
 -python +quickfix +rightleft -ruby +scrollbind +signs +smartindent -sniff
+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
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
  system gvimrc file: "$VIM\gvimrc"
    user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$VIM\_gvimrc"
    system menu file: "$VIMRUNTIME\menu.vim"
Compilation: cl -c /W3 /nologo  -ML -I. -Iproto -DHAVE_PATHDEF -DWIN32  
-DFEAT_CSCOPE -DFEAT_NETBEANS_INTG      -DWINVER=0x0400
-D_WIN32_WINNT=0x0400 /Ox -DNDEBUG  -DFEAT_GUI_W32 -DDYNAMIC_ICONV
-DDYNAMIC_GETTEXT -DFEAT_BIG /Zi
Linking: link /RELEASE /nologo /subsystem:windows /incremental:no
/nodefaultlib:libc advapi32.lib shell32.lib gdi32.lib comdlg32.lib
ole32.lib uuid.lib oldnames.lib kernel32.lib gdi32.lib   winspool.lib
comctl32.lib advapi32.lib shell32.lib  /machine:i386 /nodefaultlib
libc.lib   user32.lib         WSock32.lib  /PDB:.\ObjG/gvim.pdb
-debug:full -debugtype:cv,fixup

Thanks,

- Dave

Reply | Threaded
Open this post in threaded view
|

Re: Problem with SelectBuf and VIM7

Hari Krishna Dara

On Tue, 21 Jun 2005 at 2:47pm, Dave Roberts wrote:

> Hello,
>
> I've been having occasional problems with SelectBuf lately (which was
> from 2002 I think) using VIM7 so I updated to:
> SelectBuf:  3.5.0
> MultVals:  3.10.0
> GenUtils: 1.18.3
>
> And now it doesn't work at all under VIM7 (pulled sources from CVS a
> couple days ago and compiled - Don't know which version because they all
> say 7.0aa ALPHA)
>
> It works fine under 6.3.74 but under the 'latest' VIM7 if I do (from the
> plugin directory):
>
> gvim -u NONE -U NONE
> so multvals.vim
> so genutils.vim
> so selectbuf.vim
> :SelectBuf<CR>
>
> I get:
>
> Error detected while processing function
> <SNR>4_ListBufs..<SNR>4_GoToBrowserWindow..SaveWindowSettings2:
> line    5:
> E461: Illegal variable name: winSettings<SNR>4_
>
>
> Anyone else using SelectBuf under VIM7?
>
> VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 19, compiled Jun 20 2005 09:11:17)
> MS-Windows 32 bit GUI version
> Compiled by Dave@DAVE-HOME
> 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 +dialog_con_gui +diff +digraphs -dnd -ebcdic +emacs_tags
> +eval
> +ex_extra +extra_search +farsi +file_in_path +find_in_path +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 +multi_lang -mzscheme
> +netbeans_intg -ole -osfiletype +path_extra -perl -postscript +printer
> -profile
>  -python +quickfix +rightleft -ruby +scrollbind +signs +smartindent -sniff
> +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
>    system vimrc file: "$VIM\vimrc"
>      user vimrc file: "$HOME\_vimrc"
>  2nd user vimrc file: "$VIM\_vimrc"
>       user exrc file: "$HOME\_exrc"
>   2nd user exrc file: "$VIM\_exrc"
>   system gvimrc file: "$VIM\gvimrc"
>     user gvimrc file: "$HOME\_gvimrc"
> 2nd user gvimrc file: "$VIM\_gvimrc"
>     system menu file: "$VIMRUNTIME\menu.vim"
> Compilation: cl -c /W3 /nologo  -ML -I. -Iproto -DHAVE_PATHDEF -DWIN32
> -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG      -DWINVER=0x0400
> -D_WIN32_WINNT=0x0400 /Ox -DNDEBUG  -DFEAT_GUI_W32 -DDYNAMIC_ICONV
> -DDYNAMIC_GETTEXT -DFEAT_BIG /Zi
> Linking: link /RELEASE /nologo /subsystem:windows /incremental:no
> /nodefaultlib:libc advapi32.lib shell32.lib gdi32.lib comdlg32.lib
> ole32.lib uuid.lib oldnames.lib kernel32.lib gdi32.lib   winspool.lib
> comctl32.lib advapi32.lib shell32.lib  /machine:i386 /nodefaultlib
> libc.lib   user32.lib         WSock32.lib  /PDB:.\ObjG/gvim.pdb
> -debug:full -debugtype:cv,fixup
>
> Thanks,
>
> - Dave
>
>
>

I am not using Vim7 yet, so I didn't see this problem. Looks like the
issue is with Vim7 being more stringent on what the characters can be in
an array variable. As a quick fix, you can search for calls to
SaveWindowSettings2, RestoreWindowSettings2 and ResetWindowSettings2
functions, and change the argument from s:myScriptId to 'SelectBuf',
something like this (ignore the line numbers as the diff is not taken
against the release):

@@ -1005,7 +1056,7 @@
   "   the window settings.
   if ! didQuit && s:browserMode ==# "split"
     call RemoveNotifyWindowClose(s:windowName)
-    call ResetWindowSettings2(s:myScriptId)
+    call ResetWindowSettings2('SelectBuf')
   endif

   let v:errmsg = ""
@@ -1422,18 +1473,18 @@
 function! s:RestoreWindows(dummyTitle) " {{{
   " If user wants us to restore window sizes during the exit.
   if s:restoreWindowSizes && s:browserMode !=# "keep"
-    call RestoreWindowSettings2(s:myScriptId)
+    call RestoreWindowSettings2('SelectBuf')
   endif
 endfunction " }}}
@@ -1597,7 +1648,7 @@
       " But don't save unless "split" mode, as otherwise we are not creating a
       "   new window.
       if s:restoreWindowSizes && s:browserMode ==# "split"
- call SaveWindowSettings2(s:myScriptId, 1)
+ call SaveWindowSettings2('SelectBuf', 1)
       endif

       " Don't split window for "switch" mode.

Let me know if you face more issues. I can download vim7 and try it out.

--
HTH,
Hari


               
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
Reply | Threaded
Open this post in threaded view
|

Re: Problem with SelectBuf and VIM7

Dave Roberts
Hari Krishna Dara wrote:

>On Tue, 21 Jun 2005 at 2:47pm, Dave Roberts wrote:
>
>  
>
>>Hello,
>>
>>I've been having occasional problems with SelectBuf lately (which was
>>from 2002 I think) using VIM7 so I updated to:
>>SelectBuf:  3.5.0
>>MultVals:  3.10.0
>>GenUtils: 1.18.3
>>
>>And now it doesn't work at all under VIM7 (pulled sources from CVS a
>>couple days ago and compiled - Don't know which version because they all
>>say 7.0aa ALPHA)
>>
>>It works fine under 6.3.74 but under the 'latest' VIM7 if I do (from the
>>plugin directory):
>>
>>gvim -u NONE -U NONE
>>so multvals.vim
>>so genutils.vim
>>so selectbuf.vim
>>:SelectBuf<CR>
>>
>>I get:
>>
>>Error detected while processing function
>><SNR>4_ListBufs..<SNR>4_GoToBrowserWindow..SaveWindowSettings2:
>>line    5:
>>E461: Illegal variable name: winSettings<SNR>4_
>>
>>
>>Anyone else using SelectBuf under VIM7?
>>
>>
>>
>>Thanks,
>>
>>- Dave
>>
>>
>>
>>    
>>
>
>I am not using Vim7 yet, so I didn't see this problem. Looks like the
>issue is with Vim7 being more stringent on what the characters can be in
>an array variable. As a quick fix, you can search for calls to
>SaveWindowSettings2, RestoreWindowSettings2 and ResetWindowSettings2
>functions, and change the argument from s:myScriptId to 'SelectBuf',
>something like this (ignore the line numbers as the diff is not taken
>against the release):
>
>@@ -1005,7 +1056,7 @@
>   "   the window settings.
>   if ! didQuit && s:browserMode ==# "split"
>     call RemoveNotifyWindowClose(s:windowName)
>-    call ResetWindowSettings2(s:myScriptId)
>+    call ResetWindowSettings2('SelectBuf')
>   endif
>
>   let v:errmsg = ""
>@@ -1422,18 +1473,18 @@
> function! s:RestoreWindows(dummyTitle) " {{{
>   " If user wants us to restore window sizes during the exit.
>   if s:restoreWindowSizes && s:browserMode !=# "keep"
>-    call RestoreWindowSettings2(s:myScriptId)
>+    call RestoreWindowSettings2('SelectBuf')
>   endif
> endfunction " }}}
>@@ -1597,7 +1648,7 @@
>       " But don't save unless "split" mode, as otherwise we are not creating a
>       "   new window.
>       if s:restoreWindowSizes && s:browserMode ==# "split"
>- call SaveWindowSettings2(s:myScriptId, 1)
>+ call SaveWindowSettings2('SelectBuf', 1)
>       endif
>
>       " Don't split window for "switch" mode.
>
>Let me know if you face more issues. I can download vim7 and try it out.
>
>  
>

That seems to have done the trick.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Problem with SelectBuf and VIM7

Hari Krishna Dara
In reply to this post by Dave Roberts

On Wed, 22 Jun 2005 at 5:07pm, Don Stefani wrote:

> Hello,
> Are you able to send mail to the list?
> I keep getting bounced back.
>
> Thank you,
>
> - dstefani
>

Thanks for pointing it out. Seems like I am not getting much of Vim
email now a days from list, and I was just starting to wonder why it has
been so silent. May be I got automatically unsubscribed, so I just sent
a subscription request again.

--
Thanks,
Hari


               
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com