Ok, I could fix it.

diff -r d915c19ad092 src/gui.c
--- a/src/gui.c Fri May 18 21:54:13 2012 +0200
+++ b/src/gui.c Mon May 21 10:39:49 2012 +0900
@@ -102,6 +102,12 @@
     else
 #endif
     {
+       /*
+        * If there is 'f' in 'guioptions' and specify -g argument,
+        * gui_mch_init_check() isn't called yet.
+        */
+       if (gui_mch_init_check() != OK)
+           exit(1);
        gui_attempt_start();
     }


On Sunday, May 20, 2012 10:46:33 PM UTC+9, David wrote:
> > Bram Moolenaar <[email protected]> wrote:
> > 
> > > Davido wrote:
> > >
> > >> > Patch 7.3.520
> > >> > Problem:    Gvim starts up slow on Unbuntu 12.04.
> > >> > Solution:   Move the call to gui_mch_init_check() to after fork(). 
> > >> > (Yasuhiro
> > >> >         Matsumoto)  Do check $DISPLAY being set.
> > >> > Files:          src/gui.c, src/gui_gtk_x11.c, src/proto/gui_gtk_x11.pro
> > >>
> > >> Hello,
> > >>
> > >> I'm trying to upgrade from version 7.3.515 (which works perfectly)
> > >> to 7.3.524 on an ubuntu 12.04. Vim compiles, but crashes if I launch
> > >> gvim without the -f flag. The warning messages (see below) seem to be
> > >> related with this patch.
> > >>
> > >> Let's point out that the terminal variant and "./src/vim -gf" work
> > >> properly, as far as I've tested.
> > >
> > > That's weird, that patch was supposed to fix this kind of problem.
> > >
> > > Yasuhiro, any idea?
> > 
> > 
> > It works fine for me at least using Vim-7.3.524 (huge) on xubuntu-12.04.
> > 
> > -- Dominique
> 
> I'm using pekwm as window manager for more than a year, but I never
> encountered any problem with vim-gtk.
> 
> So, I've run some tests, found that my particular set of options (which
> didn't cause any trouble until version 7.3.519 included) is somehow
> interfering with this patch.
> 
> Fortunetly, I found which option is responsible of this issue : all
> works well if I remove the "f" flag from "guioptions". Don't ask me
> why, however.
> 
> Thanks for your kind replies.
> 
> -- 
> Regards,
> 
> Davido

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

Raspunde prin e-mail lui