Re: Vim + MzScheme on Ubuntu

2007-02-11 Thread George V. Reilly

[Moving this to vim-dev]

Taylor Venable wrote:

On Wed, 07 Feb 2007 00:08:29 -0800
George V. Reilly [EMAIL PROTECTED] wrote:

  
I tried to build Vim with MzScheme support on Ubuntu a few months ago 
and couldn't figure out what I needed to do to get MzScheme included

in Vim. I got everything all the other supported languages working.

Can you summarize what you did?



This took a little playing around with, because the configure script
thinks that you've got all your PLT stuff installed in the same place,
which on Ubuntu isn't the case.  The MzScheme packages on Ubuntu
install some stuff into /usr/lib/plt and the include files
into /usr/include/plt. Configure needs to know about both of these
paths, but only allows you to specify one, using --with-plthome, which
you should set to /usr/lib/plt.  Then inside this directory create a
symlink called include which points to /usr/include/plt.  You
shouldn't need any packages other than mzscheme (at least, I didn't need
any that weren't already installed).

It was kind of a tricky process in total, so I chronicled my adventures
in compiling Vim for Xubuntu on my website.  I used Aap to fetch the
source, but the standard make procedure to install it.  Here's the URL:

http://www.metasyntax.net/?section=unixpage=vim#xubuntu

Please let me know if you notice that I've missed anything important.

  


Thanks, Taylor. The net change for me on Kubuntu was
 sudo ln -s /usr/include/plt/ /usr/lib/plt/include
and adding
 export CONF_OPT_PLTHOME='--with-plthome=/usr/lib/plt'
to my copy of Tony's myenviro shell script.

Tony, Taylor's instructions should work on any *buntu variant.

Bram, 'make install' fails because there are no *.vim files in 
runtime/spell.

I'm using the latest stuff out of Subversion *except* for the runtime files,
which are fetched with Tony's rsync invocation:
 rsync -avzcP --delete --exclude=/dos/ ftp.nluug.nl::Vim/runtime/ 
./runtime/

I hacked around this by 'cp /dev/null runtime/spell/zzz.vim'

Remind me again why the runtime files are so badly out of date in 
Subversion.

Kdiff3 says that there are over 600 file-level differences between the
svn runtime and the nluug runtime.

--
/George V. Reilly  [EMAIL PROTECTED]
http://www.georgevreilly.com/blog
The biggest mistake is not learning from all your other mistakes.



Re: Vim + MzScheme on Ubuntu

2007-02-11 Thread Bram Moolenaar

George V. Reilly wrote:

 Bram, 'make install' fails because there are no *.vim files in 
 runtime/spell.
 I'm using the latest stuff out of Subversion *except* for the runtime files,
 which are fetched with Tony's rsync invocation:
   rsync -avzcP --delete --exclude=/dos/ ftp.nluug.nl::Vim/runtime/ 
 ./runtime/
 I hacked around this by 'cp /dev/null runtime/spell/zzz.vim'
 
 Remind me again why the runtime files are so badly out of date in 
 Subversion.
 Kdiff3 says that there are over 600 file-level differences between the
 svn runtime and the nluug runtime.

The Subversion repository contains Vim 7.0 plus all the patches.  For
the runtime files I don't make patches, they would be huge.  There is an
exception for important things or changes related to source code
changes, these are included in patches.  This may cause a few conflicts,
these can be ignored.

The runtime files can be obtained from the ftp site.  However, the spell
files are in a different directory.  It's a separate place, beccause the
files are huge and you probably only want to get the few you need.  They
are not updated often anyway.

I think the best method is to obtain all the files from subversion and
then get the latest runtime files with rsync.  Get spell files manually
(this can be done automatically if you use a language for the first
time).

-- 
hundred-and-one symptoms of being an internet addict:
103. When you find yourself in the Computer section of Barnes  Noble
 enjoying yourself.

 /// 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///


Fwd: mac gui tabline v5

