4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Can't retrieve the position of a sign after it was set.
12 Solution: Add the netbeans interface getAnno command. (Xavier de Gaye)
13 Files: runtime/doc/netbeans.txt, src/netbeans.c
16 *** ../vim-7.0.162/runtime/doc/netbeans.txt Sun May 7 16:58:43 2006
17 --- runtime/doc/netbeans.txt Tue Nov 14 18:24:32 2006
20 ! *netbeans.txt* For Vim version 7.0. Last change: 2006 Mar 09
23 VIM REFERENCE MANUAL by Gordon Prieur
25 ! *netbeans.txt* For Vim version 7.0. Last change: 2006 Nov 14
28 VIM REFERENCE MANUAL by Gordon Prieur
31 confusion happening again, netbeans_saved() has been renamed to
32 netbeans_save_buffer().
34 ! We are now at version 2.3. For the differences between 2.2 and 2.3 search for
37 The messages are currently sent over a socket. Since the messages are in
38 plain UTF-8 text this protocol could also be used with any other communication
40 confusion happening again, netbeans_saved() has been renamed to
41 netbeans_save_buffer().
43 ! We are now at version 2.4. For the differences between 2.3 and 2.4 search for
46 The messages are currently sent over a socket. Since the messages are in
47 plain UTF-8 text this protocol could also be used with any other communication
51 TODO: explain use of partial line.
53 getMark Not implemented.
56 + Return the line number of the annotation in the buffer.
58 + serNum serial number of this placed annotation
60 + 123 lnum line number of the annotation
61 + 123 0 invalid annotation serial number
64 getModified When a buffer is specified: Return zero if the buffer does not
65 have changes, one if it does have changes.
66 *** ../vim-7.0.162/src/netbeans.c Tue Aug 29 17:28:56 2006
67 --- src/netbeans.c Tue Nov 14 18:23:48 2006
71 /* The first implementation (working only with Netbeans) returned "1.1". The
72 * protocol implemented here also supports A-A-P. */
73 ! static char *ExtEdProtocolVersion = "2.3";
75 static long pos2off __ARGS((buf_T *, pos_T *));
76 static pos_T *off2pos __ARGS((buf_T *, long));
79 /* The first implementation (working only with Netbeans) returned "1.1". The
80 * protocol implemented here also supports A-A-P. */
81 ! static char *ExtEdProtocolVersion = "2.4";
83 static long pos2off __ARGS((buf_T *, pos_T *));
84 static pos_T *off2pos __ARGS((buf_T *, long));
88 (int)curwin->w_cursor.col,
89 pos2off(curbuf, &curwin->w_cursor));
90 nb_reply_text(cmdno, text);
91 + /* =====================================================================*/
93 + else if (streq((char *)cmd, "getAnno"))
97 + if (buf == NULL || buf->bufp == NULL)
99 + nbdebug((" null bufp in getAnno"));
100 + EMSG("E652: null bufp in getAnno");
108 + serNum = strtol(cp, &cp, 10);
109 + /* If the sign isn't found linenum will be zero. */
110 + linenum = (long)buf_findsign(buf->bufp, serNum);
113 + nb_reply_nr(cmdno, linenum);
114 /* =====================================================================*/
116 else if (streq((char *)cmd, "getLength"))
117 *** ../vim-7.0.162/src/version.c Tue Nov 7 22:41:37 2006
118 --- src/version.c Tue Nov 14 18:25:31 2006
122 { /* Add new patch number below this line */
128 A computer without Windows is like a fish without a bicycle.
130 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
131 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
132 \\\ download, build and distribute -- http://www.A-A-P.org ///
133 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///