]> git.pld-linux.org Git - packages/vim.git/blame - 7.0.163
- missing patch
[packages/vim.git] / 7.0.163
CommitLineData
c84df032
ER
1To: vim-dev@vim.org
2Subject: Patch 7.0.163
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.0.163
11Problem: Can't retrieve the position of a sign after it was set.
12Solution: Add the netbeans interface getAnno command. (Xavier de Gaye)
13Files: runtime/doc/netbeans.txt, src/netbeans.c
14
15
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
18***************
19*** 1,4 ****
20! *netbeans.txt* For Vim version 7.0. Last change: 2006 Mar 09
21
22
23 VIM REFERENCE MANUAL by Gordon Prieur
24--- 1,4 ----
25! *netbeans.txt* For Vim version 7.0. Last change: 2006 Nov 14
26
27
28 VIM REFERENCE MANUAL by Gordon Prieur
29***************
30*** 259,266 ****
31 confusion happening again, netbeans_saved() has been renamed to
32 netbeans_save_buffer().
33
34! We are now at version 2.3. For the differences between 2.2 and 2.3 search for
35! "2.3" below.
36
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
39--- 259,266 ----
40 confusion happening again, netbeans_saved() has been renamed to
41 netbeans_save_buffer().
42
43! We are now at version 2.4. For the differences between 2.3 and 2.4 search for
44! "2.4" below.
45
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
48***************
49*** 604,609 ****
50--- 604,618 ----
51 TODO: explain use of partial line.
52
53 getMark Not implemented.
54+
55+ getAnno serNum
56+ Return the line number of the annotation in the buffer.
57+ Argument:
58+ serNum serial number of this placed annotation
59+ The reply is:
60+ 123 lnum line number of the annotation
61+ 123 0 invalid annotation serial number
62+ New in version 2.4.
63
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
68***************
69*** 61,67 ****
70
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";
74
75 static long pos2off __ARGS((buf_T *, pos_T *));
76 static pos_T *off2pos __ARGS((buf_T *, long));
77--- 61,67 ----
78
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";
82
83 static long pos2off __ARGS((buf_T *, pos_T *));
84 static pos_T *off2pos __ARGS((buf_T *, long));
85***************
86*** 1269,1274 ****
87--- 1269,1297 ----
88 (int)curwin->w_cursor.col,
89 pos2off(curbuf, &curwin->w_cursor));
90 nb_reply_text(cmdno, text);
91+ /* =====================================================================*/
92+ }
93+ else if (streq((char *)cmd, "getAnno"))
94+ {
95+ long linenum = 0;
96+ #ifdef FEAT_SIGNS
97+ if (buf == NULL || buf->bufp == NULL)
98+ {
99+ nbdebug((" null bufp in getAnno"));
100+ EMSG("E652: null bufp in getAnno");
101+ retval = FAIL;
102+ }
103+ else
104+ {
105+ int serNum;
106+
107+ cp = (char *)args;
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);
111+ }
112+ #endif
113+ nb_reply_nr(cmdno, linenum);
114 /* =====================================================================*/
115 }
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
119***************
120*** 668,669 ****
121--- 668,671 ----
122 { /* Add new patch number below this line */
123+ /**/
124+ 163,
125 /**/
126
127--
128A computer without Windows is like a fish without a bicycle.
129
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 ///
This page took 0.062951 seconds and 4 git commands to generate.