2007-02-11 Thread Nicolas Weber

Hi,

vim-mac stripped the attachment again. I hope it comes through on  
this list.


Anfang der weitergeleiteten E-Mail:


Von: Nicolas Weber [EMAIL PROTECTED]
Datum: 11. Februar 2007 21:13:53 MEZ
An: vim mac [EMAIL PROTECTED]
Betreff: mac gui tabline v5

Hi everyone,

Michael Wookey suggested that the size of the gui tabline drawer  
should be changable. I agree and added this to the patch. It's the  
only change (except that this patch is for the current svn  
version). With this patch you can drag the edge of the drawer to  
change its size.


If you make the drawer to small, it'll disappear (like in all apps  
where you can resize the drawer). To bring it back, open a tab (or  
close a tab) or call :set showtabline=1 or :set showtabline=2. If  
you want it hidden, call :set showtabline=0, just as before.


Apply in vim's root directory.

If you like this patch and want it included in Vim, then speak up!  
Tell Bram (preferably via this list) that you like this patch and  
that it works for you. Likewise, if you don't like it, speak up as  
well :-P


Bye,
Nico




macguitab.v5.patch.1
Description: Binary data




Re: bug: commandline not visible after :tabedit in maximized window

2007-02-11 Thread Václav Šmilauer
[Bram, sorry for sending to your personal address by accident for the first 
time]

 What system?  If Unix: what GUI?

Sorry for not mentioning that. I am running the gnome GUI on Linux. I 
double-checked on a different machine to exclude the influence of the 
breakindent patch that is also applied. It seems that it works differently 
with Metacity WM than with the Xfce window manager (running the same program 
locally is different from running it remotely); also, the machine with 
Metacity is xinerama-doublehead, which may make some bugs in the WM code 
show up. I will install a clean version here and try to determine if it is 
really a vim bug.


Regards, Vaclav



Win64-related patches

2007-02-11 Thread George V. Reilly

* Win64 changes to make code compile cleanly: eval.c, misc2.c, if_ole.*
* Fixed install.exe bug
* Fixed annoying warning from Explorer about gvimext.dll
* Fixed gvim.exe.mnf to be cross-platform. No longer needs to be generated
 from Make_mvc.mak
* Re-fixed spell.c so that it works with VC6. Unit tests go into an infinite
 loop otherwise.
* Updated INSTALLpc.txt to reflect that Visual C++ 2005 Express Edition is
 now free forever, recommending it over the VC 2003 Toolkit.
* Cleaned up Make_mvc.mak, incorporating (and fixing) recent patches from
 Alexei Alexandrov and Mike Williams
* Added mkdist.bat to copy all of the installable files to vim70 directory,
 where they are zipped up, for later installation on Win64 or Win32.
* Made a futile attempt to get gvim.nsi building. Just building.
 Never mind running on Win64.
* Fixed a bug in test60: test60.ok must have Unix line endings


I have tested this code with the VS 98 (VC6), VS .NET 2003 (VC 7.1),
VS 2003 Toolkit (VC 7.1), Visual Studio 2005 (VC8), Visual Studio 2005
Express Edition (VC 8), and the VS 2005 x64 cross-compiler.

I'll re-test the Win64 binaries on a borrowed AMD64 machine at work 
tomorrow.

As of yesterday, I was able to use install.exe to successfully install
gvim and register gvimext.dll, giving the Edit with Vim entry in
the Explorer context menu. Once everything is retested, I'll make fresh
Win64 binaries available.

One bug that I didn't fix. Build gvim.exe with OLE=no, run 'gvim -register',
and watch it crash while trying to display an error message.

--
/George V. Reilly  [EMAIL PROTECTED]
http://www.georgevreilly.com/blog
The biggest mistake is not learning from all your other mistakes.

Index: src/dosinst.c
===
--- src/dosinst.c	(revision 209)
+++ src/dosinst.c	(working copy)
@@ -1365,7 +1365,7 @@
 
 	printf(Creating \Edit with Vim\ popup menu entry\n);
 
