|
Karsten Hopp |
f66e7a |
To: vim-dev@vim.org
|
|
Karsten Hopp |
f66e7a |
Subject: Patch 7.3.016
|
|
Karsten Hopp |
f66e7a |
Fcc: outbox
|
|
Karsten Hopp |
f66e7a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f66e7a |
Mime-Version: 1.0
|
|
Karsten Hopp |
f66e7a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f66e7a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f66e7a |
------------
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
Patch 7.3.016
|
|
Karsten Hopp |
f66e7a |
Problem: Netbeans doesn't work under Athena.
|
|
Karsten Hopp |
f66e7a |
Solution: Support Athena, just like Motif. (Xavier de Gaye)
|
|
Karsten Hopp |
f66e7a |
Files: runtime/doc/netbeans.txt, src/gui.c, src/main.c, src/netbeans.c
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
*** ../vim-7.3.015/runtime/doc/netbeans.txt 2010-08-15 21:57:13.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
--- runtime/doc/netbeans.txt 2010-09-29 17:13:43.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 1,4 ****
|
|
Karsten Hopp |
f66e7a |
! *netbeans.txt* For Vim version 7.3. Last change: 2010 Jul 20
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
|
Karsten Hopp |
f66e7a |
--- 1,4 ----
|
|
Karsten Hopp |
f66e7a |
! *netbeans.txt* For Vim version 7.3. Last change: 2010 Aug 20
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
VIM REFERENCE MANUAL by Gordon Prieur et al.
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 118,124 ****
|
|
Karsten Hopp |
f66e7a |
uncommenting a line with "--disable-netbeans" in the Makefile.
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
Currently the NetBeans interface is supported by Vim running in a terminal and
|
|
Karsten Hopp |
f66e7a |
! by GVim when it is run with one of the following GUIs: GTK, GNOME, and Motif.
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
If Motif support is required the user must supply XPM libraries. See
|
|
Karsten Hopp |
f66e7a |
|workshop-xpm| for details on obtaining the latest version of XPM.
|
|
Karsten Hopp |
f66e7a |
--- 118,125 ----
|
|
Karsten Hopp |
f66e7a |
uncommenting a line with "--disable-netbeans" in the Makefile.
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
Currently the NetBeans interface is supported by Vim running in a terminal and
|
|
Karsten Hopp |
f66e7a |
! by GVim when it is run with one of the following GUIs: GTK, GNOME, Windows,
|
|
Karsten Hopp |
f66e7a |
! Athena and Motif.
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
If Motif support is required the user must supply XPM libraries. See
|
|
Karsten Hopp |
f66e7a |
|workshop-xpm| for details on obtaining the latest version of XPM.
|
|
Karsten Hopp |
f66e7a |
*** ../vim-7.3.015/src/gui.c 2010-08-15 21:57:28.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
--- src/gui.c 2010-09-29 17:13:43.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 2352,2358 ****
|
|
Karsten Hopp |
f66e7a |
if (draw_sign)
|
|
Karsten Hopp |
f66e7a |
/* Draw the sign on top of the spaces. */
|
|
Karsten Hopp |
f66e7a |
gui_mch_drawsign(gui.row, col, gui.highlight_mask);
|
|
Karsten Hopp |
f66e7a |
! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_MOTIF) \
|
|
Karsten Hopp |
f66e7a |
|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
|
|
Karsten Hopp |
f66e7a |
if (multi_sign)
|
|
Karsten Hopp |
f66e7a |
netbeans_draw_multisign_indicator(gui.row);
|
|
Karsten Hopp |
f66e7a |
--- 2352,2358 ----
|
|
Karsten Hopp |
f66e7a |
if (draw_sign)
|
|
Karsten Hopp |
f66e7a |
/* Draw the sign on top of the spaces. */
|
|
Karsten Hopp |
f66e7a |
gui_mch_drawsign(gui.row, col, gui.highlight_mask);
|
|
Karsten Hopp |
f66e7a |
! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_X11) \
|
|
Karsten Hopp |
f66e7a |
|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
|
|
Karsten Hopp |
f66e7a |
if (multi_sign)
|
|
Karsten Hopp |
f66e7a |
netbeans_draw_multisign_indicator(gui.row);
|
|
Karsten Hopp |
f66e7a |
*** ../vim-7.3.015/src/main.c 2010-08-15 21:57:28.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
--- src/main.c 2010-09-29 17:13:43.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 940,946 ****
|
|
Karsten Hopp |
f66e7a |
if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
f66e7a |
! # if !defined(FEAT_GUI_MOTIF) && !defined(FEAT_GUI_GTK) \
|
|
Karsten Hopp |
f66e7a |
&& !defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
f66e7a |
if (gui.in_use)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
--- 940,946 ----
|
|
Karsten Hopp |
f66e7a |
if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
# ifdef FEAT_GUI
|
|
Karsten Hopp |
f66e7a |
! # if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \
|
|
Karsten Hopp |
f66e7a |
&& !defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
f66e7a |
if (gui.in_use)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
*** ../vim-7.3.015/src/netbeans.c 2010-08-15 21:57:26.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
--- src/netbeans.c 2010-09-29 17:13:43.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 87,93 ****
|
|
Karsten Hopp |
f66e7a |
static void nb_init_graphics __ARGS((void));
|
|
Karsten Hopp |
f66e7a |
static void coloncmd __ARGS((char *cmd, ...));
|
|
Karsten Hopp |
f66e7a |
static void nb_set_curbuf __ARGS((buf_T *buf));
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_MOTIF
|
|
Karsten Hopp |
f66e7a |
static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
|
|
Karsten Hopp |
f66e7a |
#endif
|
|
Karsten Hopp |
f66e7a |
#ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
f66e7a |
--- 87,93 ----
|
|
Karsten Hopp |
f66e7a |
static void nb_init_graphics __ARGS((void));
|
|
Karsten Hopp |
f66e7a |
static void coloncmd __ARGS((char *cmd, ...));
|
|
Karsten Hopp |
f66e7a |
static void nb_set_curbuf __ARGS((buf_T *buf));
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_X11
|
|
Karsten Hopp |
f66e7a |
static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
|
|
Karsten Hopp |
f66e7a |
#endif
|
|
Karsten Hopp |
f66e7a |
#ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 112,118 ****
|
|
Karsten Hopp |
f66e7a |
static NBSOCK nbsock = -1; /* socket fd for Netbeans connection */
|
|
Karsten Hopp |
f66e7a |
#define NETBEANS_OPEN (nbsock != -1)
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_MOTIF
|
|
Karsten Hopp |
f66e7a |
static XtInputId inputHandler = (XtInputId)NULL; /* Cookie for input */
|
|
Karsten Hopp |
f66e7a |
#endif
|
|
Karsten Hopp |
f66e7a |
#ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
f66e7a |
--- 112,118 ----
|
|
Karsten Hopp |
f66e7a |
static NBSOCK nbsock = -1; /* socket fd for Netbeans connection */
|
|
Karsten Hopp |
f66e7a |
#define NETBEANS_OPEN (nbsock != -1)
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_X11
|
|
Karsten Hopp |
f66e7a |
static XtInputId inputHandler = (XtInputId)NULL; /* Cookie for input */
|
|
Karsten Hopp |
f66e7a |
#endif
|
|
Karsten Hopp |
f66e7a |
#ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 143,149 ****
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
netbeans_send_disconnect();
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_MOTIF
|
|
Karsten Hopp |
f66e7a |
if (inputHandler != (XtInputId)NULL)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
XtRemoveInput(inputHandler);
|
|
Karsten Hopp |
f66e7a |
--- 143,149 ----
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
netbeans_send_disconnect();
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_X11
|
|
Karsten Hopp |
f66e7a |
if (inputHandler != (XtInputId)NULL)
|
|
Karsten Hopp |
f66e7a |
{
|
|
Karsten Hopp |
f66e7a |
XtRemoveInput(inputHandler);
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 700,706 ****
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* Read a command from netbeans.
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_MOTIF
|
|
Karsten Hopp |
f66e7a |
static void
|
|
Karsten Hopp |
f66e7a |
messageFromNetbeans(XtPointer clientData UNUSED,
|
|
Karsten Hopp |
f66e7a |
int *unused1 UNUSED,
|
|
Karsten Hopp |
f66e7a |
--- 700,706 ----
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* Read a command from netbeans.
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
! #ifdef FEAT_GUI_X11
|
|
Karsten Hopp |
f66e7a |
static void
|
|
Karsten Hopp |
f66e7a |
messageFromNetbeans(XtPointer clientData UNUSED,
|
|
Karsten Hopp |
f66e7a |
int *unused1 UNUSED,
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 2937,2943 ****
|
|
Karsten Hopp |
f66e7a |
if (!NB_HAS_GUI || !NETBEANS_OPEN)
|
|
Karsten Hopp |
f66e7a |
return;
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! # ifdef FEAT_GUI_MOTIF
|
|
Karsten Hopp |
f66e7a |
/* tell notifier we are interested in being called
|
|
Karsten Hopp |
f66e7a |
* when there is input on the editor connection socket
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
--- 2937,2943 ----
|
|
Karsten Hopp |
f66e7a |
if (!NB_HAS_GUI || !NETBEANS_OPEN)
|
|
Karsten Hopp |
f66e7a |
return;
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! # ifdef FEAT_GUI_X11
|
|
Karsten Hopp |
f66e7a |
/* tell notifier we are interested in being called
|
|
Karsten Hopp |
f66e7a |
* when there is input on the editor connection socket
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 3027,3033 ****
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_W32) || defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* Tell netbeans that the window was moved or resized.
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
--- 3027,3033 ----
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_W32) || defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* Tell netbeans that the window was moved or resized.
|
|
Karsten Hopp |
f66e7a |
*/
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 3458,3464 ****
|
|
Karsten Hopp |
f66e7a |
return FALSE;
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #if defined(FEAT_GUI_MOTIF) || defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* We have multiple signs to draw at the same location. Draw the
|
|
Karsten Hopp |
f66e7a |
* multi-sign indicator instead. This is the Motif version.
|
|
Karsten Hopp |
f66e7a |
--- 3458,3464 ----
|
|
Karsten Hopp |
f66e7a |
return FALSE;
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
! #if defined(FEAT_GUI_X11) || defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
* We have multiple signs to draw at the same location. Draw the
|
|
Karsten Hopp |
f66e7a |
* multi-sign indicator instead. This is the Motif version.
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 3487,3493 ****
|
|
Karsten Hopp |
f66e7a |
XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
|
|
Karsten Hopp |
f66e7a |
XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
! #endif /* FEAT_GUI_MOTIF */
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
#if defined(FEAT_GUI_GTK) && !defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
--- 3487,3493 ----
|
|
Karsten Hopp |
f66e7a |
XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
|
|
Karsten Hopp |
f66e7a |
XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
|
|
Karsten Hopp |
f66e7a |
}
|
|
Karsten Hopp |
f66e7a |
! #endif /* FEAT_GUI_X11 */
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
#if defined(FEAT_GUI_GTK) && !defined(PROTO)
|
|
Karsten Hopp |
f66e7a |
/*
|
|
Karsten Hopp |
f66e7a |
*** ../vim-7.3.015/src/version.c 2010-09-29 16:55:45.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
--- src/version.c 2010-09-29 17:14:47.000000000 +0200
|
|
Karsten Hopp |
f66e7a |
***************
|
|
Karsten Hopp |
f66e7a |
*** 716,717 ****
|
|
Karsten Hopp |
f66e7a |
--- 716,719 ----
|
|
Karsten Hopp |
f66e7a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f66e7a |
+ /**/
|
|
Karsten Hopp |
f66e7a |
+ 16,
|
|
Karsten Hopp |
f66e7a |
/**/
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
--
|
|
Karsten Hopp |
f66e7a |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
f66e7a |
229. You spend so much time thinking what to add on this list.
|
|
Karsten Hopp |
f66e7a |
|
|
Karsten Hopp |
f66e7a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f66e7a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f66e7a |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
f66e7a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|