comparison src/emacs.c @ 54116:c7d9113f8f82

(USAGE1): Split into two halves. (USAGE2): Second half of the old USAGE1. (USAGE3): Renamed from USAGE2. (USAGE4): Renamed from USAGE3.
author Eli Zaretskii <eliz@is.elta.co.il>
date Sat, 21 Feb 2004 17:44:01 +0000
parents e1a843eba96a
children 6c8849d06ab3 bc4c00966ad3
comparison
equal deleted inserted replaced
54115:c24008f2882b 54116:c7d9113f8f82
218 int initial_argc; 218 int initial_argc;
219 219
220 static void sort_args (); 220 static void sort_args ();
221 void syms_of_emacs (); 221 void syms_of_emacs ();
222 222
223 /* MSVC needs each string be shorter than 2048 bytes, so the usage
224 strings below are split to not overflow this limit. */
223 #define USAGE1 "\ 225 #define USAGE1 "\
224 Usage: %s [OPTION-OR-FILENAME]...\n\ 226 Usage: %s [OPTION-OR-FILENAME]...\n\
225 \n\ 227 \n\
226 Run Emacs, the extensible, customizable, self-documenting real-time\n\ 228 Run Emacs, the extensible, customizable, self-documenting real-time\n\
227 display editor. The recommended way to start Emacs for normal editing\n\ 229 display editor. The recommended way to start Emacs for normal editing\n\
244 --no-window-system, -nw don't communicate with X, ignoring $DISPLAY\n\ 246 --no-window-system, -nw don't communicate with X, ignoring $DISPLAY\n\
245 --script FILE run FILE as an Emacs Lisp script\n\ 247 --script FILE run FILE as an Emacs Lisp script\n\
246 --terminal, -t DEVICE use DEVICE for terminal I/O\n\ 248 --terminal, -t DEVICE use DEVICE for terminal I/O\n\
247 --unibyte, --no-multibyte run Emacs in unibyte mode\n\ 249 --unibyte, --no-multibyte run Emacs in unibyte mode\n\
248 --user, -u USER load ~USER/.emacs instead of your own\n\ 250 --user, -u USER load ~USER/.emacs instead of your own\n\
249 \n\ 251 \n%s"
252
253 #define USAGE2 "\
250 Action options:\n\ 254 Action options:\n\
251 \n\ 255 \n\
252 FILE visit FILE using find-file\n\ 256 FILE visit FILE using find-file\n\
253 +LINE FILE visit FILE using find-file, then go to line LINE\n\ 257 +LINE FILE visit FILE using find-file, then go to line LINE\n\
254 +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE,\n\ 258 +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE,\n\
263 --kill exit without asking for confirmation\n\ 267 --kill exit without asking for confirmation\n\
264 --load, -l FILE load Emacs Lisp FILE using the load function\n\ 268 --load, -l FILE load Emacs Lisp FILE using the load function\n\
265 --visit FILE visit FILE using find-file\n\ 269 --visit FILE visit FILE using find-file\n\
266 \n" 270 \n"
267 271
268 #define USAGE2 "\ 272 #define USAGE3 "\
269 Display options:\n\ 273 Display options:\n\
270 \n\ 274 \n\
271 --background-color, -bg COLOR window background color\n\ 275 --background-color, -bg COLOR window background color\n\
272 --border-color, -bd COLOR main border color\n\ 276 --border-color, -bd COLOR main border color\n\
273 --border-width, -bw WIDTH width of main border\n\ 277 --border-width, -bw WIDTH width of main border\n\
302 \n\ 306 \n\
303 Various environment variables and window system resources also affect\n\ 307 Various environment variables and window system resources also affect\n\
304 Emacs' operation. See the main documentation.\n\ 308 Emacs' operation. See the main documentation.\n\
305 \n" 309 \n"
306 310
307 #define USAGE3 "\ 311 #define USAGE4 "\
308 Report bugs to %s. First, please see the Bugs\n\ 312 Report bugs to %s. First, please see the Bugs\n\
309 section of the Emacs manual or the file BUGS.\n" 313 section of the Emacs manual or the file BUGS.\n"
310 314
311 315
312 /* Signal code for the fatal signal that was received. */ 316 /* Signal code for the fatal signal that was received. */
1062 } 1066 }
1063 1067
1064 /* Handle the --help option, which gives a usage message. */ 1068 /* Handle the --help option, which gives a usage message. */
1065 if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) 1069 if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args))
1066 { 1070 {
1067 printf (USAGE1, argv[0]); 1071 printf (USAGE1, argv[0], USAGE2);
1068 printf (USAGE2); 1072 printf (USAGE3);
1069 printf (USAGE3, bug_reporting_address ()); 1073 printf (USAGE4, bug_reporting_address ());
1070 exit (0); 1074 exit (0);
1071 } 1075 }
1072 1076
1073 if (! noninteractive) 1077 if (! noninteractive)
1074 { 1078 {