-	fprintf(fd, HKEY_CLASSES_ROOT\\CLSID\\%s\n, vim_ext_clsid);
+	fprintf(fd, [HKEY_CLASSES_ROOT\\CLSID\\%s]\n, vim_ext_clsid);
 	fprintf(fd, @=\%s\\n, vim_ext_name);
 	fprintf(fd, [HKEY_CLASSES_ROOT\\CLSID\\%s\\InProcServer32]\n,
 			   vim_ext_clsid);
Index: src/eval.c
===
--- src/eval.c	(revision 209)
+++ src/eval.c	(working copy)
@@ -991,13 +991,13 @@
 char_u	*value;
 int		value_len;
 {
-size_t	len;
+int	len;
 
 if (redir_lval == NULL)
 	return;
 
 if (value_len == -1)
-	len = STRLEN(value);	/* Append the entire string */
+	len = (int)STRLEN(value);	/* Append the entire string */
 else
 	len = value_len;	/* Append only value_len characters */
 
Index: src/gvim.exe.mnf
===
--- src/gvim.exe.mnf	(revision 209)
+++ src/gvim.exe.mnf	(working copy)
@@ -1,8 +1,8 @@
 ?xml version=1.0 encoding=UTF-8 standalone=yes?
 assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
   assemblyIdentity
-processorArchitecture=X86
-version=6.2.0.0
+processorArchitecture=*
+version=7.0.0.0
 type=win32
 name=Vim
   /
@@ -15,7 +15,7 @@
 version=6.0.0.0
 publicKeyToken=6595b64144ccf1df
 language=*
-processorArchitecture=X86
+processorArchitecture=*
   /
 /dependentAssembly
   /dependency
Index: src/GvimExt/Makefile
===
--- src/GvimExt/Makefile	(revision 209)
+++ src/GvimExt/Makefile	(working copy)
@@ -23,7 +23,7 @@
 gvimext.obj: gvimext.h
 
 .cpp.obj:
-$(cc) $(cflags) -DFEAT_GETTEXT $(cvarsdll) $*.cpp
+$(cc) $(cflags) -DFEAT_GETTEXT $(cvarsmt) $*.cpp
 
 gvimext.res: gvimext.rc
 $(rc) $(rcflags) $(rcvars)  gvimext.rc
Index: src/if_ole.cpp
===
--- src/if_ole.cpp	(revision 209)
+++ src/if_ole.cpp	(working copy)
@@ -107,7 +107,7 @@
 STDMETHOD(SendKeys)(BSTR keys);
 STDMETHOD(Eval)(BSTR expr, BSTR *result);
 STDMETHOD(SetForeground)(void);
-STDMETHOD(GetHwnd)(UINT *result);
+STDMETHOD(GetHwnd)(UINT_PTR *result);
 
 private:
 // Constructor is private - create using CVim::Create()
@@ -288,9 +288,9 @@
 }
 
 STDMETHODIMP
-CVim::GetHwnd(UINT *result)
+CVim::GetHwnd(UINT_PTR *result)
 {
-*result = (UINT) s_hwnd;
+*result = (UINT_PTR) s_hwnd;
 return S_OK;
 }
 
Index: src/if_ole.h
===
--- src/if_ole.h	(revision 209)
+++ src/if_ole.h	(working copy)
@@ -79,7 +79,7 @@
 	virtual HRESULT STDMETHODCALLTYPE SetForeground( void) = 0;
 
 	virtual HRESULT STDMETHODCALLTYPE GetHwnd(
-	/* [retval][out] */ UINT __RPC_FAR *result) = 0;
+	/* [retval][out] */ UINT_PTR __RPC_FAR *result) = 0;
 
 };
 
@@ -143,7 +143,7 @@
 
 	HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetHwnd )(
 	IVim __RPC_FAR * This,
-	/* [retval][out] */ UINT __RPC_FAR *result);
+