4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
10 Patch 7.2.286 (after 7.2.269)
11 Problem: The "--startuptime=<file>" argument is not consistent with other
13 Solution: Use "--startuptime <file>". Added the +startuptime feature.
14 Files: runtime/doc/eval.txt, runtime/doc/starting.txt,
15 runtime/doc/various.txt, src/eval.c, src/main.c, src/version.c
18 *** ../vim-7.2.285/runtime/doc/eval.txt 2009-04-22 12:53:31.000000000 +0200
19 --- runtime/doc/eval.txt 2009-11-11 13:01:58.000000000 +0100
23 signs Compiled with |:sign| support.
24 smartindent Compiled with 'smartindent' support.
25 sniff Compiled with SNiFF interface support.
26 + startuptime Compiled with |--startuptime| support.
27 statusline Compiled with support for 'statusline', 'rulerformat'
28 and special formats of 'titlestring' and 'iconstring'.
29 sun_workshop Compiled with support for Sun |workshop|.
30 *** ../vim-7.2.285/runtime/doc/starting.txt 2009-11-03 12:10:39.000000000 +0100
31 --- runtime/doc/starting.txt 2009-11-11 13:20:56.000000000 +0100
37 ! --startuptime={fname} *--startuptime*
38 During startup write timing messages to the file {fname}.
39 This can be used to find out where time is spent while loading
40 ! your .vimrc and plugins.
41 When {fname} already exists new messages are appended.
42 ! {only when compiled with this feature}
45 --literal Take file names literally, don't expand wildcards. Not needed
50 ! --startuptime {fname} *--startuptime*
51 During startup write timing messages to the file {fname}.
52 This can be used to find out where time is spent while loading
53 ! your .vimrc, plugins and opening the first file.
54 When {fname} already exists new messages are appended.
55 ! (Only available when compiled with the |+startuptime|
59 --literal Take file names literally, don't expand wildcards. Not needed
60 *** ../vim-7.2.285/runtime/doc/various.txt 2009-07-09 15:55:34.000000000 +0200
61 --- runtime/doc/various.txt 2009-11-11 13:03:52.000000000 +0100
66 N *+smartindent* |'smartindent'|
67 m *+sniff* SniFF interface |sniff|
68 + N *+startuptime* |--startuptime| argument
69 N *+statusline* Options 'statusline', 'rulerformat' and special
70 formats of 'titlestring' and 'iconstring'
71 m *+sun_workshop* |workshop|
72 *** ../vim-7.2.285/src/eval.c 2009-11-03 14:26:29.000000000 +0100
73 --- src/eval.c 2009-11-11 12:59:53.000000000 +0100
86 *** ../vim-7.2.285/src/main.c 2009-11-03 12:10:39.000000000 +0100
87 --- src/main.c 2009-11-08 12:57:46.000000000 +0100
91 for (i = 1; i < argc; ++i)
93 ! if (STRNICMP(argv[i], "--startuptime=", 14) == 0)
95 ! time_fd = mch_fopen(argv[i] + 14, "a");
96 TIME_MSG("--- VIM STARTING ---");
101 for (i = 1; i < argc; ++i)
103 ! if (STRICMP(argv[i], "--startuptime") == 0 && i + 1 < argc)
105 ! time_fd = mch_fopen(argv[i + 1], "a");
106 TIME_MSG("--- VIM STARTING ---");
112 want_argument = TRUE;
115 + else if (STRNICMP(argv[0] + argv_idx, "startuptime", 11) == 0)
117 + want_argument = TRUE;
120 #ifdef FEAT_CLIENTSERVER
121 else if (STRNICMP(argv[0] + argv_idx, "serverlist", 10) == 0)
122 ; /* already processed -- no arg */
125 /* already processed, skip */
128 - else if (STRNICMP(argv[0] + argv_idx, "startuptime", 11) == 0)
130 - /* already processed, skip */
134 if (argv[0][argv_idx])
138 mainerr(ME_GARBAGE, (char_u *)argv[0]);
141 ! if (argc < 1 && c != 'S')
142 mainerr_arg_missing((char_u *)argv[0]);
146 mainerr(ME_GARBAGE, (char_u *)argv[0]);
149 ! if (argc < 1 && c != 'S') /* -S has an optional argument */
150 mainerr_arg_missing((char_u *)argv[0]);
158 ! case '-': /* "--cmd {command}" execute command */
159 ! if (parmp->n_pre_commands >= MAX_ARG_CMDS)
160 ! mainerr(ME_EXTRA_CMD, NULL);
161 ! parmp->pre_commands[parmp->n_pre_commands++] =
165 /* case 'd': -d {device} is handled in mch_check_win() for the
171 ! if (argv[-1][2] == 'c')
173 ! /* "--cmd {command}" execute command */
174 ! if (parmp->n_pre_commands >= MAX_ARG_CMDS)
175 ! mainerr(ME_EXTRA_CMD, NULL);
176 ! parmp->pre_commands[parmp->n_pre_commands++] =
179 + /* "--startuptime <file>" already handled */
182 /* case 'd': -d {device} is handled in mch_check_win() for the
186 main_msg(_("--serverlist\t\tList available Vim server names and exit"));
187 main_msg(_("--servername <name>\tSend to/become the Vim server <name>"));
190 + main_msg(_("--startuptime=<file>\tWrite startup timing messages to <file>"));
193 main_msg(_("-i <viminfo>\t\tUse <viminfo> instead of .viminfo"));
195 *** ../vim-7.2.285/src/version.c 2009-11-11 13:22:09.000000000 +0100
196 --- src/version.c 2009-11-11 14:17:28.000000000 +0100
211 *** ../vim-7.2.285/src/version.c 2009-11-11 13:22:09.000000000 +0100
212 --- src/version.c 2009-11-11 14:17:28.000000000 +0100
216 { /* Add new patch number below this line */
222 A fool must search for a greater fool to find admiration.
224 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
225 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
226 \\\ download, build and distribute -- http://www.A-A-P.org ///
227 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///