Xavier de Gaye wrote:

> >> On Sat, Nov 8, 2008 at 6:12 PM, Xavier de Gaye wrote:
> >> > ...
> >> >>> BTW do you think an implementation of netbeans over Vim console is
> >> >>> acceptable as a Vim patch (as opposed to an external patch such as
> >> >>> those in http://groups.google.com/group/vim_dev/web/vim-patches).
> >> >>
> >> >> If you can make the netbeans interface work for a Vim running in a
> >> >> console, that sounds like a useful feature.  I would include it if it
> >> >> works properly.  However, some programs using the netbeans interface
> >> >> assume GUI features, such as menus.  Thus it's probably only useful
> >> >> for some applications.
> >> >
> >> > I will give it a try.
> >>
> >>
> >> Attached is a patch that allows Vim to support NetBeans when run in a
> >> terminal. The patch is based on Vim 7.2.160, subversion revision 1440.
> >>
> >> Problem:    Support the NetBeans interface when Vim is run in a
> >>             terminal on Unix.
> >> Solution:   Hook the NetBeans file descriptor to the event loop.
> >>             Add a backward compatible enhancement: the defineAnnoType
> >>             "fg" and "bg" color arguments may also be defined as color
> >>             names.
> >> Files:      runtime/doc/netbeans.txt src/netbeans.c src/ex_cmds.c
> >>             src/proto/netbeans.pro src/gui.c src/getchar.c
> >>             src/gui_w48.c src/feature.h src/main.c src/proto.h
> >>             src/gui_gtk_x11.c src/os_unix.c
> >>
> >> List of the tests that have been run (the pyclewn testsuite is about
> >> 50 tests):
> >>     Check that a NetBeans session started in a terminal can be
> >>     continued after the ":gui" command is run.
> >>     Run pyclewn testsuite with GVim compiled with the GTK gui.
> >>     Run pyclewn testsuite with Vim in a terminal, compiled with the
> >>     GTK gui.
> >>     Run pyclewn testsuite with Vim compiled without any gui.
> >>
> >> Issue not fixed (not worth fixing ?):
> >>     When Vim NetBeans runs in a terminal and the ':gui' command is run
> >>     and if the GUI is not one of GTK, GNOME, Motif or Win32, then
> >>     NetBeans silently stops working.
> >
> > Thanks, sounds good.  I'll have a better look later.  I would appreciate
> > feedback from others.
> 
> 
> Hi Bram,
> 
> I have setup a Mercurial Queues patch at
> http://pyclewn.sourceforge.net/vim-patches.html
> It will be easier to test this patch and pyclewn 1.1 can now run with
> Vim in a console.
> 
> The major change from the patch I sent last April, is that netbeans
> version has been increased to "2.5".
> 
> Using Mercurial Queues for Vim patches, brings the following advantages:
> 
>     * the patch can be kept in sync with Vim development source tree
>     * it is easy to test the patch with Vim development source tree
>     * at any time, one can remove the patch with 'hg qpop'
> 
> I will keep this patch in sync with Vim development source tree.

I'll move this up in the todo list.

-- 
>From "know your smileys":
 :-)-O  Smiling doctor with stethoscope

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

Raspunde prin e-mail lui